-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
ciContinuous integration & testingContinuous integration & testingenhNew features or functionalityNew features or functionality
Description
Periodically we will see test failures like this:
ERROR message_ix_models/tests/tools/test_wb.py::test_get_income_group_codelist - requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: http://api.worldbank.org/v2/sdmx/rest/codelist/WB/
ERROR message_ix_models/tests/tools/test_wb.py::test_assign_income_groups[R12-population-None] - requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: http://api.worldbank.org/v2/sdmx/rest/codelist/WB/
ERROR message_ix_models/tests/tools/test_wb.py::test_assign_income_groups[R12-count-None] - requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: http://api.worldbank.org/v2/sdmx/rest/codelist/WB/
ERROR message_ix_models/tests/tools/test_wb.py::test_assign_income_groups[R12-population-0] - requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: http://api.worldbank.org/v2/sdmx/rest/codelist/WB/
FAILED message_ix_models/tests/tools/test_wb.py::test_make_map - requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: http://api.worldbank.org/v2/sdmx/rest/codelist/WB/
These occur because of intermittent network issues or server issues on the remote end; in this case the World Bank's SDMX API endpoint.
In order to allow our tests to pass regardless, provide a backup copy of the HTTP response (including headers) and put this in place using a test fixture.
Metadata
Metadata
Assignees
Labels
ciContinuous integration & testingContinuous integration & testingenhNew features or functionalityNew features or functionality