Merge "[Bug-Fix] use project_id while creating networks via nova-net"

This commit is contained in:
Jenkins 2015-09-07 14:59:54 +00:00 committed by Gerrit Code Review
commit 93297080eb
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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()