Skip to content

Commit

Permalink
Updated CI tests to make them work locally (opensearch-project#275)
Browse files Browse the repository at this point in the history
Signed-off-by: saimedhi <saimedhi@amazon.com>

Signed-off-by: saimedhi <saimedhi@amazon.com>
  • Loading branch information
saimedhi authored Jan 19, 2023
1 parent 7d83a69 commit 176c78c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion opensearchpy/helpers/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
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):
Expand Down Expand Up @@ -108,5 +108,6 @@ def opensearch_version(client):
else:
client = OpenSearch(
OPENSEARCH_URL,
verify_certs=False,
)
OPENSEARCH_VERSION = opensearch_version(client)
16 changes: 7 additions & 9 deletions test_opensearchpy/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 176c78c

Please sign in to comment.