shipyard/src/bin/shipyard_airflow/tests/unit
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
..
common Add retries to node lookup logic 2018-08-25 05:05:06 -05:00
control Return non-200 response if Airflow log request failed 2018-10-04 07:23:21 -07:00
dags Refactor imports to support loading dags for tests 2018-07-25 09:19:18 -05:00
db [FIX] Single line sql split/join fix 2018-08-08 08:32:21 -05:00
plugins Merge "Ensure pod logs are fetched in case of exception in any operator" 2018-09-26 21:58:42 +00:00
schemas Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00
yaml_samples 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
test_errors.py Refactor shipyard to UCP target layout 2018-04-24 16:47:13 -05:00