summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_static_routes/tasks
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2026-08-21 09:54:00 -0500
committerJohn Estabrook <jestabro@vyos.io>2026-08-21 09:59:31 -0500
commit5dd8b71c30cc469c252f3ab7afebc31c70150896 (patch)
tree52f870ed414506aaa5cd6efa7ae6513d807e194b /tests/integration/targets/vyos_static_routes/tasks
parentea2fdf452455738d82b68c74681c259111bf3276 (diff)
parent885b9462480712210ddeea9ca4a4b7a52e9ef587 (diff)
downloadrest.vyos-T8989_interfaces.tar.gz
rest.vyos-T8989_interfaces.zip
Merge branch 'main' into T8989_interfacesT8989_interfaces
Diffstat (limited to 'tests/integration/targets/vyos_static_routes/tasks')
-rw-r--r--tests/integration/targets/vyos_static_routes/tasks/httpapi.yaml21
-rw-r--r--tests/integration/targets/vyos_static_routes/tasks/main.yaml5
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/integration/targets/vyos_static_routes/tasks/httpapi.yaml b/tests/integration/targets/vyos_static_routes/tasks/httpapi.yaml
new file mode 100644
index 0000000..4147e6d
--- /dev/null
+++ b/tests/integration/targets/vyos_static_routes/tasks/httpapi.yaml
@@ -0,0 +1,21 @@
+---
+- name: Collect all httpapi test cases
+ ansible.builtin.find:
+ paths: "{{ role_path }}/tests/httpapi"
+ 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=httpapi)
+ ansible.builtin.include_tasks: "{{ test_case_to_run }}"
+ vars:
+ ansible_connection: ansible.netcommon.httpapi
+ ansible_network_os: vyos.rest.vyos
+ with_items: "{{ test_items }}"
+ loop_control:
+ loop_var: test_case_to_run
diff --git a/tests/integration/targets/vyos_static_routes/tasks/main.yaml b/tests/integration/targets/vyos_static_routes/tasks/main.yaml
new file mode 100644
index 0000000..b1f6193
--- /dev/null
+++ b/tests/integration/targets/vyos_static_routes/tasks/main.yaml
@@ -0,0 +1,5 @@
+---
+- name: Run httpapi tests
+ ansible.builtin.include_tasks: httpapi.yaml
+ tags:
+ - httpapi