summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_static_routes/tasks/cli.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/targets/vyos_static_routes/tasks/cli.yaml')
-rw-r--r--tests/integration/targets/vyos_static_routes/tasks/cli.yaml7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/integration/targets/vyos_static_routes/tasks/cli.yaml b/tests/integration/targets/vyos_static_routes/tasks/cli.yaml
index 83496e0..daccf72 100644
--- a/tests/integration/targets/vyos_static_routes/tasks/cli.yaml
+++ b/tests/integration/targets/vyos_static_routes/tasks/cli.yaml
@@ -1,6 +1,6 @@
---
- name: Collect all cli test cases
- find:
+ ansible.builtin.find:
paths: "{{ role_path }}/tests/cli"
patterns: "{{ testcase }}.yaml"
use_regex: true
@@ -8,10 +8,11 @@
delegate_to: localhost
- name: Set test_items
- set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
+ ansible.builtin.set_fact:
+ test_items: "{{ test_cases.files | map(attribute='path') | list }}"
- name: Run test case (connection=ansible.netcommon.network_cli)
- include: "{{ test_case_to_run }}"
+ ansible.builtin.include_tasks: "{{ test_case_to_run }}"
vars:
ansible_connection: ansible.netcommon.network_cli
with_items: "{{ test_items }}"