mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Fix after merge with master
This commit is contained in:
parent
bdebaba8f5
commit
922230bd75
@ -298,9 +298,9 @@ public class S3Repository extends BlobStoreRepository {
|
||||
// If the user defined a path style access setting, we rely on it otherwise we use the default
|
||||
// value set by the SDK
|
||||
Boolean pathStyleAccess = null;
|
||||
if (Repository.PATH_STYLE_ACCESS_SETTING.exists(repositorySettings.settings()) ||
|
||||
Repositories.PATH_STYLE_ACCESS_SETTING.exists(repositorySettings.globalSettings())) {
|
||||
pathStyleAccess = getValue(repositorySettings, Repository.PATH_STYLE_ACCESS_SETTING, Repositories.PATH_STYLE_ACCESS_SETTING);
|
||||
if (Repository.PATH_STYLE_ACCESS_SETTING.exists(metadata.settings()) ||
|
||||
Repositories.PATH_STYLE_ACCESS_SETTING.exists(settings)) {
|
||||
pathStyleAccess = getValue(metadata.settings(), settings, Repository.PATH_STYLE_ACCESS_SETTING, Repositories.PATH_STYLE_ACCESS_SETTING);
|
||||
}
|
||||
|
||||
logger.debug("using bucket [{}], region [{}], endpoint [{}], protocol [{}], chunk_size [{}], server_side_encryption [{}], " +
|
||||
|
@ -198,7 +198,7 @@ public abstract class AbstractS3SnapshotRestoreTest extends AbstractAwsTestCase
|
||||
S3Repository.Repositories.REGION_SETTING.get(settings),
|
||||
S3Repository.Repositories.KEY_SETTING.get(settings),
|
||||
S3Repository.Repositories.SECRET_SETTING.get(settings),
|
||||
null, randomBoolean());
|
||||
null, randomBoolean(), null);
|
||||
|
||||
String bucketName = bucket.get("bucket");
|
||||
logger.info("--> verify encryption for bucket [{}], prefix [{}]", bucketName, basePath);
|
||||
@ -474,7 +474,7 @@ public abstract class AbstractS3SnapshotRestoreTest extends AbstractAwsTestCase
|
||||
// as described in README
|
||||
assertThat("Your settings in elasticsearch.yml are incorrects. Check README file.", bucketName, notNullValue());
|
||||
AmazonS3 client = internalCluster().getInstance(AwsS3Service.class).client(endpoint, protocol, region, accessKey, secretKey,
|
||||
null, randomBoolean());
|
||||
null, randomBoolean(), null);
|
||||
try {
|
||||
ObjectListing prevListing = null;
|
||||
//From http://docs.amazonwebservices.com/AmazonS3/latest/dev/DeletingMultipleObjectsUsingJava.html
|
||||
|
@ -58,8 +58,8 @@ public class S3RepositoryTests extends ESTestCase {
|
||||
@Override
|
||||
protected void doClose() {}
|
||||
@Override
|
||||
public AmazonS3 client(String endpoint, Protocol protocol, String region, String account, String key,
|
||||
Integer maxRetries, boolean useThrottleRetries) {
|
||||
public AmazonS3 client(String endpoint, Protocol protocol, String region, String account, String key, Integer maxRetries,
|
||||
boolean useThrottleRetries, Boolean pathStyleAccess) {
|
||||
return new DummyS3Client();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user