Skip to content

Commit

Permalink
Set static password for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nhairs committed Feb 4, 2024
1 parent 64c5004 commit 0a78bed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
sudo apt-get update && sudo apt-get install elasticsearch
sudo systemctl restart elasticsearch
sudo systemctl --no-pager status elasticsearch
# Note: We set a static password as ES8 requires that a password is set.
# We can't use the randomly generateds one in our CI script so we set one here
# For real world applications you should NOT commit passwords to git like this.
echo "y\nWFXvAZ6xvcAhx\nWFXvAZ6xvcAhx" | sudo /usr/share/elasticsearch/bin/elasticsearch-reset-password --interactive -u elastic
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
Expand Down
3 changes: 1 addition & 2 deletions ci.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ save_forensic = True
debug = True

[elasticsearch]
hosts = http://localhost:9200
ssl = False
hosts = https://elastic:WFXvAZ6xvcAhx@localhost:9200
number_of_shards=2
number_of_replicas=2

0 comments on commit 0a78bed

Please sign in to comment.