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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user