|
@@ -107,10 +107,9 @@ public class RepositoryCredentialsTests extends ESSingleNodeTestCase {
|
|
|
assertThat(credentials.getAWSSecretKey(), is("insecure_aws_secret"));
|
|
|
|
|
|
assertCriticalWarnings(
|
|
|
+ "[access_key] setting was deprecated in Elasticsearch and will be removed in a future release.",
|
|
|
"[secret_key] setting was deprecated in Elasticsearch and will be removed in a future release.",
|
|
|
- "Using s3 access/secret key from repository settings. Instead store these in named clients and"
|
|
|
- + " the elasticsearch keystore for secure settings.",
|
|
|
- "[access_key] setting was deprecated in Elasticsearch and will be removed in a future release."
|
|
|
+ S3Repository.INSECURE_CREDENTIALS_DEPRECATION_WARNING
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -194,10 +193,9 @@ public class RepositoryCredentialsTests extends ESSingleNodeTestCase {
|
|
|
|
|
|
if (hasInsecureSettings) {
|
|
|
assertCriticalWarnings(
|
|
|
+ "[access_key] setting was deprecated in Elasticsearch and will be removed in a future release.",
|
|
|
"[secret_key] setting was deprecated in Elasticsearch and will be removed in a future release.",
|
|
|
- "Using s3 access/secret key from repository settings. Instead store these in named clients and"
|
|
|
- + " the elasticsearch keystore for secure settings.",
|
|
|
- "[access_key] setting was deprecated in Elasticsearch and will be removed in a future release."
|
|
|
+ S3Repository.INSECURE_CREDENTIALS_DEPRECATION_WARNING
|
|
|
);
|
|
|
}
|
|
|
}
|
|
@@ -238,10 +236,7 @@ public class RepositoryCredentialsTests extends ESSingleNodeTestCase {
|
|
|
throw error.get();
|
|
|
}
|
|
|
|
|
|
- assertWarnings(
|
|
|
- "Using s3 access/secret key from repository settings. Instead store these in named clients and"
|
|
|
- + " the elasticsearch keystore for secure settings."
|
|
|
- );
|
|
|
+ assertWarnings(S3Repository.INSECURE_CREDENTIALS_DEPRECATION_WARNING);
|
|
|
}
|
|
|
|
|
|
private void createRepository(final String name, final Settings repositorySettings) {
|