diff options
author | omnom62 <75066712+omnom62@users.noreply.github.com> | 2025-03-02 22:43:17 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-02 07:43:17 -0500 |
commit | ad249c39c3259df8c2536dd80f62723eb9c364ef (patch) | |
tree | 36d1a9ef0a9eb4d60dea2c970c1c0f077c604791 /tests/integration/targets/vyos_ospf_interfaces/tasks | |
parent | cfc4c93253d57de953c4cae7acc5f2b2890614ac (diff) | |
download | vyos.vyos-ad249c39c3259df8c2536dd80f62723eb9c364ef.tar.gz vyos.vyos-ad249c39c3259df8c2536dd80f62723eb9c364ef.zip |
T7012 ospf_interfaces integration tests (#387)
* T7012 init strucuture for ospf_interfaces integration tests
* ospf_interfaces unit and integration tests fixes for 1.3-
* fixes to v1.4 ospf_interfaces parsers
* T7012 integration tests and 1.4+ support for ospf_interfaces
Diffstat (limited to 'tests/integration/targets/vyos_ospf_interfaces/tasks')
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/integration/targets/vyos_ospf_interfaces/tasks/main.yaml b/tests/integration/targets/vyos_ospf_interfaces/tasks/main.yaml index e637858..4a9d2cd 100644 --- a/tests/integration/targets/vyos_ospf_interfaces/tasks/main.yaml +++ b/tests/integration/targets/vyos_ospf_interfaces/tasks/main.yaml @@ -1,5 +1,13 @@ --- +- name: Run preflight setup + ansible.builtin.import_tasks: pre_tasks.yml + failed_when: false + - name: Run CLI tests ansible.builtin.include_tasks: cli.yaml tags: - network_cli + +- name: Run post-test cleanup tasks + ansible.builtin.import_tasks: post_tasks.yml + failed_when: false diff --git a/tests/integration/targets/vyos_ospf_interfaces/tasks/post_tasks.yml b/tests/integration/targets/vyos_ospf_interfaces/tasks/post_tasks.yml new file mode 100644 index 0000000..0883ef4 --- /dev/null +++ b/tests/integration/targets/vyos_ospf_interfaces/tasks/post_tasks.yml @@ -0,0 +1,7 @@ +--- +- name: Demolish environment + vyos.vyos.vyos_config: + lines: |- + delete interfaces bonding bond2 + vars: + ansible_connection: ansible.netcommon.network_cli diff --git a/tests/integration/targets/vyos_ospf_interfaces/tasks/pre_tasks.yml b/tests/integration/targets/vyos_ospf_interfaces/tasks/pre_tasks.yml new file mode 100644 index 0000000..af74ff7 --- /dev/null +++ b/tests/integration/targets/vyos_ospf_interfaces/tasks/pre_tasks.yml @@ -0,0 +1,7 @@ +--- +- name: Setup environment + vyos.vyos.vyos_config: + lines: |- + set interfaces bonding bond2 + vars: + ansible_connection: ansible.netcommon.network_cli |