diff options
author | David Newswanger <gamma.dave@gmail.com> | 2017-08-16 05:45:41 -0400 |
---|---|---|
committer | Trishna Guha <trishnaguha17@gmail.com> | 2017-08-16 15:15:41 +0530 |
commit | a37c5e53e6379174f91b373e3b77969cd993773d (patch) | |
tree | a72069eb148d5287907d134c2655fda2be625404 /test/integration/targets/ios_user | |
parent | ce3d1c6ba00e1a36c016575ea7d7d04b71923486 (diff) | |
download | ansible-a37c5e53e6379174f91b373e3b77969cd993773d.tar.gz |
fix prompt error when deleting ios user (#28175)
* fix prompt error when deleting ios user
* placate pep8
* wrap delete user command in function
* fix python 3 unit tests
Diffstat (limited to 'test/integration/targets/ios_user')
-rw-r--r-- | test/integration/targets/ios_user/tests/cli/basic.yaml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/test/integration/targets/ios_user/tests/cli/basic.yaml b/test/integration/targets/ios_user/tests/cli/basic.yaml index 9278d31114..ac977e304d 100644 --- a/test/integration/targets/ios_user/tests/cli/basic.yaml +++ b/test/integration/targets/ios_user/tests/cli/basic.yaml @@ -1,4 +1,15 @@ --- +- name: tear down old users if they exist (Setup) + ios_user: + aggregate: + - name: ansibletest1 + - name: ansibletest2 + - name: ansibletest3 + state: absent + authorize: yes + provider: "{{ cli }}" + register: result + - name: Create user (SetUp) ios_user: name: ansibletest1 @@ -75,4 +86,6 @@ - assert: that: - 'result.changed == true' - - 'result.commands == ["no username ansibletest1", "no username ansibletest2", "no username ansibletest3"]' + - '"no username ansibletest1" in result.commands[0]' + - '"no username ansibletest2" in result.commands[1]' + - '"no username ansibletest3" in result.commands[2]' |