-
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
REST API tests refactoring (Part 2) #4252
Conversation
bbcf93f
to
097553f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4252 +/- ##
==========================================
- Coverage 66.12% 66.05% -0.07%
==========================================
Files 302 302
Lines 21758 21758
Branches 3522 3522
==========================================
- Hits 14387 14372 -15
- Misses 5609 5618 +9
- Partials 1762 1768 +6
|
src/test/java/org/opensearch/security/dlic/rest/api/legacy/LegacySslCertsApiTest.java
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/api/SslCertsRestApiIntegrationTest.java
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/api/SslCertsRestApiIntegrationTest.java
Show resolved
Hide resolved
b5de9cb
to
a0a407c
Compare
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.
It would be helpful to me if you worked backwards from the documentation-website to show what is getting removed and replaced. This would help me answer the question is this cohesive across how we consider certs.
What do you think?
src/main/java/org/opensearch/security/dlic/rest/api/SecuritySSLCertsApiAction.java
Outdated
Show resolved
Hide resolved
1d88ef7
to
74dfc4b
Compare
In order to do not introduce breaking changes. Added a new endpoint instead in this PR: #4299 |
74dfc4b
to
b5557a6
Compare
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. Left a clarifying question in a comment.
src/integrationTest/java/org/opensearch/test/framework/cluster/LocalCluster.java
Show resolved
Hide resolved
b5557a6
to
23af002
Compare
Changes: - Moved testSslCertsApiTest into SslCertsRestApiIntegrationTest - Fixed tests framework certificates generation for nodes. Tests with the Legacy prefix removed since new tests use randomization for paths Signed-off-by: Andrey Pleskach <[email protected]>
23af002
to
dda9054
Compare
src/integrationTest/java/org/opensearch/security/api/SslCertsRestApiIntegrationTest.java
Show resolved
Hide resolved
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/security/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/security/backport-2.x
# Create a new branch
git switch --create backport/backport-4252-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 f130915daa969643c3996e0500e2bdbf3499c674
# Push it to GitHub
git push --set-upstream origin backport/backport-4252-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security/backport-2.x Then, create a pull request where the |
Signed-off-by: Andrey Pleskach <[email protected]>
Signed-off-by: Andrey Pleskach <[email protected]> (cherry picked from commit f130915)
Description
Changes:
SslCertsApiTest
intoSslCertsRestApiIntegrationTest
Tests with the Legacy prefix removed since
new tests use randomization for paths
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.