فهرست منبع

integration: Skip source minion pools test for providers with no support

The test fails if the provider does not implement the BaseSourceMinionPoolProvider
class.
Claudiu Belu 2 روز پیش
والد
کامیت
86f4d9b8ed
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      coriolis/tests/integration/test_endpoints.py

+ 8 - 0
coriolis/tests/integration/test_endpoints.py

@@ -100,6 +100,14 @@ class EndpointCapabilitiesTest(base.CoriolisIntegrationTestBase):
         self.assertTrue(len(options) > 0, "Expected at least one destination option")
 
     def test_list_source_minion_pool_options(self):
+        if not isinstance(
+            self._exp_provider, provider_base.BaseSourceMinionPoolProvider
+        ):
+            raise unittest.SkipTest(
+                "Source provider '%s' does not support minion pools"
+                % self._exp_platform
+            )
+
         options = self._client.endpoint_source_minion_pool_options.list(
             self._src_endpoint.id
         )