diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 5e9919c8..aeb83a2f 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -82,4 +82,5 @@ jobs: - uses: gacts/install-hurl@v1 - run: hurl --test test/prod.hurl env: + HURL_host: https://music-library.claudio-ortolina.org HURL_api_token: ${{ secrets.API_TOKEN }} diff --git a/test/prod.hurl b/test/prod.hurl index d3949645..750ffb35 100644 --- a/test/prod.hurl +++ b/test/prod.hurl @@ -1,11 +1,11 @@ # API requires a valid token # GET latest record -GET https://music-library.claudio-ortolina.org/api/collection/latest +GET {{host}}/api/collection/latest Content-Type: application/json HTTP 401 -GET https://music-library.claudio-ortolina.org/api/collection/latest +GET {{host}}/api/collection/latest Content-Type: application/json Authorization: Bearer {{api_token}} HTTP 200