summaryrefslogtreecommitdiff
path: root/test/integration/targets/dellos6_config/tasks
diff options
context:
space:
mode:
authorJohn R Barker <john@johnrbarker.com>2016-10-28 19:50:29 +0100
committerGitHub <noreply@github.com>2016-10-28 19:50:29 +0100
commite0cc7b34151def2ce0b08dbe3cb995107a2d6a0f (patch)
tree09df24fe1a91723d5fe716d8b9da843b383d5204 /test/integration/targets/dellos6_config/tasks
parent4a067c3f502aa2254d8f35d8598895df8f3d1365 (diff)
downloadansible-e0cc7b34151def2ce0b08dbe3cb995107a2d6a0f.tar.gz
Migrate Network Tests into ansible/ansible (#18233)
* Docs Networking tests * Copy networking tests from test-network-modules * Networking transport settings - group_vars * Network playbooks * Debug should be off by default * Update nxos.yaml * Remove items from top level * Use dependencies, not pre-tasks * Remove trailing blank lines * Remove backup files * newlines
Diffstat (limited to 'test/integration/targets/dellos6_config/tasks')
-rw-r--r--test/integration/targets/dellos6_config/tasks/cli.yaml17
-rw-r--r--test/integration/targets/dellos6_config/tasks/main.yaml3
2 files changed, 20 insertions, 0 deletions
diff --git a/test/integration/targets/dellos6_config/tasks/cli.yaml b/test/integration/targets/dellos6_config/tasks/cli.yaml
new file mode 100644
index 0000000000..b916410f16
--- /dev/null
+++ b/test/integration/targets/dellos6_config/tasks/cli.yaml
@@ -0,0 +1,17 @@
+---
+- name: collect all cli test cases
+ find:
+ paths: "{{ role_path }}/tests/cli"
+ patterns: "{{ testcase }}.yaml"
+ register: test_cases
+
+- name: set test_items
+ set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
+
+- name: run test case
+ include: "{{ test_case_to_run }}"
+ with_items: "{{ test_items }}"
+ loop_control:
+ loop_var: test_case_to_run
+
+
diff --git a/test/integration/targets/dellos6_config/tasks/main.yaml b/test/integration/targets/dellos6_config/tasks/main.yaml
new file mode 100644
index 0000000000..aea4ecccf1
--- /dev/null
+++ b/test/integration/targets/dellos6_config/tasks/main.yaml
@@ -0,0 +1,3 @@
+---
+- { include: cli.yaml, tags: ['cli'] }
+