kopia lustrzana https://github.com/gaul/s3proxy
rodzic
07613b9fba
commit
d4e20acb6d
|
@ -74,7 +74,18 @@ jobs:
|
||||||
- name: Maven Test
|
- name: Maven Test
|
||||||
run: |
|
run: |
|
||||||
mvn test
|
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: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install tox tox-gh-actions
|
pip install tox tox-gh-actions
|
||||||
|
|
|
@ -608,6 +608,8 @@ public final class AwsSdkTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAtomicMpuAbort() throws Exception {
|
public void testAtomicMpuAbort() throws Exception {
|
||||||
|
assumeTrue(!blobStoreType.equals("azureblob-sdk"));
|
||||||
|
|
||||||
String key = "testAtomicMpuAbort";
|
String key = "testAtomicMpuAbort";
|
||||||
var metadata = new ObjectMetadata();
|
var metadata = new ObjectMetadata();
|
||||||
metadata.setContentLength(BYTE_SOURCE.size());
|
metadata.setContentLength(BYTE_SOURCE.size());
|
||||||
|
@ -1536,6 +1538,8 @@ public final class AwsSdkTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testBlobStoreLocator() throws Exception {
|
public void testBlobStoreLocator() throws Exception {
|
||||||
|
assumeTrue(blobStoreType.equals("filesystem") ||
|
||||||
|
blobStoreType.equals("transient"));
|
||||||
final BlobStore blobStore1 = context.getBlobStore();
|
final BlobStore blobStore1 = context.getBlobStore();
|
||||||
final BlobStore blobStore2 = ContextBuilder
|
final BlobStore blobStore2 = ContextBuilder
|
||||||
.newBuilder(blobStoreType)
|
.newBuilder(blobStoreType)
|
||||||
|
@ -1564,6 +1568,8 @@ public final class AwsSdkTest {
|
||||||
|
|
||||||
// check second access key
|
// check second access key
|
||||||
client = AmazonS3ClientBuilder.standard()
|
client = AmazonS3ClientBuilder.standard()
|
||||||
|
.withClientConfiguration(
|
||||||
|
new ClientConfiguration().withMaxErrorRetry(0))
|
||||||
.withCredentials(new AWSStaticCredentialsProvider(
|
.withCredentials(new AWSStaticCredentialsProvider(
|
||||||
new BasicAWSCredentials("other-identity",
|
new BasicAWSCredentials("other-identity",
|
||||||
"credential")))
|
"credential")))
|
||||||
|
|
Ładowanie…
Reference in New Issue