|
16 | 16 | import io.skodjob.annotations.TestDoc; |
17 | 17 | import io.skodjob.testframe.resources.KubeResourceManager; |
18 | 18 | import io.strimzi.api.kafka.model.kafka.KafkaResources; |
19 | | -import io.strimzi.api.kafka.model.nodepool.KafkaNodePool; |
20 | 19 | import io.strimzi.systemtest.AbstractST; |
21 | 20 | import io.strimzi.systemtest.Environment; |
22 | 21 | import io.strimzi.systemtest.TestConstants; |
23 | 22 | import io.strimzi.systemtest.annotations.IsolatedTest; |
24 | 23 | import io.strimzi.systemtest.docs.TestDocsLabels; |
25 | 24 | import io.strimzi.systemtest.kafkaclients.internalClients.KafkaClients; |
26 | 25 | import io.strimzi.systemtest.labels.LabelSelectors; |
27 | | -import io.strimzi.systemtest.resources.CrdClients; |
28 | 26 | import io.strimzi.systemtest.resources.crd.KafkaComponents; |
29 | 27 | import io.strimzi.systemtest.resources.operator.ClusterOperatorConfigurationBuilder; |
30 | 28 | import io.strimzi.systemtest.resources.operator.SetupClusterOperator; |
|
41 | 39 | import io.strimzi.systemtest.utils.kubeUtils.objects.ServiceUtils; |
42 | 40 | import org.apache.logging.log4j.LogManager; |
43 | 41 | import org.apache.logging.log4j.Logger; |
44 | | -import org.junit.jupiter.api.AfterEach; |
45 | 42 | import org.junit.jupiter.api.BeforeEach; |
46 | 43 | import org.junit.jupiter.api.Tag; |
47 | 44 |
|
@@ -246,12 +243,4 @@ void setup() { |
246 | 243 | KubeResourceManager.get().createResourceWithWait(KafkaTemplates.kafka(Environment.TEST_SUITE_NAMESPACE, sharedClusterName, KAFKA_REPLICAS).build()); |
247 | 244 | KubeResourceManager.get().createResourceWithWait(KafkaBridgeTemplates.kafkaBridge(Environment.TEST_SUITE_NAMESPACE, sharedClusterName, KafkaResources.plainBootstrapAddress(sharedClusterName), 1).build()); |
248 | 245 | } |
249 | | - |
250 | | - @AfterEach |
251 | | - void cleanup() { |
252 | | - // In order to properly delete all resources, we need to delete KafkaNodePools first (as the correct deletion is KafkaNodePools -> Kafka) |
253 | | - // This will ensure everything will be deleted properly |
254 | | - List<KafkaNodePool> nodePools = CrdClients.kafkaNodePoolClient().inNamespace(Environment.TEST_SUITE_NAMESPACE).list().getItems(); |
255 | | - KubeResourceManager.get().deleteResourceAsyncWait(nodePools.toArray(new KafkaNodePool[0])); |
256 | | - } |
257 | 246 | } |
0 commit comments