Skip to content

Commit

Permalink
ospfv2 integration tests pre-requisite scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
omnom62 committed Feb 19, 2025
1 parent cf17891 commit 98a126e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/integration/targets/vyos_ospfv2/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
- name: Run preflight setup
ansible.builtin.import_tasks: pre_tasks.yaml
failed_when: false

- name: Run CLI tests
ansible.builtin.include_tasks: cli.yaml
tags:
Expand All @@ -9,3 +13,7 @@
when: ansible_version.full is version('2.10.0', '>=')
tags:
- network_cli

- name: Run post-test cleanup tasks
ansible.builtin.import_tasks: post_tasks.yaml
failed_when: false
7 changes: 7 additions & 0 deletions tests/integration/targets/vyos_ospfv2/tasks/post_tasks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Remove pre-requisite configuration
vyos.vyos.vyos_config:
lines: |-
delete policy route-map ingress
vars:
ansible_connection: ansible.netcommon.network_cli
7 changes: 7 additions & 0 deletions tests/integration/targets/vyos_ospfv2/tasks/pre_tasks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Add pre-requisite configuration
vyos.vyos.vyos_config:
lines: |-
set policy route-map ingress
vars:
ansible_connection: ansible.netcommon.network_cli

0 comments on commit 98a126e

Please sign in to comment.