Skip to content

Commit

Permalink
Experiment with Azurite and GitHub CI
Browse files Browse the repository at this point in the history
References #700.
  • Loading branch information
gaul committed Nov 8, 2024
1 parent 5332a9d commit 86fd866
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,20 @@ jobs:
type=ref,event=tag
labels: |
org.opencontainers.image.licenses=Apache-2.0
azurite-job:
runs-on: ubuntu-latest
container: mcr.microsoft.com/azure-storage/azurite
services:
azurite:
image: azurite
ports: 10000:10000
options: azurite-blob --blobHost 0.0.0.0

runTests:
runs-on: ubuntu-latest
needs: [meta]
needs: [meta, azurite-job]

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -74,7 +85,11 @@ jobs:
- name: Maven Test
run: |
mvn test
- name: Install dependencies
- name: Maven Test with Azurite
run: |
# TODO: run other test classes
mvn test -Ds3proxy.test.conf=s3proxy-azurite.conf -Dtest=AwsSdkTest
- name: Install s3-tests dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/org/gaul/s3proxy/AwsSdkTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,8 @@ public void testSpecialCharacters() throws Exception {

@Test
public void testAtomicMpuAbort() throws Exception {
assumeTrue(!blobStoreType.equals("azureblob-sdk"));

String key = "testAtomicMpuAbort";
var metadata = new ObjectMetadata();
metadata.setContentLength(BYTE_SOURCE.size());
Expand Down

0 comments on commit 86fd866

Please sign in to comment.