File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
qa/system-indices/src/javaRestTest/java/org/elasticsearch/system/indices Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 99
1010package org .elasticsearch .system .indices ;
1111
12- import org .elasticsearch .common .settings .SecureString ;
13- import org .elasticsearch .common .settings .Settings ;
14- import org .elasticsearch .common .util .concurrent .ThreadContext ;
1512import org .elasticsearch .test .cluster .ElasticsearchCluster ;
1613import org .elasticsearch .test .rest .ESRestTestCase ;
1714import org .junit .ClassRule ;
1815
1916public abstract class AbstractSystemIndicesIT extends ESRestTestCase {
20- protected static final String BASIC_AUTH_VALUE = basicAuthHeaderValue (
21- "rest_user" ,
22- new SecureString ("rest-user-password" .toCharArray ())
23- );
2417
2518 @ ClassRule
2619 public static ElasticsearchCluster cluster = ElasticsearchCluster .local ()
2720 .plugin ("system-indices-qa" )
2821 .module ("analysis-common" )
2922 .module ("ingest-common" )
3023 .module ("x-pack-migrate" )
31- .setting ("xpack.security.enabled" , "true" )
32- .setting ("xpack.security.autoconfiguration.enabled" , "false" )
33- .user ("rest_user" , "rest-user-password" )
3424 .build ();
3525
3626 @ Override
3727 protected String getTestRestCluster () {
3828 return cluster .getHttpAddresses ();
3929 }
40-
41- @ Override
42- protected Settings restClientSettings () {
43- return Settings .builder ().put (ThreadContext .PREFIX + ".Authorization" , BASIC_AUTH_VALUE ).build ();
44- }
4530}
You can’t perform that action at this time.
0 commit comments