From 6f2c1734e3d66e261f231711455821321c1fc254 Mon Sep 17 00:00:00 2001 From: Richard Theis Date: Thu, 2 Jun 2016 09:53:55 -0500 Subject: 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 --- functional/tests/network/v2/test_network_segment.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'functional') 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) -- cgit v1.2.1