File tree Expand file tree Collapse file tree 12 files changed +25
-25
lines changed
tests/integration/targets Expand file tree Collapse file tree 12 files changed +25
-25
lines changed Original file line number Diff line number Diff line change 4545 # Assert for Create responses
4646 - assert :
4747 that :
48- - ' result.failed == true '
49- - ' "OSPF_TAG" in result["msg"] or (result["msg"][" DATA"] is defined and "OSPF_TAG" in result["msg"]["DATA"][" failureList"][0]["message"]) '
50- - ' "LOOPBACK_IP" in result["msg"] or (result["msg"][" DATA"] is defined and "LOOPBACK_IP" in result["msg"]["DATA"][" failureList"][0]["message"]) '
48+ - ' result["msg"]["RETURN_CODE"] != 200 '
49+ - ' "OSPF_TAG" in result["msg"][" DATA"][" failureList"][0]["message"]'
50+ - ' "LOOPBACK_IP" in result["msg"][" DATA"][" failureList"][0]["message"]'
5151
5252 - name : Create multiple policies including required variables with the same template
5353 cisco.dcnm.dcnm_policy :
Original file line number Diff line number Diff line change 2727
2828- set_fact :
2929 rest_path : " /rest/control/fabrics/{{ fabric_1 }}"
30- when : controller_version == 11
30+ when : controller_version == "11"
3131
3232- set_fact :
3333 rest_path : " /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/{{ fabric_1 }}"
34- when : controller_version >= 12
34+ when : controller_version >= "12"
3535
3636- name : SETUP.0 - DELETED - print vars
3737 ansible.builtin.debug :
Original file line number Diff line number Diff line change 3636
3737- set_fact :
3838 rest_path : " /rest/control/fabrics/{{ fabric_1 }}"
39- when : controller_version == 11
39+ when : controller_version == "11"
4040
4141- set_fact :
4242 rest_path : " /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/{{ fabric_1 }}"
43- when : controller_version >= 12
43+ when : controller_version >= "12"
4444
4545- name : SETUP.0 - MERGED - [with_items] print vars
4646 ansible.builtin.debug :
Original file line number Diff line number Diff line change 3838
3939- set_fact :
4040 rest_path : " /rest/control/fabrics/{{ fabric_1 }}"
41- when : controller_version == 11
41+ when : controller_version == "11"
4242
4343- set_fact :
4444 rest_path : " /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/{{ fabric_1 }}"
45- when : controller_version >= 12
45+ when : controller_version >= "12"
4646
4747- name : SETUP.0 - OVERRIDDEN - print vars
4848 ansible.builtin.debug :
Original file line number Diff line number Diff line change 2525
2626- set_fact :
2727 rest_path : " /rest/control/fabrics/{{ fabric_1 }}"
28- when : controller_version == 11
28+ when : controller_version == "11"
2929
3030- set_fact :
3131 rest_path : " /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/{{ fabric_1 }}"
32- when : controller_version >= 12
32+ when : controller_version >= "12"
3333
3434- name : SETUP.0 - QUERY - [with_items] print vars
3535 ansible.builtin.debug :
Original file line number Diff line number Diff line change 2727
2828- set_fact :
2929 rest_path : " /rest/control/fabrics/{{ fabric_1 }}"
30- when : controller_version == 11
30+ when : controller_version == "11"
3131
3232- set_fact :
3333 rest_path : " /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/{{ fabric_1 }}"
34- when : controller_version >= 12
34+ when : controller_version >= "12"
3535
3636- name : SETUP.0 - REPLACED - [with_items] print vars
3737 ansible.builtin.debug :
Original file line number Diff line number Diff line change 2323
2424- set_fact :
2525 rest_path : " /rest/control/fabrics/{{ fabric_1 }}"
26- when : controller_version == 11
26+ when : controller_version == "11"
2727 tags :
2828 - sanity
2929
3030- set_fact :
3131 rest_path : " /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/{{ fabric_1 }}"
32- when : controller_version >= 12
32+ when : controller_version >= "12"
3333 tags :
3434 - sanity
3535
Original file line number Diff line number Diff line change 2323
2424- set_fact :
2525 rest_path : " /rest/control/fabrics/{{ fabric_1 }}"
26- when : controller_version == 11
26+ when : controller_version == "11"
2727
2828- set_fact :
2929 rest_path : " /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/{{ fabric_1 }}"
30- when : controller_version >= 12
30+ when : controller_version >= "12"
3131
3232- name : DELETE_ALL - Verify if fabric is deployed.
3333 cisco.dcnm.dcnm_rest :
Original file line number Diff line number Diff line change 2323
2424- set_fact :
2525 rest_path : " /rest/control/fabrics/{{ fabric_1 }}"
26- when : controller_version == 11
26+ when : controller_version == "11"
2727
2828- set_fact :
2929 rest_path : " /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/{{ fabric_1 }}"
30- when : controller_version >= 12
30+ when : controller_version >= "12"
3131
3232- name : MERGED_ALL - Verify if fabric is deployed.
3333 cisco.dcnm.dcnm_rest :
Original file line number Diff line number Diff line change 2323
2424- set_fact :
2525 rest_path : " /rest/control/fabrics/{{ fabric_1 }}"
26- when : controller_version == 11
26+ when : controller_version == "11"
2727
2828- set_fact :
2929 rest_path : " /appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/{{ fabric_1 }}"
30- when : controller_version >= 12
30+ when : controller_version >= "12"
3131
3232- name : OVERRIDDEN_ALL - Verify if fabric is deployed.
3333 cisco.dcnm.dcnm_rest :
You can’t perform that action at this time.
0 commit comments