use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class CSVUploadTest method testGzCsvBinaryUpload.
@Issue("2919")
@Test
public void testGzCsvBinaryUpload(Method method) throws Exception {
String entityName = ENTITY_PREFIX + "-8";
String metricName = METRIC_PREFIX + "-8";
File csvPath = resolvePath(Paths.get(RESOURCE_DIR, "test-csv-binary.gz").toString());
checkBinaryFileUpload(entityName, metricName, csvPath);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class CSVUploadTest method testTimeRangeInMS.
@Issue("2957")
@Test
public void testTimeRangeInMS(Method method) throws Exception {
Entity entity = new Entity("e-csv-simple-parser-ms-1");
Metric metric = new Metric("m-csv-simple-parser-ms-1");
File csvPath = resolvePath(Paths.get(RESOURCE_DIR, "test-time-range-ms.csv").toString());
Response response = binaryCsvUpload(csvPath, SIMPLE_PARSER_MS);
assertEquals("Failed to upload file", OK.getStatusCode(), response.getStatus());
SeriesQuery seriesQuery = new SeriesQuery(entity.getName(), metric.getName(), MIN_QUERYABLE_DATE, MAX_QUERYABLE_DATE);
assertSeriesQueryDataSize(seriesQuery, 2);
List<Series> seriesList = SeriesMethod.querySeriesAsList(seriesQuery);
Series series = seriesList.get(0);
assertEquals("Managed to insert dataset with date out of range", 2, series.getData().size());
assertEquals("Min storable date failed to save", MIN_STORABLE_DATE, series.getData().get(0).getRawDate());
assertEquals("Incorrect stored value", "12.45", series.getData().get(0).getValue().toString());
assertEquals("Max storable date failed to save", MAX_STORABLE_DATE, series.getData().get(1).getRawDate());
assertEquals("Incorrect stored value", "10.8", series.getData().get(1).getValue().toString());
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class CSVUploadTest method testPlainCsvMultipartUpload.
@Issue("2916")
@Test
public void testPlainCsvMultipartUpload(Method method) throws Exception {
String entityName = ENTITY_PREFIX + "-1";
String metricName = METRIC_PREFIX + "-1";
File csvPath = resolvePath(Paths.get(RESOURCE_DIR, "test-csv-multipart.csv").toString());
checkMultipartFileUpload(entityName, metricName, csvPath);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class CSVUploadTest method testPlainCsvBinaryUpload.
@Issue("2916")
@Test
public void testPlainCsvBinaryUpload(Method method) throws Exception {
String entityName = ENTITY_PREFIX + "-2";
String metricName = METRIC_PREFIX + "-2";
File csvPath = resolvePath(Paths.get(RESOURCE_DIR, "test-csv-binary.csv").toString());
checkBinaryFileUpload(entityName, metricName, csvPath);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class EntityCommandTest method testIncorrectEnabled.
@Issue("3550")
@Test(dataProvider = "incorrectEnabledProvider")
public void testIncorrectEnabled(String enabled) throws Exception {
String entityName = entity();
String command = String.format("entity e:%s b:%s", entityName, enabled);
CommandMethod.send(command);
Response serverResponse = EntityMethod.getEntityResponse(entityName);
assertEquals("Bad entity was accepted :: " + command, NOT_FOUND.getStatusCode(), serverResponse.getStatus());
}
Aggregations