Skip to content

Commit da6d388

Browse files
committed
Maybe getting the real password fix integration tests
Signed-off-by: Nikita Furin <[email protected]>
1 parent 942a8b6 commit da6d388

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test_opensearchpy/run_tests.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,12 @@ def fetch_opensearch_repo() -> None:
6868

6969
# find out the sha of the running client
7070
try:
71+
password = environ.get("OPENSEARCH_INITIAL_ADMIN_PASSWORD")
72+
if password is None:
73+
password = environ.get("OPENSEARCH_PASSWORD", "admin")
7174
client = get_client(
7275
verify_certs=False,
73-
http_auth=("admin", environ.get("OPENSEARCH_PASSWORD", "admin")),
76+
http_auth=("admin", password),
7477
)
7578
sha = client.info()["version"]["build_hash"]
7679
except (SkipTest, KeyError):

0 commit comments

Comments
 (0)