Skip to content

Commit d6f46ad

Browse files
author
David Erb
committed
environment MYSQL_HOST
1 parent 0325753 commit d6f46ad

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/configurations/mysql.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ dls_servbase_dataface_specification: &DLS_SERVBASE_DATAFACE_SPECIFICATION
4343
type: "dls_normsql.aiomysql"
4444
type_specific_tbd:
4545
database_name: "dls_servbase_pytest"
46-
host: "docker-mysql"
47-
port: 3306
46+
# These come straight from os.environ.
47+
host: "$MYSQL_HOST"
48+
port: "$MYSQL_PORT"
4849
username: "root"
4950
password: "root"
5051
context:

tests/test_database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def test(self, constants, logging_setup, output_directory):
4545
"type": ClassTypes.AIOMYSQL,
4646
"type_specific_tbd": {
4747
"database_name": "dls_servbase_pytest",
48-
"host": "docker-mysql",
49-
"port": 3306,
48+
"host": "$MYSQL_HOST",
49+
"port": "$MYSQL_PORT",
5050
"username": "root",
5151
"password": "root",
5252
},

0 commit comments

Comments
 (0)