Remove HEAD-handling hack. (#794)

* remove HEAD -> GET workaround

Signed-off-by: dblock <dblock@amazon.com>

* Removed remaining HEAD-handling code.

Signed-off-by: dblock <dblock@amazon.com>

* Fixed remaining references to admin:admin.

Signed-off-by: dblock <dblock@amazon.com>

---------

Signed-off-by: dblock <dblock@amazon.com>
Co-authored-by: Vincent Castaneda <vincent.castaneda@sage.com>
This commit is contained in:
Daniel (dB.) Doubrovkine
2024-08-15 10:15:13 -04:00
committed by GitHub
parent 19a911387c
commit 55f9940d51
11 changed files with 27 additions and 38 deletions
+2 -1
View File
@@ -10,6 +10,7 @@
# GitHub history for details.
import asyncio
import os
import uuid
from typing import Any
@@ -42,7 +43,7 @@ async def test_async(client_count: int = 1, item_count: int = 1) -> None:
"""
host = "localhost"
port = 9200
auth = ("admin", "admin")
auth = ("admin", os.getenv("OPENSEARCH_PASSWORD", "admin"))
index_name = "test-index-async"
clients = []
+2 -1
View File
@@ -11,6 +11,7 @@
import logging
import os
import sys
import time
from typing import Any
@@ -34,7 +35,7 @@ def test(thread_count: int = 1, request_count: int = 1, client_count: int = 1) -
"""test to index with thread_count threads, item_count records and run client_count clients"""
host = "localhost"
port = 9200
auth = ("admin", "admin")
auth = ("admin", os.getenv("OPENSEARCH_PASSWORD", "admin"))
root = logging.getLogger()
# root.setLevel(logging.DEBUG)
+2 -1
View File
@@ -11,6 +11,7 @@
import json
import logging
import os
import sys
import time
import uuid
@@ -52,7 +53,7 @@ def test(thread_count: int = 1, item_count: int = 1, client_count: int = 1) -> N
"""test to index with thread_count threads, item_count records and run client_count clients"""
host = "localhost"
port = 9200
auth = ("admin", "admin")
auth = ("admin", os.getenv("OPENSEARCH_PASSWORD", "admin"))
index_name = "test-index-sync"
root = logging.getLogger()