ACS-5506 Tests cleanup

This commit is contained in:
MichalKinas
2023-07-06 09:13:42 +02:00
parent effb697261
commit 71cbb9e1ef
2 changed files with 1061 additions and 1059 deletions

View File

@@ -118,7 +118,7 @@ public class GroupsTests extends RestTest
restClient.assertStatusCodeIs(HttpStatus.OK); restClient.assertStatusCodeIs(HttpStatus.OK);
//AddChildGroup //AddChildGroup
restClient.authenticateUser(adminUser).withCoreAPI().usingParams("include=zones").usingGroups().createGroup(subgroupBodyCreate); restClient.authenticateUser(adminUser).withCoreAPI().usingParams().usingGroups().createGroup(subgroupBodyCreate);
restClient.assertStatusCodeIs(HttpStatus.CREATED); restClient.assertStatusCodeIs(HttpStatus.CREATED);
JsonObject groupMembershipGroupBody = Json.createObjectBuilder().add("id", "GROUP_"+subGroupName).add("memberType", "GROUP").build(); JsonObject groupMembershipGroupBody = Json.createObjectBuilder().add("id", "GROUP_"+subGroupName).add("memberType", "GROUP").build();
String groupMembershipGroupBodyCreate = groupMembershipGroupBody.toString(); String groupMembershipGroupBodyCreate = groupMembershipGroupBody.toString();

View File

@@ -620,7 +620,7 @@ public class GroupsTest extends BaseWebScriptTest
try try
{ {
/** /**
* Create a root group with descrription * Create a root group
*/ */
{ {
JSONObject newGroupJSON = new JSONObject(); JSONObject newGroupJSON = new JSONObject();
@@ -640,6 +640,7 @@ public class GroupsTest extends BaseWebScriptTest
JSONObject data = top.getJSONObject("data"); JSONObject data = top.getJSONObject("data");
assertTrue(data.length() > 0); assertTrue(data.length() > 0);
assertEquals("displayName wrong", myNewDisplayName, data.getString("displayName")); assertEquals("displayName wrong", myNewDisplayName, data.getString("displayName"));
} }
/** /**
@@ -652,6 +653,7 @@ public class GroupsTest extends BaseWebScriptTest
JSONObject data = top.getJSONObject("data"); JSONObject data = top.getJSONObject("data");
assertTrue(data.length() > 0); assertTrue(data.length() > 0);
assertEquals("displayName wrong", myNewDisplayName, data.getString("displayName")); assertEquals("displayName wrong", myNewDisplayName, data.getString("displayName"));
} }
/** /**