Răsfoiți Sursa

Skip test causing the entire process to be killed

The integration tests currently patch Coriolis to run tasks in
threads instead of subprocesses.

One of the tests injects a failure, getting the task canceled.
The problem is that Coriolis will attempt to kill process, which
in this case terminates the test runner itself.

We'll re-enable it once we switch to external services.
Lucian Petrut 2 săptămâni în urmă
părinte
comite
329174ab3f
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      coriolis/tests/integration/test_failure_recovery.py

+ 4 - 0
coriolis/tests/integration/test_failure_recovery.py

@@ -13,6 +13,7 @@ exception, triggers a transfer execution, and asserts that:
 Must be run as root; requires the scsi_debug kernel module.
 """
 
+import unittest
 from unittest import mock
 
 from coriolis.tests.integration import base
@@ -24,6 +25,9 @@ class TransferFailureIntegrationTest(base.ReplicaIntegrationTestBase):
 
     def test_error_status_on_provider_failure(self):
         """Execution reaches ERROR when target resource deployment fails."""
+        raise unittest.SkipTest(
+            "Currently skipped, causes the test process to be killed. "
+            "Re-enable the test once we switch to external Coriolis services.")
 
         injected_error = Exception("injected target resource failure")