summaryrefslogtreecommitdiff
path: root/functional/tests/network/v2
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2016-06-17 15:06:40 +0800
committerTang Chen <chen.tang@easystack.cn>2016-07-20 13:37:48 +0800
commit0aa2304f38da0696576827fc4d71f2cf7cc13ad6 (patch)
tree06913a21f43ff5aef1851a9ae955509816c89f1a /functional/tests/network/v2
parent07e97b1a8ab76a253a483a5290bcf93fa41c7cc4 (diff)
downloadpython-openstackclient-0aa2304f38da0696576827fc4d71f2cf7cc13ad6.tar.gz
Transfer "ip floating CRUD" to "floating ip CRUD"
This patch does the following things to transfer "ip floating xxx" to "floating ip xxx": * Add new command "floating ip create/delete/list/show", and doc. * Deprecate "ip floating create/delete/list/show" command. Change-Id: Ib071acaac81988431244e858bddafa7f93403df5 Implements: blueprint rework-ip-commands Closes-bug: 1555990 Co-Authored-By: Dean Troyer <dtroyer@gmail.com>
Diffstat (limited to 'functional/tests/network/v2')
-rw-r--r--functional/tests/network/v2/test_floating_ip.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/functional/tests/network/v2/test_floating_ip.py b/functional/tests/network/v2/test_floating_ip.py
index 3b314b70..7e7c63f4 100644
--- a/functional/tests/network/v2/test_floating_ip.py
+++ b/functional/tests/network/v2/test_floating_ip.py
@@ -35,12 +35,12 @@ class FloatingIpTests(test.TestCase):
)
opts = cls.get_opts(cls.FIELDS)
raw_output = cls.openstack(
- 'ip floating create ' + cls.NETWORK_NAME + opts)
+ 'floating ip create ' + cls.NETWORK_NAME + opts)
cls.ID = raw_output.strip('\n')
@classmethod
def tearDownClass(cls):
- raw_output = cls.openstack('ip floating delete ' + cls.ID)
+ raw_output = cls.openstack('floating ip delete ' + cls.ID)
cls.assertOutput('', raw_output)
raw_output = cls.openstack('subnet delete ' + cls.SUBNET_NAME)
cls.assertOutput('', raw_output)
@@ -49,10 +49,10 @@ class FloatingIpTests(test.TestCase):
def test_floating_ip_list(self):
opts = self.get_opts(self.HEADERS)
- raw_output = self.openstack('ip floating list' + opts)
+ raw_output = self.openstack('floating ip list' + opts)
self.assertIn(self.ID, raw_output)
def test_floating_ip_show(self):
opts = self.get_opts(self.FIELDS)
- raw_output = self.openstack('ip floating show ' + self.ID + opts)
+ raw_output = self.openstack('floating ip show ' + self.ID + opts)
self.assertEqual(self.ID + "\n", raw_output)