Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvirani committed May 6, 2021
1 parent 6f2c6aa commit 727cf6c
Showing 1 changed file with 2 additions and 52 deletions.
54 changes: 2 additions & 52 deletions test/test_oneview_logical_interconnect_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
)
)


DEFAULT_LIG_TEMPLATE_WITH_FC_NETWORK_UPLINKSETS = dict(
config='config.json',
state='present',
Expand Down Expand Up @@ -195,57 +196,6 @@
)
))

PARAMS_LIG_TEMPLATE_WITH_MAP_URI = dict(
config='config.json',
state='present',
data=dict(
name=DEFAULT_LIG_NAME,
internalNetworkUris=["test1"],
uplinkSets=[dict(
logicalPortConfigInfos=[dict(
desiredSpeed="Auto",
logicalLocation=dict(
locationEntries=[dict(
relativeValue=1,
type="Bay"
), dict(
relativeValue=21,
type="Port"
), dict(
relativeValue=1,
type="Enclosure"
)
]
)
)
],
name="EnetUplink1",
networkType="Ethernet",
networkUris=["/rest/ethernet-networks/5c3aefcb-0dd5-4fcc-b652-c9e734797fbd"],
networkSetUris=["NetworkSet1"]
)
],
enclosureType='C7000',
interconnectMapTemplate=dict(
interconnectMapEntryTemplates=[
{
"logicalLocation": {
"locationEntries": [
{
"relativeValue": "1",
"type": "Bay"
},
{
"relativeValue": 1,
"type": "Enclosure"
}
]
},
"permittedInterconnectTypeUri": "HP"
}]
)
))

PARAMS_FOR_PRESENT = dict(
config='config.json',
state='present',
Expand Down Expand Up @@ -438,7 +388,7 @@ def test_update_when_data_has_modified_uplinkset_attributes(self):
)

def test_should_not_update_when_data_has_same_uplinkset_attributes(self):
self.resource.data = deepcopy(PARAMS_LIG_TEMPLATE_WITH_MAP)
self.resource.data = deepcopy(DEFAULT_LIG_TEMPLATE_WITH_UPLINKSETS)
self.resource.get_by_name.return_value = self.resource
self.mock_ansible_module.params = deepcopy(PARAMS_LIG_TEMPLATE_WITH_MAP)

Expand Down

0 comments on commit 727cf6c

Please sign in to comment.