Remove HEAD-handling hack. (#794)

* remove HEAD -> GET workaround

Signed-off-by: dblock <[email protected]>

* Removed remaining HEAD-handling code.

Signed-off-by: dblock <[email protected]>

* Fixed remaining references to admin:admin.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
Co-authored-by: Vincent Castaneda <[email protected]>
This commit is contained in:
Daniel (dB.) Doubrovkine
2024-08-15 10:15:13 -04:00
committed by GitHub
co-authored by Vincent Castaneda
parent 19a911387c
commit 55f9940d51
11 changed files with 27 additions and 38 deletions
@@ -7,6 +7,7 @@
# Modifications Copyright OpenSearch Contributors. See
# GitHub history for details.
import os
import re
from datetime import datetime
from typing import Any
@@ -36,7 +37,10 @@ pytestmark = pytest.mark.asyncio
@fixture(scope="function") # type: ignore
async def client() -> Any:
client = await get_test_client(verify_certs=False, http_auth=("admin", "admin"))
client = await get_test_client(
verify_certs=False,
http_auth=("admin", os.getenv("OPENSEARCH_PASSWORD", "admin")),
)
await add_connection("default", client)
return client