From 464b1e6d42ecc2830ef15c334560828f2ebc9e24 Mon Sep 17 00:00:00 2001 From: Rithick Date: Mon, 11 Nov 2024 13:04:51 +0530 Subject: [PATCH] Fix Tests --- .../migrationtool/PulsarClusterResourceGeneratorTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/migration-tool/src/test/java/com/datastax/oss/kaap/migrationtool/PulsarClusterResourceGeneratorTest.java b/migration-tool/src/test/java/com/datastax/oss/kaap/migrationtool/PulsarClusterResourceGeneratorTest.java index 4daf3b90..ea6fe6ed 100644 --- a/migration-tool/src/test/java/com/datastax/oss/kaap/migrationtool/PulsarClusterResourceGeneratorTest.java +++ b/migration-tool/src/test/java/com/datastax/oss/kaap/migrationtool/PulsarClusterResourceGeneratorTest.java @@ -58,7 +58,7 @@ public void test() throws Exception { final DiffCollectorOutputWriter diff = generate(client, tmpDir); final File outputDir = new File(tmpDir.toFile(), CONTEXT); assertValue(outputDir); - assertDiff(diff, 156); + assertDiff(diff, 155); } @Test @@ -91,7 +91,7 @@ public void testNoBastion() throws Exception { final DiffCollectorOutputWriter diff = generate(client, tmpDir); final File outputDir = new File(tmpDir.toFile(), CONTEXT); final PulsarCluster pulsar = getPulsarClusterFromOutputdir(outputDir); - assertDiff(diff, 149); + assertDiff(diff, 148); Assert.assertEquals(pulsar.getSpec().getBastion().getReplicas(), 0); } @@ -202,6 +202,7 @@ private void assertValue(File tmpDir) { component: zookeeper heritage: Helm release: pulsar-cluster + skipVolumeClaimLabels: true podLabels: app: pulsar cluster: pulsar-cluster @@ -284,6 +285,7 @@ private void assertValue(File tmpDir) { component: bookkeeper heritage: Helm release: pulsar-cluster + skipVolumeClaimLabels: true podLabels: app: pulsar cluster: pulsar-cluster @@ -892,7 +894,6 @@ private void assertValue(File tmpDir) { PULSAR_EXTRA_OPTS: -Dpulsar.log.root.level=info PULSAR_LOG_LEVEL: info PULSAR_LOG_ROOT_LEVEL: info - ensemblePlacementPolicy: "" zkServers: pulsar-cluster-zookeeper-ca:2181 replicas: 1 annotations: {} @@ -1013,6 +1014,7 @@ private void assertValue(File tmpDir) { component: function heritage: Helm release: pulsar-cluster + skipVolumeClaimLabels: true podLabels: app: pulsar cluster: pulsar-cluster