use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class PropertyDeleteTest method testKeyValueBoolean.
@Issue("2416")
@Test
public void testKeyValueBoolean() throws Exception {
final Property property = new Property("delete-type-29", "delete-entity29");
property.addTag("t1", "v1");
property.addKey("k1", "true");
insertPropertyCheck(property);
Map<String, Object> deleteQuery = new HashMap<>();
deleteQuery.put("type", property.getType());
deleteQuery.put("entity", property.getEntity());
deleteQuery.put("startDate", MIN_QUERYABLE_DATE);
deleteQuery.put("endDate", MAX_QUERYABLE_DATE);
Map<String, Object> key = new HashMap<>();
key.put("k1", true);
deleteQuery.put("key", key);
assertEquals("Fail to execute delete query", OK.getStatusCode(), deleteProperty(deleteQuery).getStatus());
assertFalse("Property should be deleted", propertyExist(property));
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class PropertyQueryTimezoneTest method testISOTimezonePlusHourMinute.
@Issue("2850")
@Test
public void testISOTimezonePlusHourMinute() throws Exception {
PropertyQuery propertyQuery = buildPropertyQuery();
propertyQuery.setStartDate("2016-05-21T01:23:00+01:23");
List<Property> storedPropertyList = queryProperty(propertyQuery).readEntity(new GenericType<List<Property>>() {
});
Property storedProperty = storedPropertyList.get(0);
assertEquals("Incorrect property entity", property.getEntity(), storedProperty.getEntity());
assertEquals("Incorrect property tags", property.getTags(), storedProperty.getTags());
assertEquals("Incorrect property date", property.getDate(), storedProperty.getDate());
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class PropertyQueryTimezoneTest method testISOTimezoneMinusHourMinute.
@Issue("2850")
@Test
public void testISOTimezoneMinusHourMinute() throws Exception {
PropertyQuery propertyQuery = buildPropertyQuery();
propertyQuery.setStartDate("2016-05-20T22:37:00-01:23");
List<Property> storedPropertyList = queryProperty(propertyQuery).readEntity(new GenericType<List<Property>>() {
});
Property storedProperty = storedPropertyList.get(0);
assertEquals("Incorrect property entity", property.getEntity(), storedProperty.getEntity());
assertEquals("Incorrect property tags", property.getTags(), storedProperty.getTags());
assertEquals("Incorrect property date", property.getDate(), storedProperty.getDate());
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class PropertyTypeQueryTest method testEntityNameContainsWhilespace.
@Issue("1278")
@Test
public void testEntityNameContainsWhilespace() {
Property property = new Property("typequery-property-type-1", "typequery entityname-1");
assertEquals(BAD_REQUEST.getStatusCode(), typeQueryProperty(property.getEntity()).getStatus());
}
use of io.qameta.allure.Issue in project atsd-api-test by axibase.
the class BackslashCharEscapeTest method testType.
@Issue("2854")
@Test
public void testType() throws Exception {
Property property = new Property("property-command-test\\-t5", "property-command-test-e5");
property.setTags(DEFAULT_PROPERTY_TAGS);
property.setDate(getCurrentDate());
PlainCommand command = new PropertyCommand(property);
CommandMethod.send(command);
assertPropertyExisting("Inserted property can not be received", property);
}
Aggregations