Skip to content

Commit 44e5c77

Browse files
committed
ci/test: Use a mysql password
Signed-off-by: Ferenc Géczi <[email protected]>
1 parent aa10ee8 commit 44e5c77

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ jobs:
121121
POSTGRES_PASSWORD: passw0rd
122122
POSTGRES_DB: circle_test
123123
- image: cimg/mariadb:10.11.2
124+
environment:
125+
MYSQL_ROOT_PASSWORD: passw0rd
124126
- image: cimg/redis:5.0.14
125127
- image: rabbitmq:3.9.13
126128
- image: mongo:4.2.3

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ services:
2727
environment:
2828
MYSQL_DATABASE: 'circle_test'
2929
MYSQL_USER: 'root'
30-
MYSQL_PASSWORD: ''
31-
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
32-
MYSQL_ROOT_PASSWORD: ''
30+
MYSQL_ROOT_PASSWORD: passw0rd
3331
MYSQL_ROOT_HOST: '%'
3432
volumes:
3533
- ./tests/config/database/mysql/conf.d/mysql.cnf:/etc/mysql/conf.d/mysql.cnf:Z

tests/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
testenv['mysql_port'] = int(os.environ.get('MYSQL_PORT', '3306'))
3232
testenv['mysql_db'] = os.environ.get('MYSQL_DB', 'circle_test')
3333
testenv['mysql_user'] = os.environ.get('MYSQL_USER', 'root')
34-
testenv['mysql_pw'] = os.environ.get('MYSQL_PW', '')
34+
testenv['mysql_pw'] = os.environ.get('MYSQL_ROOT_PASSWORD', 'passw0rd')
3535

3636
"""
3737
PostgreSQL Environment

0 commit comments

Comments
 (0)