Skip to content

Randomize connection mode for AbstractMultiClustersTestCase#86865

Merged
cbuescher merged 1 commit intoelastic:masterfrom
cbuescher:randomize-ccs-mode
May 24, 2022
Merged

Randomize connection mode for AbstractMultiClustersTestCase#86865
cbuescher merged 1 commit intoelastic:masterfrom
cbuescher:randomize-ccs-mode

Conversation

@cbuescher
Copy link
Copy Markdown
Member

Currently tests extending AbstractMultiClustersTestCase, i.e. mostly the CCS
tests, use the default connection mode configuration of the abstract base tests,
which is the default "sniff" mode. In order to increase coverage for "proxy"
mode connections this change starts to randomize the connection type in the
setup. Subclasses of this test are free to use or overwrite this behaviour.

Relates to #84481

@cbuescher cbuescher added >test Issues or PRs that are addressing/adding tests :Search/Search Search-related issues that do not fall into other categories v8.3.0 labels May 17, 2022
@elasticmachine elasticmachine added the Team:Search Meta label for search team label May 17, 2022
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search (Team:Search)

@cbuescher
Copy link
Copy Markdown
Member Author

I'm mostly opening this issue for discussion and to see if randomization of the connection mode breaks any of the existing tests.

Currently tests extending AbstractMultiClustersTestCase, i.e. mostly the CCS
tests, use the default connection mode configuration of the abstract base tests,
which is the default "sniff" mode. In order to increase coverage for "proxy"
mode connections this change starts to randomize the connection type in the
setup. Subclasses of this test are free to use or overwrite this behaviour.

Relates to elastic#84481
@cbuescher cbuescher force-pushed the randomize-ccs-mode branch from 818db4c to 9872871 Compare May 17, 2022 15:35
@javanna
Copy link
Copy Markdown
Contributor

javanna commented May 23, 2022

heya @dnhatn does this make sense to you? Would you have time to review this PR?

@javanna javanna requested a review from dnhatn May 23, 2022 14:06
Copy link
Copy Markdown
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@cbuescher
Copy link
Copy Markdown
Member Author

@dnhatn thanks for the review

@cbuescher cbuescher merged commit 9048c2d into elastic:master May 24, 2022
@cbuescher cbuescher mentioned this pull request May 24, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team >test Issues or PRs that are addressing/adding tests v8.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants