Skip to content

Commit 668a5d1

Browse files
committed
Fix unit tests
1 parent 268acfa commit 668a5d1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

plugins/modules/dcnm_interface.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,6 +1779,7 @@ class DcnmIntf:
17791779
"INTERFACE": "/rest/interface",
17801780
"IF_MARK_DELETE": "/rest/interface/markdelete",
17811781
"FABRIC_ACCESS_MODE": "/rest/control/fabrics/{}/accessmode",
1782+
"BREAKOUT": "/rest/interface/breakout",
17821783
},
17831784
12: {
17841785
"VPC_SNO": "/appcenter/cisco/ndfc/api/v1/lan-fabric/rest/interface/vpcpair_serial_number?serial_number={}",

tests/unit/modules/dcnm/test_dcnm_intf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3073,6 +3073,9 @@ def test_dcnm_intf_pc_overridden_existing(self):
30733073

30743074
def test_dcnm_intf_eth_merged_existing(self):
30753075

3076+
# Use Version 12 For This Test Case
3077+
self.run_dcnm_version_supported.side_effect = [12]
3078+
30763079
# load the json from playbooks
30773080
self.config_data = loadPlaybookData("dcnm_intf_eth_configs")
30783081
self.payloads_data = loadPlaybookData("dcnm_intf_eth_payloads")
@@ -3110,6 +3113,9 @@ def test_dcnm_intf_eth_merged_existing(self):
31103113

31113114
def test_dcnm_intf_eth_merged_new(self):
31123115

3116+
# Use Version 12 For This Test Case
3117+
self.run_dcnm_version_supported.side_effect = [12]
3118+
31133119
# load the json from playbooks
31143120
self.config_data = loadPlaybookData("dcnm_intf_eth_configs")
31153121
self.payloads_data = loadPlaybookData("dcnm_intf_eth_payloads")
@@ -3653,6 +3659,9 @@ def test_dcnm_intf_subint_overridden_existing(self):
36533659

36543660
def test_dcnm_intf_lo_merged_new(self):
36553661

3662+
# Use Version 12 For This Test Case
3663+
self.run_dcnm_version_supported.side_effect = [12]
3664+
36563665
# load the json from playbooks
36573666
self.config_data = loadPlaybookData("dcnm_intf_lo_configs")
36583667
self.payloads_data = loadPlaybookData("dcnm_intf_lo_payloads")

0 commit comments

Comments
 (0)