summaryrefslogtreecommitdiff
path: root/openstackclient/tests/compute/v2/fakes.py
diff options
context:
space:
mode:
authorzhiyuan_cai <luckyvega.g@gmail.com>2014-12-26 17:17:35 +0800
committerSteve Martinelli <stevemar@ca.ibm.com>2015-01-27 05:34:32 +0000
commit520b2f10cf0218509ca6cab7439214be812b425e (patch)
tree725325e886ebefc784402cdecebebabc6523f3a7 /openstackclient/tests/compute/v2/fakes.py
parent703a25d445d7b710212633af3a12d8c168208c62 (diff)
downloadpython-openstackclient-520b2f10cf0218509ca6cab7439214be812b425e.tar.gz
Add 'find by name' to --nic for creating server
Add 'find by name' feature to --nic option for creating server. Closes-Bug: #1353040 Change-Id: Idd0a30415d8360a57e33efedf2467593652683d4
Diffstat (limited to 'openstackclient/tests/compute/v2/fakes.py')
-rw-r--r--openstackclient/tests/compute/v2/fakes.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/openstackclient/tests/compute/v2/fakes.py b/openstackclient/tests/compute/v2/fakes.py
index e5ed5cbd..a22c1ce0 100644
--- a/openstackclient/tests/compute/v2/fakes.py
+++ b/openstackclient/tests/compute/v2/fakes.py
@@ -17,6 +17,7 @@ import mock
from openstackclient.tests import fakes
from openstackclient.tests.image.v2 import fakes as image_fakes
+from openstackclient.tests.network.v2 import fakes as network_fakes
from openstackclient.tests import utils
@@ -88,3 +89,8 @@ class TestComputev2(utils.TestCommand):
endpoint=fakes.AUTH_URL,
token=fakes.AUTH_TOKEN,
)
+
+ self.app.client_manager.network = network_fakes.FakeNetworkV2Client(
+ endpoint=fakes.AUTH_URL,
+ token=fakes.AUTH_TOKEN,
+ )