diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-08-21 19:13:38 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-08-21 19:13:39 +0000 |
commit | 63a32946c7dddc4c766040841fa72ba0230de7d5 (patch) | |
tree | 394beecbe57a74fb84cd65df9ee9770f5c307b0d | |
parent | f2a65732878778ef149dfc3d1f196240ea766423 (diff) | |
parent | c0c17099a54daabdcf3e6727f941d06ee9d50ba3 (diff) | |
download | python-novaclient-63a32946c7dddc4c766040841fa72ba0230de7d5.tar.gz |
Merge "Specify NIC option for nova boot"
-rw-r--r-- | novaclient/tests/functional/test_instances.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/novaclient/tests/functional/test_instances.py b/novaclient/tests/functional/test_instances.py index b569cb3c..e937f186 100644 --- a/novaclient/tests/functional/test_instances.py +++ b/novaclient/tests/functional/test_instances.py @@ -41,8 +41,10 @@ class TestInstanceCLI(base.ClientTestBase): name = str(uuid.uuid4()) # Boot via the cli, as we're primarily testing the cli in this test - self.nova('boot', params="--flavor %s --image %s %s --poll" % - (self.flavor.name, self.image.name, name)) + network = self.client.networks.list()[0] + self.nova('boot', + params="--flavor %s --image %s %s --nic net-id=%s --poll" % + (self.flavor.name, self.image.name, name, network.id)) # Be nice about cleaning up, however, use the API for this to avoid # parsing text. |