summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_ha/tasks
diff options
context:
space:
mode:
authoromnom62 <75066712+omnom62@users.noreply.github.com>2026-08-20 05:27:37 +1000
committerGitHub <noreply@github.com>2026-08-20 05:27:37 +1000
commit07cf6550fabb570d3a3ed3f5fd9ed137a6b55bed (patch)
tree58db08580409917adf75980324527acb1bf1101c /tests/integration/targets/vyos_ha/tasks
parentccb7388fec96d20ac1499c12eaa26a0f581b165e (diff)
parenta6adced609472d88cb525f2ef1a4054b52692f76 (diff)
downloadvyos.vyos-test/l3-interfaces-unit-tests.tar.gz
vyos.vyos-test/l3-interfaces-unit-tests.zip
Merge branch 'main' into test/l3-interfaces-unit-teststest/l3-interfaces-unit-tests
Diffstat (limited to 'tests/integration/targets/vyos_ha/tasks')
-rw-r--r--tests/integration/targets/vyos_ha/tasks/cli.yaml20
-rw-r--r--tests/integration/targets/vyos_ha/tasks/main.yaml5
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/integration/targets/vyos_ha/tasks/cli.yaml b/tests/integration/targets/vyos_ha/tasks/cli.yaml
new file mode 100644
index 00000000..daccf720
--- /dev/null
+++ b/tests/integration/targets/vyos_ha/tasks/cli.yaml
@@ -0,0 +1,20 @@
+---
+- name: Collect all cli test cases
+ ansible.builtin.find:
+ paths: "{{ role_path }}/tests/cli"
+ patterns: "{{ testcase }}.yaml"
+ use_regex: true
+ register: test_cases
+ delegate_to: localhost
+
+- name: Set test_items
+ ansible.builtin.set_fact:
+ test_items: "{{ test_cases.files | map(attribute='path') | list }}"
+
+- name: Run test case (connection=ansible.netcommon.network_cli)
+ ansible.builtin.include_tasks: "{{ test_case_to_run }}"
+ vars:
+ ansible_connection: ansible.netcommon.network_cli
+ with_items: "{{ test_items }}"
+ loop_control:
+ loop_var: test_case_to_run
diff --git a/tests/integration/targets/vyos_ha/tasks/main.yaml b/tests/integration/targets/vyos_ha/tasks/main.yaml
new file mode 100644
index 00000000..e6378581
--- /dev/null
+++ b/tests/integration/targets/vyos_ha/tasks/main.yaml
@@ -0,0 +1,5 @@
+---
+- name: Run CLI tests
+ ansible.builtin.include_tasks: cli.yaml
+ tags:
+ - network_cli