diff --git a/.github/workflows/ci_assembly.yml b/.github/workflows/ci_assembly.yml index a634581..75921d3 100755 --- a/.github/workflows/ci_assembly.yml +++ b/.github/workflows/ci_assembly.yml @@ -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 @@ -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" diff --git a/.github/workflows/ci_module.yml b/.github/workflows/ci_module.yml index 947f55b..d061c2a 100755 --- a/.github/workflows/ci_module.yml +++ b/.github/workflows/ci_module.yml @@ -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 @@ -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 diff --git a/openIMIS/openIMIS/settings/opensearch.py b/openIMIS/openIMIS/settings/opensearch.py index c399180..e403a5a 100644 --- a/openIMIS/openIMIS/settings/opensearch.py +++ b/openIMIS/openIMIS/settings/opensearch.py @@ -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")