Skip to content

Commit 9045e73

Browse files
authored
Updated IT: dcnm_network to be in parity with new changes to dcnm_network (#463)
* modified merged test case and removed backward compatibility in tasks/main.yaml for integration tests of dcnm_network * fixed IT: dcnm_network templates deploy parameter
1 parent 31824b9 commit 9045e73

File tree

12 files changed

+12
-80
lines changed

12 files changed

+12
-80
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/templates/self-contained-tests/double_net_dhcp_changed_conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
attach:
2626
- ip_address: "{{ test_data_common.sw2 }}"
2727
ports: []
28-
deploy: "{{ test_data_common.deploy }}"
28+
deploy: {{ test_data_common.deploy | bool }}

tests/integration/targets/dcnm_network/templates/self-contained-tests/double_net_dhcp_conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
attach:
2727
- ip_address: "{{ test_data_common.sw1 }}"
2828
ports: []
29-
deploy: "{{ test_data_common.deploy }}"
29+
deploy: {{ test_data_common.deploy | bool }}
3030

3131
- net_name: "{{ test_data_common.net2 }}"
3232
vrf_name: "{{ test_data_common.net2_vrf }}"
@@ -50,4 +50,4 @@
5050
attach:
5151
- ip_address: "{{ test_data_common.sw2 }}"
5252
ports: []
53-
deploy: "{{ test_data_common.deploy }}"
53+
deploy: {{ test_data_common.deploy | bool }}

tests/integration/targets/dcnm_network/templates/self-contained-tests/double_net_mcast_changed_conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
attach:
2121
- ip_address: "{{ test_data_common.sw1 }}"
2222
ports: []
23-
deploy: "{{ test_data_common.deploy | bool }}"
23+
deploy: {{ test_data_common.deploy | bool }}

tests/integration/targets/dcnm_network/templates/self-contained-tests/double_net_mcast_conf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
attach:
2121
- ip_address: "{{ test_data_common.sw1 }}"
2222
ports: []
23-
deploy: "{{ test_data_common.deploy | bool }}"
23+
deploy: {{ test_data_common.deploy | bool }}
2424

2525
- net_name: "{{ test_data_common.net2 }}"
2626
vrf_name: "{{ test_data_common.net2_vrf }}"
@@ -38,4 +38,4 @@
3838
attach:
3939
- ip_address: "{{ test_data_common.sw1 }}"
4040
ports: []
41-
deploy: "{{ test_data_common.deploy | bool }}"
41+
deploy: {{ test_data_common.deploy | bool }}

tests/integration/targets/dcnm_network/templates/self-contained-tests/net1_changed_conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
attach:
2222
- ip_address: "{{ test_data_common.sw1 }}"
2323
ports: ["{{ test_data_common.sw1_int3 }}", "{{ test_data_common.sw1_int4 }}"]
24-
deploy: "{{ test_data_common.deploy | bool }}"
24+
deploy: {{ test_data_common.deploy | bool }}

tests/integration/targets/dcnm_network/templates/self-contained-tests/net1_conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
attach:
2222
- ip_address: "{{ test_data_common.sw1 }}"
2323
ports: ["{{ test_data_common.sw1_int1 }}", "{{ test_data_common.sw1_int2 }}"]
24-
deploy: "{{ test_data_common.deploy | bool }}"
24+
deploy: {{ test_data_common.deploy | bool }}

tests/integration/targets/dcnm_network/templates/self-contained-tests/net1_dhcp_changed_conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
attach:
2727
- ip_address: "{{ test_data_common.sw1 }}"
2828
ports: []
29-
deploy: "{{ test_data_common.deploy | bool }}"
29+
deploy: {{ test_data_common.deploy | bool }}

tests/integration/targets/dcnm_network/templates/self-contained-tests/net1_mcast_changed_conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
attach:
2121
- ip_address: "{{ test_data_common.sw1 }}"
2222
ports: []
23-
deploy: "{{ test_data_common.deploy | bool }}"
23+
deploy: {{ test_data_common.deploy | bool }}

tests/integration/targets/dcnm_network/templates/self-contained-tests/net1_mcast_conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
attach:
2121
- ip_address: "{{ test_data_common.sw1 }}"
2222
ports: []
23-
deploy: "{{ test_data_common.deploy | bool }}"
23+
deploy: {{ test_data_common.deploy | bool }}

0 commit comments

Comments
 (0)