diff --git a/test-frame-test/pom.xml b/test-frame-test/pom.xml index a98aece..f8928e1 100644 --- a/test-frame-test/pom.xml +++ b/test-frame-test/pom.xml @@ -118,16 +118,6 @@ - - none - - true - - - true - - - integration diff --git a/test-frame-test/src/test/java/io/skodjob/testframe/test/integration/ResourceManagerIT.java b/test-frame-test/src/test/java/io/skodjob/testframe/test/integration/ResourceManagerIT.java index f71b734..d992a99 100644 --- a/test-frame-test/src/test/java/io/skodjob/testframe/test/integration/ResourceManagerIT.java +++ b/test-frame-test/src/test/java/io/skodjob/testframe/test/integration/ResourceManagerIT.java @@ -8,6 +8,7 @@ import io.skodjob.testframe.annotations.TestVisualSeparator; import io.skodjob.testframe.clients.KubeClusterException; import io.skodjob.testframe.resources.ResourceManager; +import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -34,6 +35,12 @@ void setupEach() { new NamespaceBuilder().withNewMetadata().withName("test2").endMetadata().build()); } + @AfterAll + void afterAll() { + assertNull(ResourceManager.getKubeClient().getClient().namespaces().withName("test2").get()); + assertNull(ResourceManager.getKubeClient().getClient().namespaces().withName("test3").get()); + } + @Test void createResource() { ResourceManager.getInstance().createResourceWithWait(