diff options
Diffstat (limited to 'test/integration/targets/ce_multicast_global')
4 files changed, 0 insertions, 95 deletions
diff --git a/test/integration/targets/ce_multicast_global/defaults/main.yaml b/test/integration/targets/ce_multicast_global/defaults/main.yaml deleted file mode 100644 index 164afead28..0000000000 --- a/test/integration/targets/ce_multicast_global/defaults/main.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -testcase: "[^_].*" -test_items: [] diff --git a/test/integration/targets/ce_multicast_global/tasks/main.yaml b/test/integration/targets/ce_multicast_global/tasks/main.yaml deleted file mode 100644 index cc27f174fd..0000000000 --- a/test/integration/targets/ce_multicast_global/tasks/main.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -- { include: netconf.yaml, tags: ['netconf'] } diff --git a/test/integration/targets/ce_multicast_global/tasks/netconf.yaml b/test/integration/targets/ce_multicast_global/tasks/netconf.yaml deleted file mode 100644 index 73b91adfaa..0000000000 --- a/test/integration/targets/ce_multicast_global/tasks/netconf.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -- name: collect all netconf test cases - find: - paths: "{{ role_path }}/tests/netconf" - patterns: "{{ testcase }}.yaml" - use_regex: true - connection: local - register: test_cases - -- name: set test_items - set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}" - -- name: run test case (connection=netconf) - include: "{{ test_case_to_run }} ansible_connection=netconf" - with_items: "{{ test_items }}" - loop_control: - loop_var: test_case_to_run diff --git a/test/integration/targets/ce_multicast_global/tests/netconf/test_ce_multicast_global.yaml b/test/integration/targets/ce_multicast_global/tests/netconf/test_ce_multicast_global.yaml deleted file mode 100644 index 69b1f5f26b..0000000000 --- a/test/integration/targets/ce_multicast_global/tests/netconf/test_ce_multicast_global.yaml +++ /dev/null @@ -1,73 +0,0 @@ ---- -- debug: - msg: "START ce_multicast_global presented integration tests on connection={{ ansible_connection }}" - -- name: present the provided configuration with the exisiting running configuration - ce_multicast_global: &present - aftype: v4 - vrf: vpna - weight: 100 - register: result - -- name: Assert the configuration is reflected on host - assert: - that: - - "result['changed'] == true" - -- name: Get basic config by ce_netconf. - ce_netconf: &get_config - rpc: get - cfg_xml: "<filter type=\"subtree\"> - <mcastbase xmlns=\"http://www.huawei.com/netconf/vrp\" content-version=\"1.0\" format-version=\"1.0\"> - <mcastAfsEnables> - <mcastAfsEnable> - <vrfName></vrfName> - <addressFamily></addressFamily> - </mcastAfsEnable> - </mcastAfsEnables> - </mcastbase> - </filter>" - register: result_xml - - -- name: present the provided configuration with the existing running configuration (IDEMPOTENT) - ce_multicast_global: *present - register: repeat - -- name: Assert that the previous task was idempotent - assert: - that: - - "repeat.changed == false" - - "'<vrfName>vpna</vrfName>' in result_xml.end_state.result" - - "'<addressFamily>vpna</addressFamily>' in result_xml.end_state.result" - -- name: present the provided configuration with the exisiting running configuration - ce_multicast_global: &absent - aftype: v4 - vrf: vpna - register: result - - -- name: Assert the configuration is reflected on host - assert: - that: - - "result['changed'] == true" - -- name: present the provided configuration with the existing running configuration (IDEMPOTENT) - ce_multicast_global: *absent - register: repeat - -- name: Get basic config by ce_netconf. - ce_netconf: *get_config - register: result_xml - -- name: Assert that the previous task was idempotent - assert: - that: - - "repeat.changed == false" - - "'<vrfName>vpna</vrfName>' not in result_xml.end_state.result" - - "'<addressFamily>vpna</addressFamily>' not in result_xml.end_state.result" -# after present, isis 100 should be deleted - -- debug: - msg: "END ce_multicast_global resentd integration tests on connection={{ ansible_connection }}" |