Skip to content

[Failure Store] Test API keys and skip_unavailable with RCS1 #125782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
2bc0e99
Prevent usage of :: selectors for remote cluster requests
slobodanadamovic Mar 19, 2025
fc2271c
fail only if ::failures selector is used
slobodanadamovic Mar 19, 2025
ba976a9
cleanup and extend existing rest IT
slobodanadamovic Mar 19, 2025
f6c96e2
Merge branch 'main' into sa-prevent-using-selectors-for-ccs-ccr
slobodanadamovic Mar 19, 2025
5bc46b5
test ccs with rcs1
slobodanadamovic Mar 20, 2025
e92ffde
nit
slobodanadamovic Mar 20, 2025
29de669
remove remote_indices - not relevant for RCS1 test case
slobodanadamovic Mar 20, 2025
eaf9a01
test CCS with RCS2
slobodanadamovic Mar 20, 2025
41da2e6
Merge branch 'main' of github.com:elastic/elasticsearch into sa-preve…
slobodanadamovic Mar 20, 2025
4e366ed
cleanup tests, handle edge cases with ccs_minimize_roundtrips
slobodanadamovic Mar 21, 2025
542aa54
Merge branch 'main' of github.com:elastic/elasticsearch into sa-preve…
slobodanadamovic Mar 21, 2025
816d919
more test users
slobodanadamovic Mar 21, 2025
7dc89d4
fix assertion
slobodanadamovic Mar 21, 2025
26e8ae3
test direct access to backing failure index for other users
slobodanadamovic Mar 21, 2025
9c3d0d7
fix assertion
slobodanadamovic Mar 21, 2025
e8a4b96
fix another assertion
slobodanadamovic Mar 21, 2025
6c8eee8
Merge branch 'main' of github.com:elastic/elasticsearch into sa-preve…
slobodanadamovic Mar 25, 2025
6d5293f
bring back selector validation inline
slobodanadamovic Mar 25, 2025
fd1a0e5
refactor to reuse selector validation
slobodanadamovic Mar 25, 2025
c88a35f
Merge branch 'main' of github.com:elastic/elasticsearch into sa-preve…
slobodanadamovic Mar 25, 2025
1bd03a6
more tests
slobodanadamovic Mar 25, 2025
0dd4053
more tests 2
slobodanadamovic Mar 25, 2025
f085835
more test coverage
slobodanadamovic Mar 25, 2025
446f8b6
Merge branch 'main' of github.com:elastic/elasticsearch into sa-preve…
slobodanadamovic Mar 25, 2025
62664ac
[CI] Auto commit changes from spotless
elasticsearchmachine Mar 25, 2025
0fe3ec5
prevent using ::data selector as well
slobodanadamovic Mar 26, 2025
ae8cc1a
Merge branch 'main' into sa-prevent-using-selectors-for-ccs-ccr
slobodanadamovic Mar 26, 2025
4baa39a
consolidate error messages and exceptions thrown
slobodanadamovic Mar 26, 2025
5811200
fix failing test
slobodanadamovic Mar 26, 2025
bc0a5b5
Merge branch 'main' into sa-prevent-using-selectors-for-ccs-ccr
slobodanadamovic Mar 26, 2025
7d1dd3e
fix failing test ::data is not allowed
slobodanadamovic Mar 27, 2025
5056909
Merge branch 'main' of github.com:elastic/elasticsearch into sa-preve…
slobodanadamovic Mar 27, 2025
321d5c7
Merge branch 'main' into sa-prevent-using-selectors-for-ccs-ccr
slobodanadamovic Mar 27, 2025
148567d
Merge branch 'main' into sa-prevent-using-selectors-for-ccs-ccr
slobodanadamovic Mar 27, 2025
7bf9a8f
[Failure Store] Test API keys and skip_unavailable with RCS1
slobodanadamovic Mar 27, 2025
d7aa1dc
Merge branch 'main' of github.com:elastic/elasticsearch into sa-test-…
slobodanadamovic Mar 28, 2025
e78ff77
Merge branch 'main' into sa-test-ccs-with-api-keys
slobodanadamovic Apr 2, 2025
283582c
Merge branch 'main' into sa-test-ccs-with-api-keys
slobodanadamovic Apr 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ protected void setupTestDataStreamOnFulfillingCluster() throws IOException {
}
}

protected Response performRequestWithRemoteSearchUser(final Request request) throws IOException {
protected static Response performRequestWithRemoteSearchUser(final Request request) throws IOException {
request.setOptions(
RequestOptions.DEFAULT.toBuilder().addHeader("Authorization", headerFromRandomAuthMethod(REMOTE_SEARCH_USER, PASS))
);
return client().performRequest(request);
}

protected Response performRequestWithUser(final String user, final Request request) throws IOException {
protected static Response performRequestWithUser(final String user, final Request request) throws IOException {
request.setOptions(RequestOptions.DEFAULT.toBuilder().addHeader("Authorization", headerFromRandomAuthMethod(user, PASS)));
return client().performRequest(request);
}
Expand Down
Loading