summaryrefslogtreecommitdiff
path: root/functional/tests/network
diff options
context:
space:
mode:
authorRichard Theis <rtheis@us.ibm.com>2016-06-02 09:53:55 -0500
committerRichard Theis <rtheis@us.ibm.com>2016-06-02 10:07:34 -0500
commit6f2c1734e3d66e261f231711455821321c1fc254 (patch)
tree269f19082215e0ccb37c361427062c9d4e91b646 /functional/tests/network
parentb349156059edb1c7ae8e4bdfbd5eb0826d7aa808 (diff)
downloadpython-openstackclient-6f2c1734e3d66e261f231711455821321c1fc254.tar.gz
Fix --enable options on commands
The --enable option on commands is ignored when the arguments are parsed. This is related to the --enable-beta-commands option. Renaming the option to --os-beta-command fixes the problem. There's no need to handle backwards compatibility for the option name change because there hasn't been an OSC release yet with beta commands. Change-Id: I0327ba8a2058858a83e9a42e231470ed733cc834 Closes-Bug: #1588384
Diffstat (limited to 'functional/tests/network')
-rw-r--r--functional/tests/network/v2/test_network_segment.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/functional/tests/network/v2/test_network_segment.py b/functional/tests/network/v2/test_network_segment.py
index a9980938..b5b5dcd9 100644
--- a/functional/tests/network/v2/test_network_segment.py
+++ b/functional/tests/network/v2/test_network_segment.py
@@ -34,7 +34,7 @@ class NetworkSegmentTests(test.TestCase):
# Get the segment for the network.
opts = cls.get_show_opts(['ID', 'Network'])
- raw_output = cls.openstack('--enable-beta-commands '
+ raw_output = cls.openstack('--os-beta-command '
'network segment list '
' --network ' + cls.NETWORK_NAME +
' ' + opts)
@@ -48,13 +48,13 @@ class NetworkSegmentTests(test.TestCase):
def test_network_segment_list(self):
opts = self.get_list_opts(['ID'])
- raw_output = self.openstack('--enable-beta-commands '
+ raw_output = self.openstack('--os-beta-command '
'network segment list' + opts)
self.assertIn(self.NETWORK_SEGMENT_ID, raw_output)
def test_network_segment_show(self):
opts = self.get_show_opts(['network_id'])
- raw_output = self.openstack('--enable-beta-commands '
+ raw_output = self.openstack('--os-beta-command '
'network segment show ' +
self.NETWORK_SEGMENT_ID + opts)
self.assertEqual(self.NETWORK_ID + "\n", raw_output)