mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
Merge pull request #1367 from AlanCoding/another_lib_fail
Fix test so that playbook runs to completion
This commit is contained in:
@@ -208,8 +208,8 @@ def test_callback_plugin_no_log_filters(executor, cache, playbook):
|
|||||||
- shell: echo "PUBLIC"
|
- shell: echo "PUBLIC"
|
||||||
- shell: echo "PRIVATE"
|
- shell: echo "PRIVATE"
|
||||||
no_log: true
|
no_log: true
|
||||||
- uri: uri=https://example.org username="PUBLIC" password="PRIVATE"
|
- uri: url=https://example.org username="PUBLIC" password="PRIVATE"
|
||||||
- copy: content="PRIVATE" destination="/tmp/tmp_no_log"
|
- copy: content="PRIVATE" dest="/tmp/tmp_no_log"
|
||||||
'''}, # noqa
|
'''}, # noqa
|
||||||
])
|
])
|
||||||
def test_callback_plugin_task_args_leak(executor, cache, playbook):
|
def test_callback_plugin_task_args_leak(executor, cache, playbook):
|
||||||
@@ -227,6 +227,8 @@ def test_callback_plugin_task_args_leak(executor, cache, playbook):
|
|||||||
assert events[5]['event'] == 'runner_on_ok'
|
assert events[5]['event'] == 'runner_on_ok'
|
||||||
assert 'PUBLIC' in json.dumps(cache.items())
|
assert 'PUBLIC' in json.dumps(cache.items())
|
||||||
assert 'PRIVATE' not in json.dumps(cache.items())
|
assert 'PRIVATE' not in json.dumps(cache.items())
|
||||||
|
# make sure playbook was successful, so all tasks were hit
|
||||||
|
assert not events[-1]['event_data']['failures'], 'Unexpected playbook execution failure'
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('playbook', [
|
@pytest.mark.parametrize('playbook', [
|
||||||
|
|||||||
Reference in New Issue
Block a user