-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add integration test framework #687
Add integration test framework #687
Conversation
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Is this the first time a consumer of opensearch-sdk-java would be bringing in the gradle tasks from OpenSearch core? That feels like undesirable. The alternative would be to (re)implement a simpler version of the functionality of test cluster setup in the SDK. |
Signed-off-by: Ryan Bogan <[email protected]>
We definitely could implement one in SDK. We've taken this path to:
I definitely understand we'd like to keep the SDK as independent as possible, we'd definitely take it as a follow up. |
@ryanbogan whats needed here to get this moving? |
@saratvemulapalli Working on fixing merge conflicts now. I also want to test it out with the new protobuf additions but I'll have everything finalized by EOD |
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
I'm not sure why gradle check is failing for a dependency conflict. We have the same version as OpenSearch and everything is passing on my local. |
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
Signed-off-by: Ryan Bogan <[email protected]>
src/main/java/org/opensearch/sdk/sample/helloworld/HelloWorldExtension.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Ryan Bogan <[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, thanks for the changes Ryan.
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! A few config changes outside the scope of this that I'll save for another PR/issue.
The path for the integTest folder should be under a directory called |
* Add integration test task that uses the OpenSearch gradle plugin Signed-off-by: Ryan Bogan <[email protected]> * Added closeTestExtension task to kill testExtension process Signed-off-by: Ryan Bogan <[email protected]> * Fix spotless Signed-off-by: Ryan Bogan <[email protected]> * Implement resolution strategy to fix dependency conflict Signed-off-by: Ryan Bogan <[email protected]> * Minor adjustment Signed-off-by: Ryan Bogan <[email protected]> * Change jackson version Signed-off-by: Ryan Bogan <[email protected]> * Change jackson dataformat version Signed-off-by: Ryan Bogan <[email protected]> * Revert jackson version change Signed-off-by: Ryan Bogan <[email protected]> * Add resolution strategy to fix jackson dependency conflict Signed-off-by: Ryan Bogan <[email protected]> * Address PR Comments Signed-off-by: Ryan Bogan <[email protected]> * Add new implementation to fix error from separate merge Signed-off-by: Ryan Bogan <[email protected]> * Address PR Comments Signed-off-by: Ryan Bogan <[email protected]> * Address PR Comments Signed-off-by: Ryan Bogan <[email protected]> * Revert minor change Signed-off-by: Ryan Bogan <[email protected]> * Address PR Comments Signed-off-by: Ryan Bogan <[email protected]> * Add reading from yaml for testExtensionCreation Signed-off-by: Ryan Bogan <[email protected]> * Spotless Signed-off-by: Ryan Bogan <[email protected]> * Minor change Signed-off-by: Ryan Bogan <[email protected]> * Debug test commit Signed-off-by: Ryan Bogan <[email protected]> * Minor changes Signed-off-by: Ryan Bogan <[email protected]> * Remove extra test class Signed-off-by: Ryan Bogan <[email protected]> * Add index Signed-off-by: Ryan Bogan <[email protected]> * Fix inadvertent change Signed-off-by: Ryan Bogan <[email protected]> * Minor change Signed-off-by: Ryan Bogan <[email protected]> * Add log4j resolution strategy Signed-off-by: Ryan Bogan <[email protected]> * Remove testing println Signed-off-by: Ryan Bogan <[email protected]> --------- Signed-off-by: Ryan Bogan <[email protected]> Co-authored-by: Sarat Vemulapalli <[email protected]> Co-authored-by: Owais Kazi <[email protected]> (cherry picked from commit 04d9eab) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This reverts commit 04d9eab.
This reverts commit 04d9eab. Signed-off-by: owaiskazi19 <[email protected]>
* Add integration test framework (#687) * Add integration test task that uses the OpenSearch gradle plugin Signed-off-by: Ryan Bogan <[email protected]> * Added closeTestExtension task to kill testExtension process Signed-off-by: Ryan Bogan <[email protected]> * Fix spotless Signed-off-by: Ryan Bogan <[email protected]> * Implement resolution strategy to fix dependency conflict Signed-off-by: Ryan Bogan <[email protected]> * Minor adjustment Signed-off-by: Ryan Bogan <[email protected]> * Change jackson version Signed-off-by: Ryan Bogan <[email protected]> * Change jackson dataformat version Signed-off-by: Ryan Bogan <[email protected]> * Revert jackson version change Signed-off-by: Ryan Bogan <[email protected]> * Add resolution strategy to fix jackson dependency conflict Signed-off-by: Ryan Bogan <[email protected]> * Address PR Comments Signed-off-by: Ryan Bogan <[email protected]> * Add new implementation to fix error from separate merge Signed-off-by: Ryan Bogan <[email protected]> * Address PR Comments Signed-off-by: Ryan Bogan <[email protected]> * Address PR Comments Signed-off-by: Ryan Bogan <[email protected]> * Revert minor change Signed-off-by: Ryan Bogan <[email protected]> * Address PR Comments Signed-off-by: Ryan Bogan <[email protected]> * Add reading from yaml for testExtensionCreation Signed-off-by: Ryan Bogan <[email protected]> * Spotless Signed-off-by: Ryan Bogan <[email protected]> * Minor change Signed-off-by: Ryan Bogan <[email protected]> * Debug test commit Signed-off-by: Ryan Bogan <[email protected]> * Minor changes Signed-off-by: Ryan Bogan <[email protected]> * Remove extra test class Signed-off-by: Ryan Bogan <[email protected]> * Add index Signed-off-by: Ryan Bogan <[email protected]> * Fix inadvertent change Signed-off-by: Ryan Bogan <[email protected]> * Minor change Signed-off-by: Ryan Bogan <[email protected]> * Add log4j resolution strategy Signed-off-by: Ryan Bogan <[email protected]> * Remove testing println Signed-off-by: Ryan Bogan <[email protected]> --------- Signed-off-by: Ryan Bogan <[email protected]> Co-authored-by: Sarat Vemulapalli <[email protected]> Co-authored-by: Owais Kazi <[email protected]> (cherry picked from commit 04d9eab) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Change versions and resolve conflicts from original PR Signed-off-by: Ryan Bogan <[email protected]> * Fix dependency conflicts Signed-off-by: Ryan Bogan <[email protected]> * Fix snapshot version Signed-off-by: Ryan Bogan <[email protected]> * Combined commit for backporting 'Fix Publishing' PR's Signed-off-by: Ryan Bogan <[email protected]> --------- Signed-off-by: Ryan Bogan <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Sarat Vemulapalli <[email protected]> Co-authored-by: Owais Kazi <[email protected]> Co-authored-by: Ryan Bogan <[email protected]>
Description
Adds an integration test framework, utilizing the changes made in opensearch-project/OpenSearch#7235. The integration test task starts the helloWorld extension, spins up a test single-node cluster to initialize the extensions, and then kills the cluster and the extension process running in the background. There are currently no tests written for this framework, so the task will fail with an error temporarily.
Note: Must be merged after opensearch-project/OpenSearch#7235
Issues Resolved
#589
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.