diff --git a/vmware_nsx/tests/unit/extensions/test_networkgw.py b/vmware_nsx/tests/unit/extensions/test_networkgw.py index 9fc6a46ea1..5f8db4ee14 100644 --- a/vmware_nsx/tests/unit/extensions/test_networkgw.py +++ b/vmware_nsx/tests/unit/extensions/test_networkgw.py @@ -98,8 +98,10 @@ class NetworkGatewayExtensionTestCase(base.BaseTestCase): def test_network_gateway_create(self): nw_gw_id = _uuid() + tenant_id = _uuid() data = {self._gw_resource: {'name': 'nw-gw', - 'tenant_id': _uuid(), + 'tenant_id': tenant_id, + 'project_id': tenant_id, 'devices': [{'id': _uuid(), 'interface_name': 'xxx'}]}} return_value = data[self._gw_resource].copy() @@ -274,8 +276,10 @@ class NetworkGatewayExtensionTestCase(base.BaseTestCase): def test_gateway_device_create(self): gw_dev_id = _uuid() + tenant_id = _uuid() data = {self._dev_resource: {'name': 'test-dev', - 'tenant_id': _uuid(), + 'tenant_id': tenant_id, + 'project_id': tenant_id, 'client_certificate': 'xyz', 'connector_type': 'stt', 'connector_ip': '1.1.1.1'}} diff --git a/vmware_nsx/tests/unit/extensions/test_secgroup_rule_local_ip_prefix.py b/vmware_nsx/tests/unit/extensions/test_secgroup_rule_local_ip_prefix.py index e0441f8b61..7749b7f5b4 100644 --- a/vmware_nsx/tests/unit/extensions/test_secgroup_rule_local_ip_prefix.py +++ b/vmware_nsx/tests/unit/extensions/test_secgroup_rule_local_ip_prefix.py @@ -125,6 +125,7 @@ class TestNSXv3ExtendedSGRule(test_nsxv3_plugin.NsxV3PluginTestCaseMixin, def test_create_rule_with_local_ip_prefix(self): sg_rules = [ {'tenant_id': mock.ANY, + 'project_id': mock.ANY, 'id': mock.ANY, 'port_range_min': None, 'local_ip_prefix': '239.255.0.0/16',