We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73421dd commit 43b54f0Copy full SHA for 43b54f0
pkg/database/database_test.go
@@ -105,6 +105,14 @@ func Test_expandDSN(t *testing.T) {
105
dsn: "mysql://admin:${DB_PASSWORD}@localhost:3306/dbname",
106
want: "mysql://admin:p%40ss%23123@localhost:3306/dbname",
107
},
108
+ {
109
+ name: "Port",
110
+ env: map[string]string{
111
+ "DB_PORT": "3306",
112
+ },
113
+ dsn: "mysql://user:password@localhost:${DB_PORT}/dbname",
114
+ want: "mysql://user:password@localhost:3306/dbname",
115
116
{
117
name: "Password with multiple special characters",
118
env: map[string]string{
0 commit comments