Skip to content

Commit

Permalink
Maybe getting the real password fix integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Furin <[email protected]>
  • Loading branch information
nokados committed Dec 31, 2024
1 parent 942a8b6 commit da6d388
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test_opensearchpy/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ def fetch_opensearch_repo() -> None:

# find out the sha of the running client
try:
password = environ.get("OPENSEARCH_INITIAL_ADMIN_PASSWORD")
if password is None:
password = environ.get("OPENSEARCH_PASSWORD", "admin")
client = get_client(
verify_certs=False,
http_auth=("admin", environ.get("OPENSEARCH_PASSWORD", "admin")),
http_auth=("admin", password),
)
sha = client.info()["version"]["build_hash"]
except (SkipTest, KeyError):
Expand Down

0 comments on commit da6d388

Please sign in to comment.