From e0cc7b34151def2ce0b08dbe3cb995107a2d6a0f Mon Sep 17 00:00:00 2001 From: John R Barker Date: Fri, 28 Oct 2016 19:50:29 +0100 Subject: 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 --- test/integration/targets/dellos6_config/tasks/cli.yaml | 17 +++++++++++++++++ test/integration/targets/dellos6_config/tasks/main.yaml | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 test/integration/targets/dellos6_config/tasks/cli.yaml create mode 100644 test/integration/targets/dellos6_config/tasks/main.yaml (limited to 'test/integration/targets/dellos6_config/tasks') 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'] } + -- cgit v1.2.1