Skip to content

Commit 0643908

Browse files
committed
modified merged test case and removed backward compatibility in tasks/main.yaml for integration tests of dcnm_network
1 parent 31824b9 commit 0643908

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

tests/integration/targets/dcnm_network/tasks/main.yaml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,6 @@
1111
delegate_to: localhost
1212
tags: always
1313

14-
# maintaining backward compatibility until all test cases are updated
15-
- set_fact:
16-
controller_version: "Unable to determine controller version"
17-
tags: always
18-
19-
- name: Determine version of DCNM or NDFC
20-
cisco.dcnm.dcnm_rest:
21-
method: GET
22-
path: /appcenter/cisco/ndfc/api/about/version
23-
register: result
24-
ignore_errors: yes
25-
tags: always
26-
27-
- set_fact:
28-
controller_version: "{{ result.response['DATA']['version'][0:2] | int }}"
29-
when: ( result.response['DATA']['version'] is search("\d\d.\d+") )
30-
ignore_errors: yes
31-
tags: always
32-
33-
- name: Determine version of DCNM or NDFC
34-
cisco.dcnm.dcnm_rest:
35-
method: GET
36-
path: /fm/fmrest/about/version
37-
register: result
38-
ignore_errors: yes
39-
tags: always
40-
41-
- set_fact:
42-
controller_version: "{{ result.response['DATA']['version'][0:2] | int }}"
43-
when: ( result.response['DATA']['version'] is search("\d\d.\d+") )
44-
ignore_errors: yes
45-
tags: always
46-
47-
48-
- assert:
49-
that:
50-
- 'controller_version != "Unable to determine controller version"'
51-
tags: always
52-
53-
# new version below
54-
5514
- name: MAIN - QUERY - Verify Fabric Deployment
5615
cisco.dcnm.dcnm_fabric:
5716
state: query

tests/integration/targets/dcnm_network/tests/dcnm/merged.yaml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -835,33 +835,6 @@
835835
- result.changed == false
836836
tags: merged
837837

838-
- name: MERGED - TC12 - Create Network and deploy in switch with null interface
839-
cisco.dcnm.dcnm_network:
840-
fabric: "{{ test_data_common.fabric }}"
841-
state: merged
842-
config:
843-
- net_name: ansible-net13
844-
vrf_name: Tenant-1
845-
net_id: 7005
846-
net_template: Default_Network_Universal
847-
net_extension_template: Default_Network_Extension_Universal
848-
vlan_id: 1500
849-
gw_ip_subnet: '192.168.30.1/24'
850-
attach:
851-
- ip_address: "{{ test_data_common.sw1 }}"
852-
ports:
853-
deploy: false
854-
register: result
855-
ignore_errors: yes
856-
tags: merged
857-
858-
- name: MERGED - TC12 - ASSERT - Check invalid switch
859-
assert:
860-
that:
861-
- '"Invalid parameters in playbook: ports : Required parameter not found" in result.msg'
862-
- result.changed == false
863-
tags: merged
864-
865838
- name: MERGED - TC12 - Create Network with out of range routing tag
866839
cisco.dcnm.dcnm_network:
867840
fabric: "{{ test_data_common.fabric }}"

0 commit comments

Comments
 (0)