Skip to content

Commit

Permalink
Add ES authentication to test environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
smarsching committed Mar 19, 2024
1 parent 0e9e1cf commit 42ff81f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
elasticsearch-version: 8
config: |
http.port: 9200
env:
ELASTIC_PASSWORD: super-secret
- name: Clear existing docker image cache
shell: bash
run: docker image prune -af
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
elasticsearch-version: 8
config: |
http.port: 9200
xpack.security.enabled: true
env:
ELASTIC_PASSWORD: super-secret
- name: Clear existing docker image cache
shell: bash
run: docker image prune -af
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/application_test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ elasticsearch.network.host: localhost
#
elasticsearch.http.port: 9200

# Username and password for authentication with the Elasticsearch server.
elasticsearch.authorization.username=elastic
elasticsearch.authorization.password=super-secret

# Set a custom allowed content length:
#
#http.max_content_length: 100mb
Expand Down

0 comments on commit 42ff81f

Please sign in to comment.