kopia lustrzana https://github.com/gaul/s3proxy
rodzic
07613b9fba
commit
d4e20acb6d
|
@ -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
|
||||
|
|
|
@ -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")))
|
||||
|
|
Ładowanie…
Reference in New Issue