pre cleanup services (#66188)
Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>
This commit is contained in:
parent
6b1dff64d0
commit
8ae5e34127
1 changed files with 8 additions and 12 deletions
|
@ -25,6 +25,12 @@
|
|||
that:
|
||||
- "result.changed == false"
|
||||
|
||||
- name: Delete services
|
||||
vyos_config: &del
|
||||
lines:
|
||||
- delete service lldp
|
||||
- delete protocols static
|
||||
|
||||
- name: Configuring when commands starts with whitespaces
|
||||
vyos_config:
|
||||
src: "{{ role_path }}/tests/cli/config.cfg"
|
||||
|
@ -36,18 +42,8 @@
|
|||
- '"set service lldp" in result.commands'
|
||||
- '"set protocols static" in result.commands'
|
||||
|
||||
- name: Delete description
|
||||
vyos_config:
|
||||
lines:
|
||||
- delete service lldp
|
||||
- delete protocols static
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- '"delete service lldp" in result.commands'
|
||||
- '"delete protocols static" in result.commands'
|
||||
- name: Delete services
|
||||
vyos_config: *del
|
||||
|
||||
- name: teardown
|
||||
vyos_config:
|
||||
|
|
Loading…
Reference in a new issue