Skip to content

Commit

Permalink
Testing permissions and uid/gid.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Aug 19, 2024
1 parent 099748c commit a2a9591
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a2a9591

Please sign in to comment.