summaryrefslogtreecommitdiff
path: root/openstackclient/tests/compute/v2/fakes.py
diff options
context:
space:
mode:
authorHuanxuan Ao <huanxuan.ao@easystack.cn>2016-05-26 20:00:12 +0800
committerHuanxuan Ao <huanxuan.ao@easystack.cn>2016-05-30 16:26:09 +0800
commitc46a5597bec3764a96ea4b7f757f428674b8ae21 (patch)
treeb99797c8d8fa34fb93beffcd452ec52e037edc90 /openstackclient/tests/compute/v2/fakes.py
parent0ff7d6dc693fb4dd8660e35063cceecdbb9cdbc0 (diff)
downloadpython-openstackclient-c46a5597bec3764a96ea4b7f757f428674b8ae21.tar.gz
Add support for setting flavor-access
This patch adds "--project" option in "flavor set" command to support for setting flavor access. Change-Id: I75b473600080d8ab1dd6ad01561c4f989ed3c3bd Partial-Bug: #1575461
Diffstat (limited to 'openstackclient/tests/compute/v2/fakes.py')
-rw-r--r--openstackclient/tests/compute/v2/fakes.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/openstackclient/tests/compute/v2/fakes.py b/openstackclient/tests/compute/v2/fakes.py
index 62a46b1d..505469ad 100644
--- a/openstackclient/tests/compute/v2/fakes.py
+++ b/openstackclient/tests/compute/v2/fakes.py
@@ -132,6 +132,9 @@ class FakeComputev2Client(object):
self.flavors = mock.Mock()
self.flavors.resource_class = fakes.FakeResource(None, {})
+ self.flavor_access = mock.Mock()
+ self.flavor_access.resource_class = fakes.FakeResource(None, {})
+
self.quotas = mock.Mock()
self.quotas.resource_class = fakes.FakeResource(None, {})