Skip to content

Commit 2e385d3

Browse files
[Failure Store] Test API keys and skip_unavailable with RCS1 (#125782) (#126555)
Adjust existing RCS1 tests to randomize using API keys for authorization and `skip_unavailable` setting. Followup on #125252
1 parent fdd92d8 commit 2e385d3

File tree

2 files changed

+415
-211
lines changed

2 files changed

+415
-211
lines changed

x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/AbstractRemoteClusterSecurityFailureStoreRestIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ protected void setupTestDataStreamOnFulfillingCluster() throws IOException {
137137
}
138138
}
139139

140-
protected Response performRequestWithRemoteSearchUser(final Request request) throws IOException {
140+
protected static Response performRequestWithRemoteSearchUser(final Request request) throws IOException {
141141
request.setOptions(
142142
RequestOptions.DEFAULT.toBuilder().addHeader("Authorization", headerFromRandomAuthMethod(REMOTE_SEARCH_USER, PASS))
143143
);
144144
return client().performRequest(request);
145145
}
146146

147-
protected Response performRequestWithUser(final String user, final Request request) throws IOException {
147+
protected static Response performRequestWithUser(final String user, final Request request) throws IOException {
148148
request.setOptions(RequestOptions.DEFAULT.toBuilder().addHeader("Authorization", headerFromRandomAuthMethod(user, PASS)));
149149
return client().performRequest(request);
150150
}

0 commit comments

Comments
 (0)