mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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.
This commit is contained in:
parent
baa9290d71
commit
bd24c4ce9d
1 changed files with 5 additions and 9 deletions
|
@ -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"]'
|
||||
|
|
Loading…
Reference in a new issue