summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Rominger <arominge@redhat.com>2023-10-04 15:09:29 +0200
committerGitHub <noreply@github.com>2023-10-04 15:09:29 +0200
commite72e9f94b9a713367965f788030dfb7647f81059 (patch)
tree969bfa9b6c38bf2caf9a2affdd7d719180ab0bc4
parentFix #12815 Direct links to AWX do not reroute the user after authentication (... (diff)
downloadawx-e72e9f94b9a713367965f788030dfb7647f81059.tar.xz
awx-e72e9f94b9a713367965f788030dfb7647f81059.zip
Fix collection test flake due to successful canceled command (#14519)
-rw-r--r--awx_collection/tests/integration/targets/ad_hoc_command_wait/tasks/main.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/awx_collection/tests/integration/targets/ad_hoc_command_wait/tasks/main.yml b/awx_collection/tests/integration/targets/ad_hoc_command_wait/tasks/main.yml
index 4e0f8ed5df..61bfd42fca 100644
--- a/awx_collection/tests/integration/targets/ad_hoc_command_wait/tasks/main.yml
+++ b/awx_collection/tests/integration/targets/ad_hoc_command_wait/tasks/main.yml
@@ -108,8 +108,9 @@
- assert:
that:
- - wait_results is successful
- - 'wait_results.status == "successful"'
+ - 'wait_results.status in ["successful", "canceled"]'
+ fail_msg: "Ad hoc command stdout: {{ lookup('awx.awx.controller_api', 'ad_hoc_commands/' + command.id | string + '/stdout/?format=json') }}"
+ success_msg: "Ad hoc command finished with status {{ wait_results.status }}"
- name: Delete the Credential
credential: