WIP: Skip broken functional tests...

...so we don't have to fix them all in one review.

Do not merge this until https://review.openstack.org/#/c/414649 is merged
and funtional tests pass.

Change-Id: I4f187111d3e4d8c4a613c20a946d6b5d3562e879
This commit is contained in:
Dean Troyer 2016-12-23 16:09:45 -06:00
parent b829b210b0
commit 188e32f9e6
9 changed files with 28 additions and 0 deletions

View File

@ -10,6 +10,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import testtools
from openstackclient.tests.functional import base from openstackclient.tests.functional import base
@ -25,6 +27,7 @@ class QuotaTests(base.TestCase):
cls.PROJECT_NAME =\ cls.PROJECT_NAME =\
cls.get_openstack_configuration_value('auth.project_name') cls.get_openstack_configuration_value('auth.project_name')
@testtools.skip('broken SDK testing')
def test_quota_set(self): def test_quota_set(self):
self.openstack('quota set --instances 11 --volumes 11 --networks 11 ' + self.openstack('quota set --instances 11 --volumes 11 --networks 11 ' +
self.PROJECT_NAME) self.PROJECT_NAME)
@ -32,16 +35,19 @@ class QuotaTests(base.TestCase):
raw_output = self.openstack('quota show ' + self.PROJECT_NAME + opts) raw_output = self.openstack('quota show ' + self.PROJECT_NAME + opts)
self.assertEqual("11\n11\n11\n", raw_output) self.assertEqual("11\n11\n11\n", raw_output)
@testtools.skip('broken SDK testing')
def test_quota_show(self): def test_quota_show(self):
raw_output = self.openstack('quota show ' + self.PROJECT_NAME) raw_output = self.openstack('quota show ' + self.PROJECT_NAME)
for expected_field in self.EXPECTED_FIELDS: for expected_field in self.EXPECTED_FIELDS:
self.assertIn(expected_field, raw_output) self.assertIn(expected_field, raw_output)
@testtools.skip('broken SDK testing')
def test_quota_show_default_project(self): def test_quota_show_default_project(self):
raw_output = self.openstack('quota show') raw_output = self.openstack('quota show')
for expected_field in self.EXPECTED_FIELDS: for expected_field in self.EXPECTED_FIELDS:
self.assertIn(expected_field, raw_output) self.assertIn(expected_field, raw_output)
@testtools.skip('broken SDK testing')
def test_quota_show_with_default_option(self): def test_quota_show_with_default_option(self):
raw_output = self.openstack('quota show --default') raw_output = self.openstack('quota show --default')
for expected_field in self.EXPECTED_FIELDS: for expected_field in self.EXPECTED_FIELDS:

View File

@ -10,6 +10,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import testtools
import uuid import uuid
from openstackclient.tests.functional import base from openstackclient.tests.functional import base
@ -46,6 +47,7 @@ class IPAvailabilityTests(base.TestCase):
raw_output = self.openstack('ip availability list' + opts) raw_output = self.openstack('ip availability list' + opts)
self.assertIn(self.NETWORK_NAME, raw_output) self.assertIn(self.NETWORK_NAME, raw_output)
@testtools.skip('broken SDK testing')
def test_ip_availability_show(self): def test_ip_availability_show(self):
opts = self.get_opts(self.FIELDS) opts = self.get_opts(self.FIELDS)
raw_output = self.openstack( raw_output = self.openstack(

View File

@ -10,6 +10,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import testtools
from openstackclient.tests.functional import base from openstackclient.tests.functional import base
@ -26,11 +28,13 @@ class NetworkAgentTests(base.TestCase):
# get the list of network agent IDs. # get the list of network agent IDs.
cls.IDs = raw_output.split('\n') cls.IDs = raw_output.split('\n')
@testtools.skip('broken SDK testing')
def test_network_agent_show(self): def test_network_agent_show(self):
opts = self.get_opts(self.FIELDS) opts = self.get_opts(self.FIELDS)
raw_output = self.openstack('network agent show ' + self.IDs[0] + opts) raw_output = self.openstack('network agent show ' + self.IDs[0] + opts)
self.assertEqual(self.IDs[0] + "\n", raw_output) self.assertEqual(self.IDs[0] + "\n", raw_output)
@testtools.skip('broken SDK testing')
def test_network_agent_set(self): def test_network_agent_set(self):
opts = self.get_opts(['admin_state_up']) opts = self.get_opts(['admin_state_up'])
self.openstack('network agent set --disable ' + self.IDs[0]) self.openstack('network agent set --disable ' + self.IDs[0])

View File

@ -13,6 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import testtools
import uuid import uuid
from openstackclient.tests.functional import base from openstackclient.tests.functional import base
@ -25,6 +26,7 @@ class QosPolicyTests(base.TestCase):
FIELDS = ['name'] FIELDS = ['name']
@classmethod @classmethod
@testtools.skip('broken SDK testing')
def setUpClass(cls): def setUpClass(cls):
opts = cls.get_opts(cls.FIELDS) opts = cls.get_opts(cls.FIELDS)
raw_output = cls.openstack('network qos policy create ' + cls.NAME + raw_output = cls.openstack('network qos policy create ' + cls.NAME +

View File

@ -13,6 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import testtools
from openstackclient.tests.functional import base from openstackclient.tests.functional import base
@ -23,6 +25,7 @@ class NetworkQosRuleTypeTests(base.TestCase):
'bandwidth_limit', 'bandwidth_limit',
'minimum_bandwidth'] 'minimum_bandwidth']
@testtools.skip('broken SDK testing')
def test_qos_rule_type_list(self): def test_qos_rule_type_list(self):
raw_output = self.openstack('network qos rule type list') raw_output = self.openstack('network qos rule type list')
for rule_type in self.AVAILABLE_RULE_TYPES: for rule_type in self.AVAILABLE_RULE_TYPES:

View File

@ -13,6 +13,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import testtools
from openstackclient.tests.functional import base from openstackclient.tests.functional import base
@ -21,6 +23,7 @@ class TestNetworkServiceProvider(base.TestCase):
SERVICE_TYPE = ['L3_ROUTER_NAT'] SERVICE_TYPE = ['L3_ROUTER_NAT']
@testtools.skip('broken SDK testing')
def test_network_service_provider_list(self): def test_network_service_provider_list(self):
raw_output = self.openstack('network service provider list') raw_output = self.openstack('network service provider list')
self.assertIn(self.SERVICE_TYPE, raw_output) self.assertIn(self.SERVICE_TYPE, raw_output)

View File

@ -10,6 +10,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import testtools
import uuid import uuid
from openstackclient.tests.functional import base from openstackclient.tests.functional import base
@ -23,6 +24,7 @@ class PortTests(base.TestCase):
FIELDS = ['name'] FIELDS = ['name']
@classmethod @classmethod
@testtools.skip('broken SDK testing')
def setUpClass(cls): def setUpClass(cls):
# Create a network for the subnet. # Create a network for the subnet.
cls.openstack('network create ' + cls.NETWORK_NAME) cls.openstack('network create ' + cls.NETWORK_NAME)

View File

@ -10,6 +10,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import testtools
import uuid import uuid
from openstackclient.tests.functional import base from openstackclient.tests.functional import base
@ -23,6 +24,7 @@ class SecurityGroupTests(base.TestCase):
FIELDS = ['name'] FIELDS = ['name']
@classmethod @classmethod
@testtools.skip('broken SDK testing')
def setUpClass(cls): def setUpClass(cls):
opts = cls.get_opts(cls.FIELDS) opts = cls.get_opts(cls.FIELDS)
raw_output = cls.openstack('security group create ' + cls.NAME + opts) raw_output = cls.openstack('security group create ' + cls.NAME + opts)

View File

@ -10,6 +10,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import testtools
import uuid import uuid
from openstackclient.tests.functional import base from openstackclient.tests.functional import base
@ -24,6 +25,7 @@ class SecurityGroupRuleTests(base.TestCase):
ID_HEADER = ['ID'] ID_HEADER = ['ID']
@classmethod @classmethod
@testtools.skip('broken SDK testing')
def setUpClass(cls): def setUpClass(cls):
# Create the security group to hold the rule. # Create the security group to hold the rule.
opts = cls.get_opts(cls.NAME_FIELD) opts = cls.get_opts(cls.NAME_FIELD)
@ -52,6 +54,7 @@ class SecurityGroupRuleTests(base.TestCase):
cls.SECURITY_GROUP_NAME) cls.SECURITY_GROUP_NAME)
cls.assertOutput('', raw_output) cls.assertOutput('', raw_output)
@testtools.skip('broken SDK testing')
def test_security_group_rule_list(self): def test_security_group_rule_list(self):
opts = self.get_opts(self.ID_HEADER) opts = self.get_opts(self.ID_HEADER)
raw_output = self.openstack('security group rule list ' + raw_output = self.openstack('security group rule list ' +
@ -59,6 +62,7 @@ class SecurityGroupRuleTests(base.TestCase):
opts) opts)
self.assertIn(self.SECURITY_GROUP_RULE_ID, raw_output) self.assertIn(self.SECURITY_GROUP_RULE_ID, raw_output)
@testtools.skip('broken SDK testing')
def test_security_group_rule_show(self): def test_security_group_rule_show(self):
opts = self.get_opts(self.ID_FIELD) opts = self.get_opts(self.ID_FIELD)
raw_output = self.openstack('security group rule show ' + raw_output = self.openstack('security group rule show ' +