From 6936e23d38ca95444dff4f7b92a8cbf16f10e81a Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 4 Dec 2023 22:21:51 -0500 Subject: [PATCH] allow ServiceParsingError for unresponsive provider test (rare case but same result) --- tests/wps_restapi/test_providers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/wps_restapi/test_providers.py b/tests/wps_restapi/test_providers.py index 08fad418b..054bde8cf 100644 --- a/tests/wps_restapi/test_providers.py +++ b/tests/wps_restapi/test_providers.py @@ -204,8 +204,8 @@ def test_register_provider_unresponsive(self): assert unresponsive_id in resp.json["description"] err_msg = "Expected service to have trouble retrieving metadata, error: {} not in {}" # different errors/causes are raised first based on requests version, but same issue - known_causes = ["Connection refused", "Connection aborted", "not accessible"] - known_errors = ["ConnectionError", "ConnectTimeout", "ReadTimeout", "SSLError"] + known_causes = ["Connection refused", "Connection aborted", "not accessible", "Unable to process"] + known_errors = ["ConnectionError", "ConnectTimeout", "ReadTimeout", "SSLError", "ServiceParsingError"] resp_cause = resp.json["cause"] resp_error = resp.json["error"] assert any(err_cause in resp_cause for err_cause in known_causes), err_msg.format(resp_cause, known_causes)