Skip to content

Commit a2c548c

Browse files
Merge pull request rubyapi#2432 from rubyapi/colby/update-opensearch-auth
Set default opensearch user/password for development/test environments
2 parents 685b4a2 + 9346c89 commit a2c548c

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@ jobs:
4949
- 9200:9200
5050
env:
5151
"discovery.type": "single-node"
52-
"plugins.security.disabled": "true"
5352
options: >-
54-
--health-cmd "curl --silent --fail http://localhost:9200/_cluster/health || exit 1"
53+
--health-cmd "curl -u admin:admin --silent --fail --insecure https://localhost:9200/_cluster/health || exit 1"
5554
--health-start-period 30s
5655
--health-interval 10s
5756
--health-timeout 5s
5857
--health-retries 10
5958
env:
60-
SEARCH_URL: "http://localhost:9200"
6159
DATABASE_URL: "postgresql://rubyapi:rubyapi_password@localhost:5432/rubyapi_test"
6260
QUEUE_DATABASE_URL: "postgresql://rubyapi:rubyapi_password@localhost:5432/rubyapi_test_queue"
6361
RAILS_ENV: test
@@ -100,15 +98,13 @@ jobs:
10098
- 9200:9200
10199
env:
102100
"discovery.type": "single-node"
103-
"plugins.security.disabled": "true"
104101
options: >-
105-
--health-cmd "curl --silent --fail http://localhost:9200/_cluster/health || exit 1"
102+
--health-cmd "curl -u admin:admin --silent --fail --insecure https://localhost:9200/_cluster/health || exit 1"
106103
--health-start-period 30s
107104
--health-interval 10s
108105
--health-timeout 5s
109106
--health-retries 10
110107
env:
111-
SEARCH_URL: "http://localhost:9200"
112108
DATABASE_URL: "postgresql://rubyapi:rubyapi_password@localhost:5432/rubyapi_test"
113109
QUEUE_DATABASE_URL: "postgresql://rubyapi:rubyapi_password@localhost:5432/rubyapi_test_queue"
114110
RAILS_ENV: test

config/opensearch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
development:
2-
url: http://localhost:9200
2+
url: https://admin:admin@localhost:9200
33

44
test:
5-
url: http://localhost:9200
5+
url: https://admin:admin@localhost:9200

0 commit comments

Comments
 (0)