Skip to content

Commit e2a44e4

Browse files
committed
Generate the mosquitto password each CI run
1 parent 8c88dc1 commit e2a44e4

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,9 @@ jobs:
4545
run: sudo apt-get install -y mosquitto
4646
- name: Generate test certificate for MQTTS
4747
run: ./bin/generate_cert
48+
- name: Set password for device
49+
run: |
50+
mosquitto_passwd -c -b mosquitto_passwords device my_password
51+
chmod 700 mosquitto_passwords
4852
- name: Run end-to-end tests
4953
run: ./bin/test_e2e

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ __pycache__
33
.ruff_cache
44
*.crt
55
*.key
6+
mosquitto_passwords

mosquitto.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ allow_anonymous true
77
listener 8883
88
certfile localhost.crt
99
keyfile localhost.key
10-
password_file mosquitto_passwd
10+
password_file mosquitto_passwords

mosquitto_passwd

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)