use of org.graylog.shaded.elasticsearch7.org.elasticsearch.common.settings.Settings in project elasticsearch by elastic.
the class AwsS3ServiceImplTests method testAWSCredentialsWithElasticsearchAwsAndS3SettingsBackcompat.
public void testAWSCredentialsWithElasticsearchAwsAndS3SettingsBackcompat() {
Settings settings = Settings.builder().put(AwsS3Service.KEY_SETTING.getKey(), "aws_key").put(AwsS3Service.SECRET_SETTING.getKey(), "aws_secret").put(AwsS3Service.CLOUD_S3.KEY_SETTING.getKey(), "s3_key").put(AwsS3Service.CLOUD_S3.SECRET_SETTING.getKey(), "s3_secret").build();
launchAWSCredentialsWithElasticsearchSettingsTest(Settings.EMPTY, settings, "s3_key", "s3_secret");
assertSettingDeprecationsAndWarnings(new Setting<?>[] { AwsS3Service.KEY_SETTING, AwsS3Service.SECRET_SETTING, AwsS3Service.CLOUD_S3.KEY_SETTING, AwsS3Service.CLOUD_S3.SECRET_SETTING });
}
use of org.graylog.shaded.elasticsearch7.org.elasticsearch.common.settings.Settings in project elasticsearch by elastic.
the class AwsS3ServiceImplTests method testGlobalMaxRetries.
public void testGlobalMaxRetries() {
Settings settings = Settings.builder().put(S3Repository.Repositories.MAX_RETRIES_SETTING.getKey(), 10).build();
launchAWSConfigurationTest(settings, Settings.EMPTY, Protocol.HTTPS, null, -1, null, null, null, 10, false, 50000);
}
use of org.graylog.shaded.elasticsearch7.org.elasticsearch.common.settings.Settings in project elasticsearch by elastic.
the class AwsS3ServiceImplTests method testAWSCredentialsWithElasticsearchAwsAndRepositoriesSettingsAndRepositorySettingsBackcompat.
public void testAWSCredentialsWithElasticsearchAwsAndRepositoriesSettingsAndRepositorySettingsBackcompat() {
Settings repositorySettings = generateRepositorySettings("repository_key", "repository_secret", null, null);
Settings settings = Settings.builder().put(AwsS3Service.KEY_SETTING.getKey(), "aws_key").put(AwsS3Service.SECRET_SETTING.getKey(), "aws_secret").put(S3Repository.Repositories.KEY_SETTING.getKey(), "repositories_key").put(S3Repository.Repositories.SECRET_SETTING.getKey(), "repositories_secret").build();
launchAWSCredentialsWithElasticsearchSettingsTest(repositorySettings, settings, "repository_key", "repository_secret");
assertSettingDeprecationsAndWarnings(new Setting<?>[] { S3Repository.Repository.KEY_SETTING, S3Repository.Repository.SECRET_SETTING });
}
use of org.graylog.shaded.elasticsearch7.org.elasticsearch.common.settings.Settings in project elasticsearch by elastic.
the class AwsS3ServiceImplTests method testAWSCredentialsWithElasticsearchAwsAndS3AndRepositoriesSettingsBackcompat.
public void testAWSCredentialsWithElasticsearchAwsAndS3AndRepositoriesSettingsBackcompat() {
Settings settings = Settings.builder().put(AwsS3Service.KEY_SETTING.getKey(), "aws_key").put(AwsS3Service.SECRET_SETTING.getKey(), "aws_secret").put(AwsS3Service.CLOUD_S3.KEY_SETTING.getKey(), "s3_key").put(AwsS3Service.CLOUD_S3.SECRET_SETTING.getKey(), "s3_secret").put(S3Repository.Repositories.KEY_SETTING.getKey(), "repositories_key").put(S3Repository.Repositories.SECRET_SETTING.getKey(), "repositories_secret").build();
launchAWSCredentialsWithElasticsearchSettingsTest(Settings.EMPTY, settings, "repositories_key", "repositories_secret");
assertSettingDeprecationsAndWarnings(new Setting<?>[] { AwsS3Service.KEY_SETTING, AwsS3Service.SECRET_SETTING, AwsS3Service.CLOUD_S3.KEY_SETTING, AwsS3Service.CLOUD_S3.SECRET_SETTING, S3Repository.Repositories.KEY_SETTING, S3Repository.Repositories.SECRET_SETTING });
}
use of org.graylog.shaded.elasticsearch7.org.elasticsearch.common.settings.Settings in project elasticsearch by elastic.
the class AwsS3ServiceImplTests method testAWSCredentialsWithElasticsearchAwsAndS3AndRepositoriesSettingsAndRepositorySettingsBackcompat.
public void testAWSCredentialsWithElasticsearchAwsAndS3AndRepositoriesSettingsAndRepositorySettingsBackcompat() {
Settings repositorySettings = generateRepositorySettings("repository_key", "repository_secret", null, null);
Settings settings = Settings.builder().put(AwsS3Service.KEY_SETTING.getKey(), "aws_key").put(AwsS3Service.SECRET_SETTING.getKey(), "aws_secret").put(AwsS3Service.CLOUD_S3.KEY_SETTING.getKey(), "s3_key").put(AwsS3Service.CLOUD_S3.SECRET_SETTING.getKey(), "s3_secret").put(S3Repository.Repositories.KEY_SETTING.getKey(), "repositories_key").put(S3Repository.Repositories.SECRET_SETTING.getKey(), "repositories_secret").build();
launchAWSCredentialsWithElasticsearchSettingsTest(repositorySettings, settings, "repository_key", "repository_secret");
assertSettingDeprecationsAndWarnings(new Setting<?>[] { S3Repository.Repository.KEY_SETTING, S3Repository.Repository.SECRET_SETTING });
}
Aggregations