Skip to content

Commit

Permalink
update opsearch CI config and default
Browse files Browse the repository at this point in the history
  • Loading branch information
delcroip committed Nov 1, 2024
1 parent 9114a57 commit 0d6f682
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci_assembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ jobs:
OPENSEARCH_ADMIN: admin
OPENSEARCH_PASSWORD: B9wc9VrqX7pY
OPEN_SEARCH_HTTP_PORT: 9200
OPENSEARCH_HOST: localhost
OPENSEARCH_HOSTS: "http://localhost:9200"
OPENSEARCH_HOSTS: "localhost:9200"

- name: Django tests MSSQL
working-directory: ./openIMIS
Expand Down Expand Up @@ -206,5 +205,4 @@ jobs:
OPENSEARCH_ADMIN: admin
OPENSEARCH_PASSWORD: B9wc9VrqX7pY
OPEN_SEARCH_HTTP_PORT: 9200
OPENSEARCH_HOST: localhost
OPENSEARCH_HOSTS: "http://localhost:9200"
OPENSEARCH_HOSTS: "localhost:9200"
8 changes: 2 additions & 6 deletions .github/workflows/ci_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,7 @@ jobs:
MODE: DEV
OPENSEARCH_ADMIN: admin
OPENSEARCH_PASSWORD: B9wc9VrqX7pY
OPEN_SEARCH_HTTP_PORT: 9200
OPENSEARCH_HOST: localhost
OPENSEARCH_HOSTS: "http://localhost:9200"
OPENSEARCH_HOSTS: "localhost:9200"
ci_module_psql_test:
name: Run All Tests (PSQL)
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -518,9 +516,7 @@ jobs:
MODE: DEV
OPENSEARCH_ADMIN: admin
OPENSEARCH_PASSWORD: B9wc9VrqX7pY
OPEN_SEARCH_HTTP_PORT: 9200
OPENSEARCH_HOST: localhost
OPENSEARCH_HOSTS: "http://localhost:9200"
OPENSEARCH_HOSTS: "localhost:9200"
- name: Generate Coverage Report
if: always()
working-directory: ./openimis/openIMIS
Expand Down
2 changes: 1 addition & 1 deletion openIMIS/openIMIS/settings/opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@



os_hosts = os.environ.get("OPENSEARCH_HOSTS", "http://opensearch:9200")
os_hosts = os.environ.get("OPENSEARCH_HOSTS", "opensearch:9200")


OPEN_SEARCH_HTTP_PORT = os.environ.get("OPEN_SEARCH_HTTP_PORT", "9200")
Expand Down

0 comments on commit 0d6f682

Please sign in to comment.