diff --git a/CHANGELOG.md b/CHANGELOG.md index aedd7699..5e3a2fd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/opensearchpy/helpers/test.py b/opensearchpy/helpers/test.py index 06be4e00..9338636a 100644 --- a/opensearchpy/helpers/test.py +++ b/opensearchpy/helpers/test.py @@ -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) diff --git a/test_opensearchpy/run_tests.py b/test_opensearchpy/run_tests.py index e978eea3..f7117ab9 100755 --- a/test_opensearchpy/run_tests.py +++ b/test_opensearchpy/run_tests.py @@ -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":