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:
committed by
GitHub
parent
19a911387c
commit
55f9940d51
@@ -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 = []
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user