Skip to content

Commit ab84437

Browse files
committed
concord-server-it: fix testFailedHosts for modern Ansible versions
Modern Ansible versions are chattier, the error message we are looking for might be repeated several times.
1 parent d3b9b59 commit ab84437

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

it/server/src/test/java/com/walmartlabs/concord/it/server/AnsibleEventIT.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
import java.util.Map;
2929

3030
import static com.walmartlabs.concord.it.common.ITUtils.archive;
31-
import static com.walmartlabs.concord.it.common.ServerClient.assertLog;
32-
import static com.walmartlabs.concord.it.common.ServerClient.waitForCompletion;
31+
import static com.walmartlabs.concord.it.common.ServerClient.*;
3332
import static org.junit.jupiter.api.Assertions.*;
3433

3534
public class AnsibleEventIT extends AbstractServerIT {
@@ -135,7 +134,7 @@ public void testFailedHosts() throws Exception {
135134
// ---
136135

137136
byte[] ab = getLog(pe.getInstanceId());
138-
assertLog(".*'msg' is undefined.*", ab);
137+
assertLogAtLeast(".*'msg' is undefined.*", 1, ab);
139138

140139
// ---
141140

0 commit comments

Comments
 (0)