summaryrefslogtreecommitdiff
path: root/openstackclient/tests/compute/v2
diff options
context:
space:
mode:
authorJude Job <judeopenstack@gmail.com>2016-02-02 09:35:38 +0530
committerSteve Martinelli <stevemar@ca.ibm.com>2016-02-14 04:21:00 +0000
commit6109dfcf63a666330e7323d957a37a251dd2b520 (patch)
tree64c9ac421a8d3f4837602f0d4a8b59cf081bf465 /openstackclient/tests/compute/v2
parentc7c672d4b30ce80687f974c3058002eea69d9539 (diff)
downloadpython-openstackclient-6109dfcf63a666330e7323d957a37a251dd2b520.tar.gz
Floating IP: Neutron support for "ip floating delete" command
This patch implements "ip floating delete" command for both compute and network. Also includes unit tests. Change-Id: Ie61f0faad65ec90f9d9956ae463412be8d963d05 partial-Bug: 1519502 Related-to: blueprint neutron-client Co-Authored-By: Tang Chen <chen.tang@easystack.cn>
Diffstat (limited to 'openstackclient/tests/compute/v2')
-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 68a66740..2e4cc1c5 100644
--- a/openstackclient/tests/compute/v2/fakes.py
+++ b/openstackclient/tests/compute/v2/fakes.py
@@ -126,6 +126,9 @@ class FakeComputev2Client(object):
self.security_group_rules = mock.Mock()
self.security_group_rules.resource_class = fakes.FakeResource(None, {})
+ self.floating_ips = mock.Mock()
+ self.floating_ips.resource_class = fakes.FakeResource(None, {})
+
self.auth_token = kwargs['token']
self.management_url = kwargs['endpoint']