Fix nsxlib UT mocks to return the right output format

nsxlib_testcase initializes a mock for section init_default which
returned the wrong kind of output.

Change-Id: Ia0d3b58b7e66aead01f1dcaa53b67129cb98a60b
changes/34/575334/1
Adit Sarfaty 5 years ago
parent 756a33b6cf
commit 716527fb20

@ -77,8 +77,7 @@ def _mock_nsxlib():
mocking.append(mock.patch(
"vmware_nsxlib.v3.security.NsxLibNsGroup.create",
side_effect=_return_id_key
))
side_effect=_return_id_key))
mocking.append(mock.patch(
"vmware_nsxlib.v3.security.NsxLibFirewallSection.create_empty",
@ -86,7 +85,7 @@ def _mock_nsxlib():
mocking.append(mock.patch(
"vmware_nsxlib.v3.security.NsxLibFirewallSection.init_default",
side_effect=_return_id_key))
return_value=uuidutils.generate_uuid()))
mocking.append(mock.patch(
"vmware_nsxlib.v3.security.NsxLibNsGroup.list"))

Loading…
Cancel
Save