Skip to content

Commit

Permalink
enable communication to gcs fake server
Browse files Browse the repository at this point in the history
  • Loading branch information
Hgherzog committed Oct 18, 2024
1 parent c464e4d commit 7ae8ee9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ jobs:
- name: Set Environment Variables
run: |
echo "TEST_BUCKET=test-bucket" >> $GITHUB_ENV
echo "TEST_PREFIX=tests/"
echo "TEST_PREFIX=tests/" >> $GITHUB_ENV
echo "STORAGE_EMULATOR_HOST=http://localhost:4443" >> $GITHUB_ENV
- name: Run Unit Tests
run: |
Expand All @@ -98,7 +99,13 @@ jobs:
- name: Run Integration Tests
run: |
docker compose up -d --wait --quiet-pull
docker run --rm ${{ needs.build.outputs.ghcr_docker_image }} pytest tests/integration/data_sources/test_aws_landsat.py
docker run --rm \
-e TEST_BUCKET=${{ env.TEST_BUCKET }} \
-e TEST_PREFIX=${{ env.TEST_PREFIX }} \
-e STORAGE_EMULATOR_HOST=${{ env.STORAGE_EMULATOR_HOST }} \
--network host \
${{ needs.build.outputs.ghcr_docker_image }} \
pytest tests/integration/data_sources/test_aws_landsat.py
- name: Clean up
if: always()
Expand Down
3 changes: 0 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@ services:
interval: 2s
timeout: 2s
retries: 120
environment:
- STORAGE_EMULATOR_HOST=http://fake-gcs-server:4443
- TEST_BUCKET=test-bucket # Define the test bucket name
volumes:
fake-gcs-data:

0 comments on commit 7ae8ee9

Please sign in to comment.