Skip to content
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

Backwards Compatibility Tests Draft #1666

Closed
wants to merge 7 commits into from

Conversation

peternied
Copy link
Member

@peternied peternied commented Mar 7, 2022

Description

Using opensearch-project/anomaly-detection#158 as a template.

Gradlew execution of tests has been implemented, but untested. The
tests themselves have been started but do not have the actual security
plugin setup/validation logic that we would like to use. Scan for TODO
within the files.

NOTE: Final commit 75bc096 should be under consideration, all other changes were needed for the gradle downgrade, in #1661

Approximant guess of

  • 85% Gradle: Implemented, building, following the standards approach used by other repos, but as of yet untested.
  • 40% Test case implementation, missing actual test setup/action/verification within the state of the test scenario, mostly security plugin specific knowledge needed at this point

Issues Resolved

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

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.

BWC tooling is built with gradle 6, which has breaking changes that are
not compatiable with gradle 7.  In order to support BWC tests we need to
align with the OpenSearch's gradle version for the 1.3 release.

See Also:
* Gradle 7 PR in OpenSearch opensearch-project/OpenSearch#1622
* Distribution build bugs encountered by plugins opensearch-project/opensearch-build#1247
* Revert of Gradle 7 PR in OpenSearch  opensearch-project/OpenSearch#1657

Signed-off-by: Peter Nied <petern@amazon.com>
Following example from: opensearch-project/common-utils#121

Signed-off-by: Peter Nied <petern@amazon.com>
Signed-off-by: Peter Nied <petern@amazon.com>
Signed-off-by: Peter Nied <petern@amazon.com>
…ssion syntax

Signed-off-by: Peter Nied <petern@amazon.com>
Signed-off-by: Peter Nied <petern@amazon.com>
Using opensearch-project/anomaly-detection#158
as a template, created those changes as a seperate gradle file.

Gradlew execution of tests has been implemented, but untested.  The
tests themselves have been started but do not have the actual security
plugin setup/validation logic that we would like to use.  Scan for TODO
within the files.

Signed-off-by: Peter Nied <petern@amazon.com>
@peternied
Copy link
Member Author

peternied commented Mar 7, 2022

NOTE: This pull request is not intended to be merged, its but serves as a starting point for taking these tests across the finish line.

@peternied peternied changed the title Backwards Compatibility Tests; 85% Gradle, 40% Test case implementation Backwards Compatibility Tests Draft Mar 7, 2022
@cliu123
Copy link
Member

cliu123 commented Mar 7, 2022

created those changes as a separate gradle file

@peternied Looks like this PR is changing the existing build.gradle file.

String baseName = "securityBwcCluster"
String bwcFilePath = "src/test/resources/bwc"

2.times {i ->
Copy link
Member

Choose a reason for hiding this comment

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

can you add a comment here please explaining why we need two clusters here (just like you did below)

@peternied
Copy link
Member Author

@cliu123 Thanks for finishing this work in #1685

@peternied peternied closed this Mar 21, 2022
@peternied peternied deleted the bwc branch March 21, 2022 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants