@@ -108,12 +108,11 @@ public void testRepositoryCredentialsOverrideSecureCredentials() {
108
108
assertThat (credentials .getAWSSecretKey (), is ("insecure_aws_secret" ));
109
109
110
110
assertWarnings (
111
+ "[access_key] setting was deprecated in Elasticsearch and will be removed in a future release!"
112
+ + " See the breaking changes documentation for the next major version." ,
111
113
"[secret_key] setting was deprecated in Elasticsearch and will be removed in a future release!"
112
114
+ " See the breaking changes documentation for the next major version." ,
113
- "Using s3 access/secret key from repository settings. Instead store these in named clients and"
114
- + " the elasticsearch keystore for secure settings." ,
115
- "[access_key] setting was deprecated in Elasticsearch and will be removed in a future release!"
116
- + " See the breaking changes documentation for the next major version."
115
+ S3Repository .INSECURE_CREDENTIALS_DEPRECATION_WARNING
117
116
);
118
117
}
119
118
@@ -194,12 +193,11 @@ public void testReinitSecureCredentials() {
194
193
195
194
if (hasInsecureSettings ) {
196
195
assertWarnings (
196
+ "[access_key] setting was deprecated in Elasticsearch and will be removed in a future release!"
197
+ + " See the breaking changes documentation for the next major version." ,
197
198
"[secret_key] setting was deprecated in Elasticsearch and will be removed in a future release!"
198
199
+ " See the breaking changes documentation for the next major version." ,
199
- "Using s3 access/secret key from repository settings. Instead store these in named clients and"
200
- + " the elasticsearch keystore for secure settings." ,
201
- "[access_key] setting was deprecated in Elasticsearch and will be removed in a future release!"
202
- + " See the breaking changes documentation for the next major version."
200
+ S3Repository .INSECURE_CREDENTIALS_DEPRECATION_WARNING
203
201
);
204
202
}
205
203
}
@@ -239,10 +237,7 @@ public void sendResponse(RestResponse response) {
239
237
throw error .get ();
240
238
}
241
239
242
- assertWarnings (
243
- "Using s3 access/secret key from repository settings. Instead store these in named clients and"
244
- + " the elasticsearch keystore for secure settings."
245
- );
240
+ assertWarnings (S3Repository .INSECURE_CREDENTIALS_DEPRECATION_WARNING );
246
241
}
247
242
248
243
private void createRepository (final String name , final Settings repositorySettings ) {
0 commit comments