-
Notifications
You must be signed in to change notification settings - Fork 281
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
[Backport 2.x] Integration tests framework #3388
[Backport 2.x] Integration tests framework #3388
Conversation
Test framework that allows for declaring within the test class all related users, roles, and other security primatives. Empahsis on hamcrest assertMatchers for straight forward to read, author, and troubleshoot test cases. Signed-off-by: Peter Nied <[email protected]>
Round 1, tests with failures:
Resolved, submitting another run |
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Codecov Report
@@ Coverage Diff @@
## 2.x #3388 +/- ##
============================================
+ Coverage 64.11% 64.28% +0.16%
- Complexity 3367 3458 +91
============================================
Files 256 256
Lines 19515 19515
Branches 3297 3297
============================================
+ Hits 12512 12545 +33
+ Misses 5360 5355 -5
+ Partials 1643 1615 -28
|
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Note; Moving this to draft while I'm making sure these tests are stable, I've added a bunch of debug only changes that should be reverted before merging, I'll pull this out of draft when its mergeable - but feel free to review it as it stands |
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Ok here is the actual numbers that are telling:
linux failures ^
windows failures ^ |
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: Peter Nied <[email protected]>
OK - I'm pretty sure this is ready to merge, or near as ready as I'm going to try to push it, I've made a number of annotations to ignore flaky tests, we should revisit these and I'll add several tracking issues, along with disabling windows due to the network trouble. Proof that this test collection is stable - 10x runs on JDK 11 / 17 |
Signed-off-by: Peter Nied <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@RyanL1997 @DarshitChanpura could I get another review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I left one question out of curiosity.
Nit: There are some new files being introduced with floraGunn license headers (there is one more license header as well in a couple of files). We should clean this up at some point. Not necessarily in this PR, as these need to be fixed in main as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @peternied, thanks for taking this on and in generally this is looking good to me. I just left a minor comment for the httpcomponents
dependencies.
@DarshitChanpura & @RyanL1997 see [1] for the fast follow up items. |
Test framework that allows for declaring within the test class all related users, roles, and other security primitives. Emphasis on hamcrest Matchers for straight forward to read, author, and troubleshoot test cases. Signed-off-by: Peter Nied <[email protected]> Signed-off-by: Peter Nied <[email protected]> Signed-off-by: Peter Nied <[email protected]>
- Remove an unused JVM setting for integration tests - Fixed an issue where you couldn't run non-resource tests unless you had CI_ENVIRONMENT set to normal on your machine (Already fixed in main) - Fixed an issue where code coverage was always run after tests completed (Already fixed in main) - Related #3388 Signed-off-by: Peter Nied <[email protected]>
- Remove an unused JVM setting for integration tests - Fixed an issue where you couldn't run non-resource tests unless you had CI_ENVIRONMENT set to normal on your machine (Already fixed in main) - Fixed an issue where code coverage was always run after tests completed (Already fixed in main) - Related opensearch-project#3388 Signed-off-by: Peter Nied <[email protected]>
Description
Test framework that allows for declaring within the test class all
related users, roles, and other security primitives. Emphasis on
hamcrest Matchers for straight forward to read, author, and
troubleshoot test cases.
Special Note
This is a giant pull request - I would highly recommend using the github.dev [view] for reviewing and providing feedback. I'll also provide comments for the initial reviewers where I call out any deviations I've taken from what is in main
Issues Resolved
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.