fix import test
package io.apicurio.registry;
+import io.apicurio.registry.utils.tests.TestUtils;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.TestProfile;
import org.junit.jupiter.api.BeforeEach;
@@ -15,13 +16,15 @@ import static org.hamcrest.Matchers.nullValue;
@TestProfile(ImportLifecycleBeanTestProfile.class)
public class ImportLifecycleBeanTest extends AbstractResourceTestBase {
+ @Override
@BeforeEach
protected void beforeEach() throws Exception {
prepareServiceInitializers();
}
@Test
- public void testStartupImportGlobalRules() {
+ public void testCheckImportedData() throws Exception {
+ TestUtils.retry(() -> {
given()
.when()
.accept(CT_JSON)
@@ -30,10 +33,8 @@ public class ImportLifecycleBeanTest extends AbstractResourceTestBase {
.statusCode(200)
.body("[0]", equalTo("COMPATIBILITY"))
.body("[1]", nullValue());
- }
+ });
- @Test
- public void testStartupImportArtifacts() {
given()
.when()
.accept(CT_JSON)
@@ -42,10 +43,7 @@ public class ImportLifecycleBeanTest extends AbstractResourceTestBase {
.statusCode(200)
.body("count", is(3))
.body("artifacts.id", containsInAnyOrder("Artifact-3", "Artifact-2", "Artifact-1"));
- }
- @Test
- public void testStartupImportArtifactsVersions() {
given()
.when()
.accept(CT_JSON)
