From 86f76dbffc25ca845033a0dff088eff1dea22e42 Mon Sep 17 00:00:00 2001 From: david-i-berry Date: Mon, 19 Aug 2024 19:11:00 +0200 Subject: [PATCH] Testing permissions and uid/gid. --- .github/workflows/test-docker.yml | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/.github/workflows/test-docker.yml b/.github/workflows/test-docker.yml index bd283eb..e40d023 100644 --- a/.github/workflows/test-docker.yml +++ b/.github/workflows/test-docker.yml @@ -33,27 +33,6 @@ jobs: export GROUP_ID="$(id -g)" echo "${GROUP_ID}:${USER_ID}" docker compose up -d - - name: Run CLI tests - working-directory: docker/tests - run: | - echo "Testing adding subscription" - # 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 - echo "Testing listing subscriptions" - docker exec subscriber bash -c "source /home/wis2downloader/.venv/bin/activate && wis2downloader list-subscriptions" - # publish a test message - echo "Publishing test message" - docker exec publisher pywis-pubsub publish --topic cache/a/wis2/my-centre/services/downloader \ - --config /pywis-pubsub/config/config.yml \ - -i test -u "http://subscriber:5000/openapi" - sleep 1s - echo "Verifying data downloaded" - # cat file contents (check the published file has been downloaded) - cat "./data/$(date +'%Y')/$(date +'%m')/$(date +'%d')/cache/a/wis2/my-centre/services/downloader/openapi.bin" - echo "Testing removing subscription" - # test deleting subscriptions - docker exec subscriber bash -c "source /home/wis2downloader/.venv/bin/activate && wis2downloader remove-subscription --topic cache/a/wis2/+/services/#" - name: Run API tests working-directory: docker/tests run: |