From a2a9591e5edd087b3de468692cd8a8419c5bfe7f Mon Sep 17 00:00:00 2001 From: david-i-berry Date: Mon, 19 Aug 2024 19:05:24 +0200 Subject: [PATCH] Testing permissions and uid/gid. --- .github/workflows/test-docker.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test-docker.yml b/.github/workflows/test-docker.yml index eda1967..90b5e1b 100644 --- a/.github/workflows/test-docker.yml +++ b/.github/workflows/test-docker.yml @@ -29,11 +29,16 @@ jobs: - name: Run containers working-directory: docker/tests run: | + export USER_ID="$(id -u)" + export GROUP_ID="$(id -g)" echo "${GROUP_ID}:${USER_ID}" docker compose up -d - name: Run CLI tests working-directory: docker/tests run: | + export USER_ID="$(id -u)" + export GROUP_ID="$(id -g)" + echo "${GROUP_ID}:${USER_ID}" # test adding a subscription docker exec subscriber bash -c "source /home/wis2downloader/.venv/bin/activate && wis2downloader add-subscription --topic cache/a/wis2/+/services/#" # test listing subscriptions @@ -50,6 +55,9 @@ jobs: - name: Run API tests working-directory: docker/tests run: | + export USER_ID="$(id -u)" + export GROUP_ID="$(id -g)" + echo "${GROUP_ID}:${USER_ID}" # get metrics curl http://localhost:5000/metrics # test adding a subscription