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

Remove implicit dependency to admin as password #1855

Merged
merged 10 commits into from
Apr 2, 2024

Conversation

derek-ho
Copy link
Collaborator

@derek-ho derek-ho commented Mar 27, 2024

Description

Right now, the server integration tests rely on a hard coded "admin" password. This can cause issues as people running local setups may not have their opensearch running with admin password "admin". This also creates an implicit dependency that people may not be aware of, and if the admin password is changed in the github workflow it would fail. This removes that dependency by accepting a env variable, setting it, and reading from it when running the integration test.

Category

Enhancement

Why these changes are required?

What is the old behavior before changes and new behavior after changes?

Issues Resolved

Fix: #1793

Testing

Existing tests pass

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.

Copy link

codecov bot commented Mar 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.04%. Comparing base (c2ad67b) to head (a0e5e3b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1855   +/-   ##
=======================================
  Coverage   68.04%   68.04%           
=======================================
  Files          94       94           
  Lines        2422     2422           
  Branches      330      330           
=======================================
  Hits         1648     1648           
  Misses        696      696           
  Partials       78       78           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Derek Ho <[email protected]>
@derek-ho derek-ho marked this pull request as ready for review March 27, 2024 16:42
@derek-ho derek-ho marked this pull request as draft March 27, 2024 16:47
derek-ho added 8 commits April 1, 2024 09:48
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
Signed-off-by: Derek Ho <[email protected]>
@derek-ho derek-ho marked this pull request as ready for review April 1, 2024 18:59
Copy link
Member

@DarshitChanpura DarshitChanpura left a comment

Choose a reason for hiding this comment

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

LGTM!

@DarshitChanpura DarshitChanpura merged commit 3275dcb into opensearch-project:main Apr 2, 2024
15 checks passed
@DarshitChanpura DarshitChanpura added the backport 2.x backport to 2.x branch label Apr 2, 2024
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 2, 2024
Signed-off-by: Derek Ho <[email protected]>
(cherry picked from commit 3275dcb)
derek-ho added a commit that referenced this pull request Apr 2, 2024
Signed-off-by: Derek Ho <[email protected]>
(cherry picked from commit 3275dcb)

Co-authored-by: Derek Ho <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Take in custom password to run integration tests
4 participants