Run Maven tests against azureblob-sdk in CI

References #700.
pull/727/head
Andrew Gaul 2024-11-04 22:54:13 -08:00
rodzic 07613b9fba
commit d4e20acb6d
2 zmienionych plików z 18 dodań i 1 usunięć

Wyświetl plik

@ -74,7 +74,18 @@ jobs:
- name: Maven Test
run: |
mvn test
- name: Install dependencies
- name: Install Azurite
run: npx --yes --loglevel info azurite --version
- name: Start Azurite
shell: bash
run: npx --yes azurite azurite-blob &
- 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
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions

Wyświetl plik

@ -608,6 +608,8 @@ public final class AwsSdkTest {
@Test
public void testAtomicMpuAbort() throws Exception {
assumeTrue(!blobStoreType.equals("azureblob-sdk"));
String key = "testAtomicMpuAbort";
var metadata = new ObjectMetadata();
metadata.setContentLength(BYTE_SOURCE.size());
@ -1536,6 +1538,8 @@ public final class AwsSdkTest {
@Test
public void testBlobStoreLocator() throws Exception {
assumeTrue(blobStoreType.equals("filesystem") ||
blobStoreType.equals("transient"));
final BlobStore blobStore1 = context.getBlobStore();
final BlobStore blobStore2 = ContextBuilder
.newBuilder(blobStoreType)
@ -1564,6 +1568,8 @@ public final class AwsSdkTest {
// check second access key
client = AmazonS3ClientBuilder.standard()
.withClientConfiguration(
new ClientConfiguration().withMaxErrorRetry(0))
.withCredentials(new AWSStaticCredentialsProvider(
new BasicAWSCredentials("other-identity",
"credential")))