diff --git a/app/src/test/java/io/apicurio/registry/noprofile/rest/v3/GroupsResourceTest.java b/app/src/test/java/io/apicurio/registry/noprofile/rest/v3/GroupsResourceTest.java index a035da6f9a..f842247f2b 100644 --- a/app/src/test/java/io/apicurio/registry/noprofile/rest/v3/GroupsResourceTest.java +++ b/app/src/test/java/io/apicurio/registry/noprofile/rest/v3/GroupsResourceTest.java @@ -3,6 +3,7 @@ import io.apicurio.registry.AbstractResourceTestBase; import io.apicurio.registry.model.GroupId; import io.apicurio.registry.rest.client.models.CreateVersion; +import io.apicurio.registry.rest.client.models.GroupSearchResults; import io.apicurio.registry.rest.v3.beans.ArtifactMetaData; import io.apicurio.registry.rest.v3.beans.ArtifactReference; import io.apicurio.registry.rest.v3.beans.Comment; @@ -201,6 +202,10 @@ public void testMultipleGroups() throws Exception { createArtifact(group2, "testMultipleGroups/EmptyAPI/2", ArtifactType.OPENAPI, jsonArtifactContent, ContentTypes.APPLICATION_JSON); + // Get the list of groups - should have AT LEAST 2 + GroupSearchResults results = clientV3.groups().get(); + Assertions.assertTrue(results.getCount() >= 2); + // Get group 1 metadata given().when().pathParam("groupId", group1).get("/registry/v3/groups/{groupId}").then() .statusCode(200).body("groupId", equalTo("testMultipleGroups_1"));