Pass collection + id to the checker instead of an URL.
This allows the checker to use a configurable URL, in case it needs an URL different from the one used by the client. For example a client outside docker would use http://localhost:5080/deposit/ to access the API, but the checker cannot use this URL (it needs either nginx or swh-deposit as hostname).
Showing
- swh/deposit/api/common.py 3 additions, 6 deletionsswh/deposit/api/common.py
- swh/deposit/loader/checker.py 17 additions, 4 deletionsswh/deposit/loader/checker.py
- swh/deposit/loader/tasks.py 4 additions, 2 deletionsswh/deposit/loader/tasks.py
- swh/deposit/tests/api/test_deposit_schedule.py 4 additions, 2 deletionsswh/deposit/tests/api/test_deposit_schedule.py
- swh/deposit/tests/loader/conftest.py 9 additions, 2 deletionsswh/deposit/tests/loader/conftest.py
- swh/deposit/tests/loader/test_checker.py 3 additions, 9 deletionsswh/deposit/tests/loader/test_checker.py
- swh/deposit/tests/loader/test_tasks.py 3 additions, 3 deletionsswh/deposit/tests/loader/test_tasks.py
Loading
Please register or sign in to comment