Skip to content

Commit d15d07b

Browse files
committed
[WIP] add test
Signed-off-by: jkalinic <[email protected]>
1 parent aa78926 commit d15d07b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

systemtests/src/main/java/com/github/streamshub/systemtests/utils/WaitUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,11 +509,11 @@ public static void waitForLogInPod(String namespace, String podName, String expe
509509
}
510510

511511
public static void waitForKafkaRebalanceProposalStatus(String namespace, String rebalanceName, KafkaRebalanceState kafkaRebalanceState) {
512-
Wait.until(String.format("KafkaRabalance %s/%s to be in state [%s]", namespace, rebalanceName, kafkaRebalanceState),
512+
Wait.until(String.format("KafkaRebalance %s/%s to be in state [%s]", namespace, rebalanceName, kafkaRebalanceState),
513513
TestFrameConstants.GLOBAL_POLL_INTERVAL_MEDIUM, TestFrameConstants.GLOBAL_TIMEOUT_MEDIUM,
514514
() -> {
515-
KafkaRebalance rebalance = ResourceUtils.getKubeResource(KafkaRebalance.class, namespace, rebalanceName);
516-
return rebalance != null && rebalance.getStatus() != null &&
515+
KafkaRebalance rebalance = ResourceUtils.getKubeResource(KafkaRebalance.class, namespace, rebalanceName);
516+
return rebalance != null && rebalance.getStatus() != null &&
517517
rebalance.getStatus().getConditions().stream()
518518
.filter(c -> c.getType().equals(kafkaRebalanceState.name()))
519519
.map(c -> c.getStatus().equals("True"))

systemtests/src/test/java/com/github/streamshub/systemtests/kafka/RebalanceST.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ void testKafkaRebalance() {
7878
PwUtils.waitForLocatorAndClick(tcc, NodesPageSelectors.NPS_PROPOSAL_ACTION_APPROVE_BUTTON);
7979
PwUtils.waitForLocatorAndClick(tcc, NodesPageSelectors.NPS_PROPOSAL_MODAL_CONFIRM_BUTTON);
8080

81+
LOGGER.info("Verify that UI caused rebalancing");
8182
WaitUtils.waitForKafkaRebalanceProposalStatus(tcc.namespace(), rebalanceName, KafkaRebalanceState.Rebalancing);
8283
PwUtils.waitForContainsText(tcc, NodesPageSelectors.NPS_REBALANCE_PROPOSAL_STATUS, KafkaRebalanceState.Rebalancing.name(), true);
8384
}

0 commit comments

Comments
 (0)