瀏覽代碼

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
         )