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:28:06 +1000
committerGitHub <noreply@github.com>2026-08-20 05:28:06 +1000
commit5a20bf9d67d11941aa25702d88bfd617d88c4b2c (patch)
treea9824ebd934ab26e3d05db419a4fcca5327d2c3b /tests/integration/targets/vyos_ha/tasks
parent28173d14e62e7c582679526513d6ba220957430a (diff)
parenta6adced609472d88cb525f2ef1a4054b52692f76 (diff)
downloadvyos.vyos-fix/black-formatting.tar.gz
vyos.vyos-fix/black-formatting.zip
Merge branch 'main' into fix/black-formattingfix/black-formatting
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