Skip to content

Commit 176c78c

Browse files
authored
Updated CI tests to make them work locally (opensearch-project#275)
Signed-off-by: saimedhi <saimedhi@amazon.com> Signed-off-by: saimedhi <saimedhi@amazon.com>
1 parent 7d83a69 commit 176c78c

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
2828
- Updated CA certificate handling to check OpenSSL environment variables before defaulting to certifi ([#196](https://github.com/opensearch-project/opensearch-py/pull/196))
2929
- Updates `master` to `cluster_manager` to be inclusive ([#242](https://github.com/opensearch-project/opensearch-py/pull/242))
3030
- Support a custom signing service name for AWS SigV4 ([#268](https://github.com/opensearch-project/opensearch-py/pull/268))
31+
- Updated CI tests to make them work locally ([#275](https://github.com/opensearch-project/opensearch-py/pull/275))
3132
### Deprecated
3233

3334
### Removed

opensearchpy/helpers/test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
if "OPENSEARCH_URL" in os.environ:
3838
OPENSEARCH_URL = os.environ["OPENSEARCH_URL"]
3939
else:
40-
OPENSEARCH_URL = "https://elastic:changeme@localhost:9200"
40+
OPENSEARCH_URL = "https://admin:admin@localhost:9200"
4141

4242

4343
def get_test_client(nowait=False, **kwargs):
@@ -108,5 +108,6 @@ def opensearch_version(client):
108108
else:
109109
client = OpenSearch(
110110
OPENSEARCH_URL,
111+
verify_certs=False,
111112
)
112113
OPENSEARCH_VERSION = opensearch_version(client)

test_opensearchpy/run_tests.py

+7-9
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,13 @@ def run_all(argv=None):
113113
if sys.version_info < (3, 6):
114114
ignores.append("test_opensearchpy/test_async/")
115115

116-
# GitHub Actions, run non-server tests
117-
if "GITHUB_ACTION" in environ:
118-
ignores.extend(
119-
[
120-
"test_opensearchpy/test_server/",
121-
"test_opensearchpy/test_server_secured/",
122-
"test_opensearchpy/test_async/test_server/",
123-
]
124-
)
116+
ignores.extend(
117+
[
118+
"test_opensearchpy/test_server/",
119+
"test_opensearchpy/test_server_secured/",
120+
"test_opensearchpy/test_async/test_server/",
121+
]
122+
)
125123

126124
# Jenkins/Github actions, only run server tests
127125
if environ.get("TEST_TYPE") == "server":

0 commit comments

Comments
 (0)