use of com.axibase.tsd.api.method.checks.EntityGroupCheck in project atsd-api-test by axibase.
the class TokenEntityGroupTest method testUpdateMethod.
@Test(description = "Tests entity group update endpoint.")
@Issue("6052")
public void testUpdateMethod() throws Exception {
String entityGroupName = Mocks.entityGroup();
String url = "/entity-groups/" + entityGroupName;
String token = TokenRepository.getToken(username, "PATCH", url);
EntityGroup entityGroup = new EntityGroup(entityGroupName);
createOrReplaceEntityGroupCheck(entityGroup);
entityGroup.setTags(Mocks.TAGS);
updateEntityGroup(entityGroup, token);
Checker.check(new EntityGroupCheck(entityGroup));
}
use of com.axibase.tsd.api.method.checks.EntityGroupCheck in project atsd-api-test by axibase.
the class TokenEntityGroupTest method testDeleteMethod.
@Test(description = "Tests entity group delete endpoint.")
@Issue("6052")
public void testDeleteMethod() throws Exception {
String entityGroupName = Mocks.entityGroup();
String url = "/entity-groups/" + entityGroupName;
String token = TokenRepository.getToken(username, HttpMethod.DELETE, url);
EntityGroup entityGroup = new EntityGroup(entityGroupName);
createOrReplaceEntityGroupCheck(entityGroup);
deleteEntityGroup(entityGroupName, token);
Checker.check(new DeletionCheck(new EntityGroupCheck(entityGroup)));
}
use of com.axibase.tsd.api.method.checks.EntityGroupCheck in project atsd-api-test by axibase.
the class TokenEntityGroupTest method testCreateMethod.
@Test(description = "Tests entity group create or replace endpoint.")
@Issue("6052")
public void testCreateMethod() throws Exception {
String entityGroupName = Mocks.entityGroup();
String url = "/entity-groups/" + entityGroupName;
String token = TokenRepository.getToken(username, HttpMethod.PUT, url);
EntityGroup entityGroup = new EntityGroup(entityGroupName);
createOrReplaceEntityGroup(entityGroup, token);
Checker.check(new EntityGroupCheck(entityGroup));
}
Aggregations