Przeglądaj źródła

Skip a number of tests unil moto catches up

Enis Afgan 9 lat temu
rodzic
commit
97fbee3e88

+ 4 - 0
test/test_block_store_service.py

@@ -1,3 +1,4 @@
+from unittest import skip
 import uuid
 
 import six
@@ -5,6 +6,7 @@ import six
 from cloudbridge.cloud.interfaces import SnapshotState
 from cloudbridge.cloud.interfaces import VolumeState
 from cloudbridge.cloud.interfaces.resources import AttachmentInfo
+
 from test.helpers import ProviderTestBase
 import test.helpers as helpers
 
@@ -91,6 +93,7 @@ class CloudBlockStoreServiceTestCase(ProviderTestBase):
             "Volume %s should have been deleted but still exists." %
             name)
 
+    @skip("Until Moto supports 'state' for DescribeSubnets filter")
     def test_attach_detach_volume(self):
         """
         Create a new volume, and attempt to attach it to an instance
@@ -117,6 +120,7 @@ class CloudBlockStoreServiceTestCase(ProviderTestBase):
                     [VolumeState.AVAILABLE],
                     terminal_states=[VolumeState.ERROR, VolumeState.DELETED])
 
+    @skip("Until Moto supports 'state' for DescribeSubnets filter")
     def test_volume_properties(self):
         """
         Test volume properties

+ 9 - 4
test/test_compute_service.py

@@ -1,12 +1,15 @@
-import uuid
-
 import ipaddress
+
 import six
-from cloudbridge.cloud.interfaces \
-    import InvalidConfigurationException
+
+from unittest import skip
+import uuid
+
+from cloudbridge.cloud.interfaces import InvalidConfigurationException
 from cloudbridge.cloud.interfaces import InstanceState
 from cloudbridge.cloud.interfaces.resources import InstanceType
 from cloudbridge.cloud.interfaces.exceptions import WaitStateException
+
 from test.helpers import ProviderTestBase
 import test.helpers as helpers
 
@@ -17,6 +20,7 @@ class CloudComputeServiceTestCase(ProviderTestBase):
         super(CloudComputeServiceTestCase, self).__init__(
             methodName=methodName, provider=provider)
 
+    @skip("Until Moto supports 'state' for DescribeSubnets filter")
     def test_crud_instance(self):
         name = "CBInstCrud-{0}-{1}".format(
             self.provider.name,
@@ -88,6 +92,7 @@ class CloudComputeServiceTestCase(ProviderTestBase):
             return False
         return True
 
+    @skip("Until Moto supports 'state' for DescribeSubnets filter")
     def test_instance_properties(self):
         name = "CBInstProps-{0}-{1}".format(
             self.provider.name,

+ 3 - 0
test/test_image_service.py

@@ -1,8 +1,10 @@
+from unittest import skip
 import uuid
 
 import six
 
 from cloudbridge.cloud.interfaces import MachineImageState
+
 from test.helpers import ProviderTestBase
 import test.helpers as helpers
 
@@ -13,6 +15,7 @@ class CloudImageServiceTestCase(ProviderTestBase):
         super(CloudImageServiceTestCase, self).__init__(
             methodName=methodName, provider=provider)
 
+    @skip("Until Moto supports 'state' for DescribeSubnets filter")
     def test_create_and_list_image(self):
         """
         Create a new image and check whether that image can be listed.