diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/integration/targets/vyos_snmp_server/tasks/cleanup.yaml | 5 | ||||
| -rw-r--r-- | tests/integration/targets/vyos_snmp_server/tasks/httpapi.yaml | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/integration/targets/vyos_snmp_server/tasks/cleanup.yaml b/tests/integration/targets/vyos_snmp_server/tasks/cleanup.yaml new file mode 100644 index 0000000..d861c1b --- /dev/null +++ b/tests/integration/targets/vyos_snmp_server/tasks/cleanup.yaml @@ -0,0 +1,5 @@ +--- +- name: Remove dummy loopback address + vyos.rest.vyos_configure: + commands: + - delete interfaces loopback lo address 20.1.1.1/32 diff --git a/tests/integration/targets/vyos_snmp_server/tasks/httpapi.yaml b/tests/integration/targets/vyos_snmp_server/tasks/httpapi.yaml index 4147e6d..1ba3569 100644 --- a/tests/integration/targets/vyos_snmp_server/tasks/httpapi.yaml +++ b/tests/integration/targets/vyos_snmp_server/tasks/httpapi.yaml @@ -19,3 +19,6 @@ with_items: "{{ test_items }}" loop_control: loop_var: test_case_to_run + +- name: Post-test cleanup + ansible.builtin.include_tasks: cleanup.yaml |
