Fix broken unit tests - add project_id
Commit I8775aa8a477191ef21e7c3c6da31d098befefc3c broke some of the unit tests Change-Id: I58dbf6a38bcf42ea2c1e655119e1e63edfe2d42e
This commit is contained in:
parent
6d6eb4aea8
commit
abd604c91d
@ -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'}}
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user