diff --git a/integration-tests/src/test/java/io/apicurio/tests/smokeTests/confluent/SchemasConfluentIT.java b/integration-tests/src/test/java/io/apicurio/tests/smokeTests/confluent/SchemasConfluentIT.java index 921163f3e6..ee0daf2fb9 100644 --- a/integration-tests/src/test/java/io/apicurio/tests/smokeTests/confluent/SchemasConfluentIT.java +++ b/integration-tests/src/test/java/io/apicurio/tests/smokeTests/confluent/SchemasConfluentIT.java @@ -191,16 +191,6 @@ void createConfluentQueryApicurio() throws IOException, RestClientException, Tim Response ar = ArtifactUtils.getArtifact("default", subjectName, "branch=latest", 200); assertEquals(rawSchema, ar.asString()); LOGGER.info(ar.asString()); - - TestUtils.waitFor("artifact created", Constants.POLL_INTERVAL, Constants.TIMEOUT_GLOBAL, () -> { - try { - return registryClient.groups().byGroupId("default").artifacts().byArtifactId(subjectName).versions().byVersionExpression("branch=latest").get().readAllBytes().length > 0; - } catch (WebApplicationException e) { - return false; - } catch (IOException e) { - throw new RuntimeException(e); - } - }); } @Test diff --git a/integration-tests/src/test/java/io/apicurio/tests/utils/ArtifactUtils.java b/integration-tests/src/test/java/io/apicurio/tests/utils/ArtifactUtils.java index 78d7753431..2070bbd0a0 100644 --- a/integration-tests/src/test/java/io/apicurio/tests/utils/ArtifactUtils.java +++ b/integration-tests/src/test/java/io/apicurio/tests/utils/ArtifactUtils.java @@ -12,7 +12,7 @@ public class ArtifactUtils { public static Response getArtifact(String groupId, String artifactId, String version, int returnCode) { return - BaseHttpUtils.getRequest(RestConstants.JSON, ApicurioRegistryBaseIT.getRegistryV3ApiUrl() + "/groups/" + encodeURIComponent(groupId) + "/artifacts/" + encodeURIComponent(artifactId) + "/" + version, returnCode); + BaseHttpUtils.getRequest(RestConstants.JSON, ApicurioRegistryBaseIT.getRegistryV3ApiUrl() + "/groups/" + encodeURIComponent(groupId) + "/artifacts/" + encodeURIComponent(artifactId) + "/versions/" + version, returnCode); } public static Response createArtifact(String groupId, String artifactId, String artifact, int returnCode) {