Merge "[Bug-Fix] use project_id while creating networks via nova-net"
This commit is contained in:
commit
93297080eb
@ -137,7 +137,7 @@ class NovaNetworkWrapper(NetworkWrapper):
|
||||
cidr = self._generate_cidr()
|
||||
label = utils.generate_random_name("rally_net_")
|
||||
network = self.client.networks.create(
|
||||
tenant_id=tenant_id, cidr=cidr, label=label)
|
||||
project_id=tenant_id, cidr=cidr, label=label)
|
||||
return self._marshal_network_object(network)
|
||||
|
||||
def delete_network(self, network):
|
||||
|
@ -79,7 +79,7 @@ class NovaNetworkWrapperTestCase(test.TestCase):
|
||||
mock_generate_random_name.assert_called_once_with("rally_net_")
|
||||
service._generate_cidr.assert_called_once_with()
|
||||
service.client.networks.create.assert_called_once_with(
|
||||
tenant_id="foo_tenant", cidr="foo_cidr", label="foo_name")
|
||||
project_id="foo_tenant", cidr="foo_cidr", label="foo_name")
|
||||
|
||||
def test_delete_network(self):
|
||||
service = self.get_wrapper()
|
||||
|
Loading…
Reference in New Issue
Block a user