Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
mocks3 mount volume debug
Browse files Browse the repository at this point in the history
  • Loading branch information
J-HowHuang committed Mar 25, 2024
1 parent d31c861 commit 2a8c37b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/server-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
image: nginx
ports:
- 6333:80
options: -v /data:/usr/share/nginx/html
options: -v ${{ github.workspace }}/data:/usr/share/nginx/html
runs-on: ubuntu-latest
env:
TEST_ROOT: ${{ github.workspace }}/server/tests
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Setup BATS testing framework
uses: mig4/[email protected]
- name: Move mock S3 data
run: cp -r ${{ github.workspace }}/server/tests/test_s3_files/. /data
run: cp -r ${{ github.workspace }}/server/tests/test_s3_files/ ${{ github.workspace }}/data
- name: setup-redis
uses: shogo82148/actions-setup-redis@v1
with:
Expand Down
1 change: 1 addition & 0 deletions server/tests/server-integration.bats
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
}

@test "get_file file correctness" {
ls $TEST_ROOT/../../data
curl -sSL -o tmp localhost:26379/s3/test1.txt
cat tmp
[ "$(cat tmp)" = "$(cat $TEST_ROOT/test_s3_files/test1.txt)" ]
Expand Down

0 comments on commit 2a8c37b

Please sign in to comment.