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
+3 -4
View File
@@ -30,7 +30,7 @@ import time
import pytest
import opensearchpy
from opensearchpy.helpers.test import CA_CERTS, OPENSEARCH_URL
from opensearchpy.helpers.test import OPENSEARCH_URL
from ..utils import wipe_cluster
@@ -45,11 +45,10 @@ OPENSEARCH_REST_API_TESTS = []
def sync_client_factory():
client = None
try:
# Configure the client with certificates and optionally
# an HTTP conn class depending on 'PYTHON_CONNECTION_CLASS' envvar
# Configure the client optionally with an HTTP conn class
# depending on 'PYTHON_CONNECTION_CLASS' envvar
kw = {
"timeout": 3,
"ca_certs": CA_CERTS,
"headers": {"Authorization": "Basic ZWxhc3RpYzpjaGFuZ2VtZQ=="},
}
if "PYTHON_CONNECTION_CLASS" in os.environ: