shipyard/src/bin/shipyard_airflow/tests/unit/control
Andrey Volkov 0e6486be8b Return non-200 response if Airflow log request failed
This patch modifies API behavior for
GET /v1.0/actions/{action_id}/steps/{step_id}/logs
such way:
- it returns the same status code as Airflow HTTP request returned
  if Airflow responds with a status code of 400 or greater,
- it returns 500 error status code if an exception happens during
  Airflow HTTP request (200 was before).

Warning: this change breaks API backward compatibility, now a client
could get 4xx or 5xx codes proxied from Airflow.

Change-Id: Ic5dceb3abc34415d21b4d8d4e71b4e5661a7363d
2018-10-04 07:23:21 -07:00
..
af_monitoring Refactor to use unittest.mock instead of mock 2018-07-25 10:41:16 -05:00
middleware Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00
__init__.py Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00
common.py Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00
conftest.py Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00
fake_response.py Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00
test.conf Add Oslo Policy options for policy file location 2018-08-09 13:55:40 -05:00
test_action_helper.py Fix 404 on log retrieval for retries of a step 2018-09-10 21:22:18 -07:00
test_action_validators.py Add redeploy_server processing 2018-08-21 09:42:40 -05:00
test_actions_api.py Add redeploy_server processing 2018-08-21 09:42:40 -05:00
test_actions_control_api.py Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00
test_actions_id_api.py Refactor to use unittest.mock instead of mock 2018-07-25 10:41:16 -05:00
test_actions_steps_id_api.py Refactor to use unittest.mock instead of mock 2018-07-25 10:41:16 -05:00
test_actions_steps_id_logs_api.py Return non-200 response if Airflow log request failed 2018-10-04 07:23:21 -07:00
test_actions_validations_id_api.py Refactor to use unittest.mock instead of mock 2018-07-25 10:41:16 -05:00
test_api.py Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00
test_base_resource.py Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00
test_configdocs_api.py Refactor to use unittest.mock instead of mock 2018-07-25 10:41:16 -05:00
test_configdocs_helper.py Fix check_intermidiate_commit logic 2018-09-07 08:19:06 -07:00
test_redaction.py Mask password in logs for database connection 2018-07-26 12:37:00 -05:00
test_rendered_configdocs_api.py Refactor to use unittest.mock instead of mock 2018-07-25 10:41:16 -05:00
test_shipyard_request_context.py Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00
test_start_shipyard.py Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00
test_status_api.py A new Shipyard site statuses API and CLI 2018-07-31 09:16:36 +00:00
test_status_helper.py A new Shipyard site statuses API and CLI 2018-07-31 09:16:36 +00:00