use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class CSVUploadTest method testMetaFileInTarGz.
@Issue("2966")
@Test
public void testMetaFileInTarGz(Method method) throws Exception {
String entityName = ENTITY_PREFIX + "-10";
String metricName = METRIC_PREFIX + "-10";
File csvPath = resolvePath(Paths.get(RESOURCE_DIR, "test-meta.tar.gz").toString());
checkBinaryFileUpload(entityName, metricName, csvPath);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class CSVUploadTest method testFileWithLineBreak.
@Issue("3011")
@Test(dataProvider = "parserProvider")
public void testFileWithLineBreak(Method method, int numTest, String lineBreakType, String parser, Integer dataSize) throws Exception {
String nameSuffix = String.format("-%s-parser-ms-%d", lineBreakType, numTest);
Entity entity = new Entity("e" + nameSuffix);
Metric metric = new Metric("m" + nameSuffix);
String confFileName = String.format("test-%s-parser.csv", lineBreakType);
File csvPath = resolvePath(Paths.get(RESOURCE_DIR, confFileName).toString());
Response response = binaryCsvUpload(csvPath, parser, entity.getName());
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, dataSize);
Sample sample = SeriesMethod.querySeriesAsList(seriesQuery).get(0).getData().get(0);
Calendar serverCalendar = new GregorianCalendar(TimeZone.getTimeZone(timezone));
serverCalendar.clear();
serverCalendar.set(2015, Calendar.MARCH, 24, 6, 17);
assertEquals("Incorrect stored value", LINE_BREAKS_TEST_VALUE, sample.getValue().toString());
assertEquals("Date failed to save", serverCalendar.getTime(), parseDate(sample.getRawDate()));
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class CSVUploadTest method testGzCsvMultipartUpload.
@Issue("2919")
@Test
public void testGzCsvMultipartUpload(Method method) throws Exception {
String entityName = ENTITY_PREFIX + "-7";
String metricName = METRIC_PREFIX + "-7";
File csvPath = resolvePath(Paths.get(RESOURCE_DIR, "test-csv-multipart.gz").toString());
checkMultipartFileUpload(entityName, metricName, csvPath);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class CSVUploadTest method testTarGzCsvMultipartUpload.
@Issue("2919")
@Test
public void testTarGzCsvMultipartUpload(Method method) throws Exception {
String entityName = ENTITY_PREFIX + "-3";
String metricName = METRIC_PREFIX + "-3";
File csvPath = resolvePath(Paths.get(RESOURCE_DIR, "test-csv-multipart.tar.gz").toString());
checkMultipartFileUpload(entityName, metricName, csvPath);
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class CSVUploadTest method testTarGzCsvBinaryUpload.
@Issue("2919")
@Test
public void testTarGzCsvBinaryUpload(Method method) throws Exception {
String entityName = ENTITY_PREFIX + "-4";
String metricName = METRIC_PREFIX + "-4";
File csvPath = resolvePath(Paths.get(RESOURCE_DIR, "test-csv-binary.tar.gz").toString());
checkBinaryFileUpload(entityName, metricName, csvPath);
}
Aggregations