removes cert usage from CI module

Signed-off-by: Shivam Dhar <[email protected]>
This commit is contained in:
Shivam Dhar
2022-01-08 15:15:15 +05:30
committed by Shivam Dhar
parent c3a4f32b6c
commit 25ff092c8f
7 changed files with 6 additions and 98 deletions
+1 -4
View File
@@ -28,7 +28,6 @@
import os
import time
from os.path import abspath, dirname, join
from unittest import SkipTest, TestCase
from opensearchpy import OpenSearch
@@ -39,12 +38,10 @@ if "OPENSEARCH_URL" in os.environ:
else:
OPENSEARCH_URL = "https://elastic:changeme@localhost:9200"
CA_CERTS = join(dirname(dirname(dirname(abspath(__file__)))), ".ci/certs/ca.pem")
def get_test_client(nowait=False, **kwargs):
# construct kwargs from the environment
kw = {"timeout": 30, "ca_certs": CA_CERTS}
kw = {"timeout": 30}
if "PYTHON_CONNECTION_CLASS" in os.environ:
from opensearchpy import connection