summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_lldp_interfaces/tasks/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/eos_lldp_interfaces/tasks/main.yaml')
-rw-r--r--test/integration/targets/eos_lldp_interfaces/tasks/main.yaml18
1 files changed, 16 insertions, 2 deletions
diff --git a/test/integration/targets/eos_lldp_interfaces/tasks/main.yaml b/test/integration/targets/eos_lldp_interfaces/tasks/main.yaml
index 970e74171e..068963b4c3 100644
--- a/test/integration/targets/eos_lldp_interfaces/tasks/main.yaml
+++ b/test/integration/targets/eos_lldp_interfaces/tasks/main.yaml
@@ -1,3 +1,17 @@
---
-- { include: cli.yaml, tags: ['cli'] }
-- { include: eapi.yaml, tags: ['eapi'] }
+- name: collect all cli test cases
+ find:
+ paths: "{{ role_path }}/tests/cli"
+ patterns: "{{ testcase }}.yaml"
+ delegate_to: localhost
+ register: test_cases
+
+- name: set test_items
+ set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
+
+- name: run test cases (connection=network_cli)
+ include: "{{ test_case_to_run }} ansible_connection=network_cli"
+ with_items: "{{ test_items }}"
+ loop_control:
+ loop_var: test_case_to_run
+ tags: connection_network_cli