summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_user
diff options
context:
space:
mode:
authorRicardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com>2017-07-17 14:28:03 +0200
committerGitHub <noreply@github.com>2017-07-17 14:28:03 +0200
commitbd24c4ce9dcf5119ec64b57386ffef193a09c85c (patch)
tree8584eef9bfddc95531a780854a86ea3e057a9ada /test/integration/targets/eos_user
parentbaa9290d71740909049c8e9642f5998c4269abb5 (diff)
downloadansible-bd24c4ce9dcf5119ec64b57386ffef193a09c85c.tar.gz
Use eos_config for eos_user tests teardown (#26893)
Purge is not idempotent, so let's fix it with other change. For teardown, it's better to use eos_config/eos_command.
Diffstat (limited to 'test/integration/targets/eos_user')
-rw-r--r--test/integration/targets/eos_user/tests/cli/basic.yaml14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/integration/targets/eos_user/tests/cli/basic.yaml b/test/integration/targets/eos_user/tests/cli/basic.yaml
index a0d091deee..54399f6e4c 100644
--- a/test/integration/targets/eos_user/tests/cli/basic.yaml
+++ b/test/integration/targets/eos_user/tests/cli/basic.yaml
@@ -31,13 +31,9 @@
- 'result.commands == ["username test1 role network-operator", "username test2 role network-operator"]'
- name: tearDown
- eos_user:
- purge: yes
- authorize: yes
+ eos_config:
+ lines:
+ - no username netend
+ - no username test1
+ - no username test2
provider: "{{ cli }}"
- register: result
-
-- assert:
- that:
- - 'result.changed == true'
- - 'result.commands == ["no username netend", "no username test1", "no username test2"]'