Updated CI tests to make them work locally (#275)

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

Signed-off-by: saimedhi <[email protected]>
This commit is contained in:
Sai Medhini Reddy Maryada
2023-01-19 15:20:19 -08:00
committed by GitHub
parent 7d83a69494
commit 176c78c58e
3 changed files with 10 additions and 10 deletions
+1
View File
@@ -28,6 +28,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Updated CA certificate handling to check OpenSSL environment variables before defaulting to certifi ([#196](https://github.com/opensearch-project/opensearch-py/pull/196))
- Updates `master` to `cluster_manager` to be inclusive ([#242](https://github.com/opensearch-project/opensearch-py/pull/242))
- Support a custom signing service name for AWS SigV4 ([#268](https://github.com/opensearch-project/opensearch-py/pull/268))
- Updated CI tests to make them work locally ([#275](https://github.com/opensearch-project/opensearch-py/pull/275))
### Deprecated
### Removed
+2 -1
View File
@@ -37,7 +37,7 @@ from opensearchpy.exceptions import ConnectionError
if "OPENSEARCH_URL" in os.environ:
OPENSEARCH_URL = os.environ["OPENSEARCH_URL"]
else:
OPENSEARCH_URL = "https://elastic:changeme@localhost:9200"
OPENSEARCH_URL = "https://admin:admin@localhost:9200"
def get_test_client(nowait=False, **kwargs):
@@ -108,5 +108,6 @@ if "OPENSEARCH_VERSION" in os.environ:
else:
client = OpenSearch(
OPENSEARCH_URL,
verify_certs=False,
)
OPENSEARCH_VERSION = opensearch_version(client)
+7 -9
View File
@@ -113,15 +113,13 @@ def run_all(argv=None):
if sys.version_info < (3, 6):
ignores.append("test_opensearchpy/test_async/")
# GitHub Actions, run non-server tests
if "GITHUB_ACTION" in environ:
ignores.extend(
[
"test_opensearchpy/test_server/",
"test_opensearchpy/test_server_secured/",
"test_opensearchpy/test_async/test_server/",
]
)
ignores.extend(
[
"test_opensearchpy/test_server/",
"test_opensearchpy/test_server_secured/",
"test_opensearchpy/test_async/test_server/",
]
)
# Jenkins/Github actions, only run server tests
if environ.get("TEST_TYPE") == "server":