diff options
Diffstat (limited to 'test/integration/targets/nxos_feature')
7 files changed, 0 insertions, 129 deletions
diff --git a/test/integration/targets/nxos_feature/defaults/main.yaml b/test/integration/targets/nxos_feature/defaults/main.yaml deleted file mode 100644 index 5f709c5aac..0000000000 --- a/test/integration/targets/nxos_feature/defaults/main.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -testcase: "*" diff --git a/test/integration/targets/nxos_feature/meta/main.yml b/test/integration/targets/nxos_feature/meta/main.yml deleted file mode 100644 index ae741cbdc7..0000000000 --- a/test/integration/targets/nxos_feature/meta/main.yml +++ /dev/null @@ -1,2 +0,0 @@ -dependencies: - - prepare_nxos_tests diff --git a/test/integration/targets/nxos_feature/tasks/cli.yaml b/test/integration/targets/nxos_feature/tasks/cli.yaml deleted file mode 100644 index 9b62eaba65..0000000000 --- a/test/integration/targets/nxos_feature/tasks/cli.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -- name: collect common test cases - find: - paths: "{{ role_path }}/tests/common" - patterns: "{{ testcase }}.yaml" - connection: local - register: test_cases - -- name: collect cli test cases - find: - paths: "{{ role_path }}/tests/cli" - patterns: "{{ testcase }}.yaml" - connection: local - register: cli_cases - -- set_fact: - test_cases: - files: "{{ test_cases.files }} + {{ cli_cases.files }}" - -- 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 connection={{ cli }}" - with_items: "{{ test_items }}" - loop_control: - loop_var: test_case_to_run diff --git a/test/integration/targets/nxos_feature/tasks/main.yaml b/test/integration/targets/nxos_feature/tasks/main.yaml deleted file mode 100644 index 4b0f8c64d9..0000000000 --- a/test/integration/targets/nxos_feature/tasks/main.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -- { include: cli.yaml, tags: ['cli'] } -- { include: nxapi.yaml, tags: ['nxapi'] } diff --git a/test/integration/targets/nxos_feature/tasks/nxapi.yaml b/test/integration/targets/nxos_feature/tasks/nxapi.yaml deleted file mode 100644 index cbf41b9294..0000000000 --- a/test/integration/targets/nxos_feature/tasks/nxapi.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -- name: collect common test cases - find: - paths: "{{ role_path }}/tests/common" - patterns: "{{ testcase }}.yaml" - connection: local - register: test_cases - -- name: collect nxapi test cases - find: - paths: "{{ role_path }}/tests/nxapi" - patterns: "{{ testcase }}.yaml" - connection: local - register: nxapi_cases - -- set_fact: - test_cases: - files: "{{ test_cases.files }} + {{ nxapi_cases.files }}" - -- name: set test_items - set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}" - -- name: run test cases (connection=httpapi) - include: "{{ test_case_to_run }} ansible_connection=httpapi connection={{ nxapi }}" - with_items: "{{ test_items }}" - loop_control: - loop_var: test_case_to_run diff --git a/test/integration/targets/nxos_feature/tests/common/configure.yaml b/test/integration/targets/nxos_feature/tests/common/configure.yaml deleted file mode 100644 index 2c02bea4c8..0000000000 --- a/test/integration/targets/nxos_feature/tests/common/configure.yaml +++ /dev/null @@ -1,54 +0,0 @@ ---- -- debug: msg="START connection={{ ansible_connection }}/configure.yaml" - -- name: setup - nxos_config: - lines: no feature bgp - match: none - -- name: enable bgp - nxos_feature: - feature: bgp - state: enabled - register: result - -- assert: - that: - - "result.changed == true" - -- name: verify bgp - nxos_feature: - feature: bgp - state: enabled - register: result - -- assert: - that: - - "result.changed == false" - -- name: disable bgp - nxos_feature: - feature: bgp - state: disabled - register: result - -- assert: - that: - - "result.changed == true" - -- name: verify bgp - nxos_feature: - feature: bgp - state: disabled - register: result - -- assert: - that: - - "result.changed == false" - -- name: teardown - nxos_config: - lines: no feature bgp - match: none - -- debug: msg="END connection={{ ansible_connection }}/configure.yaml" diff --git a/test/integration/targets/nxos_feature/tests/common/invalid.yaml b/test/integration/targets/nxos_feature/tests/common/invalid.yaml deleted file mode 100644 index 477eaf6416..0000000000 --- a/test/integration/targets/nxos_feature/tests/common/invalid.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -- debug: msg="START connection={{ ansible_connection }}/invalid.yaml" - -- name: configure invalid feature name - nxos_feature: - feature: invalid - register: result - ignore_errors: yes - -- assert: - that: - - result.failed == true - -- debug: msg="END connection={{ ansible_connection }}/invalid.yaml" |