Skip to content

Commit

Permalink
Wait for broker to deploy. Improves error logging in case of broker m…
Browse files Browse the repository at this point in the history
…isbehaving
  • Loading branch information
mkrutov committed Nov 7, 2023
1 parent 8ec0754 commit 50072c7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ void routeCreationNonAscii() {
}

@Test
@TestValidSince(ArtemisVersion.VERSION_2_28)
void verifyMultipleLabels() {
Map<String, String> labels = new HashMap<>();
for (int i = 0; i < 10; i++) {
Expand All @@ -777,7 +778,7 @@ void verifyMultipleLabels() {
.withLabels(labels)
.endDeploymentPlan()
.endSpec().build();
ResourceManager.createArtemis(testNamespace, broker, false);
ResourceManager.createArtemis(testNamespace, broker, true);

TestUtils.threadSleep(Constants.DURATION_10_SECONDS);
broker = ResourceManager.getArtemisClient().inNamespace(testNamespace).resource(broker).get();
Expand All @@ -786,7 +787,7 @@ void verifyMultipleLabels() {
TestUtils.threadSleep(Constants.DURATION_10_SECONDS);
ActiveMQArtemis newbroker = ResourceManager.getArtemisClient().inNamespace(testNamespace).resource(broker).get();
String newUpdateTime = newbroker.getMetadata().getManagedFields().get(1).getTime();
assertEquals(newUpdateTime, updateTime, "CR Status was updated when its not expected to be");
assertEquals(updateTime, newUpdateTime, "CR Status was updated when its not expected to be");
ResourceManager.deleteArtemis(testNamespace, broker);
}

Expand Down

0 comments on commit 50072c7

Please sign in to comment.