Change env var prefix to DEX and add to ci.yaml
This commit is contained in:
parent
af9c2880a6
commit
1fd5dd7b0e
2 changed files with 3 additions and 2 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -51,6 +51,7 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make testall
|
run: make testall
|
||||||
env:
|
env:
|
||||||
|
DEX_FOO_USER_PASSWORD: \$2a\$10\$33EMT0cVYVlPy6WAMCLsceLYjWhuHpbz5yuZxu/GAFj03J9Lytjuy
|
||||||
DEX_MYSQL_DATABASE: dex
|
DEX_MYSQL_DATABASE: dex
|
||||||
DEX_MYSQL_USER: root
|
DEX_MYSQL_USER: root
|
||||||
DEX_MYSQL_PASSWORD: root
|
DEX_MYSQL_PASSWORD: root
|
||||||
|
|
|
@ -17,7 +17,7 @@ import (
|
||||||
|
|
||||||
var _ = yaml.YAMLToJSON
|
var _ = yaml.YAMLToJSON
|
||||||
|
|
||||||
const testHashStaticPasswordEnv = "FOO_PASSWORD"
|
const testHashStaticPasswordEnv = "DEX_FOO_USER_PASSWORD"
|
||||||
|
|
||||||
func TestValidConfiguration(t *testing.T) {
|
func TestValidConfiguration(t *testing.T) {
|
||||||
configuration := Config{
|
configuration := Config{
|
||||||
|
@ -273,7 +273,7 @@ staticPasswords:
|
||||||
username: "admin"
|
username: "admin"
|
||||||
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
|
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
|
||||||
- email: "foo@example.com"
|
- email: "foo@example.com"
|
||||||
hashFromEnv: "FOO_PASSWORD"
|
hashFromEnv: "DEX_FOO_USER_PASSWORD"
|
||||||
username: "foo"
|
username: "foo"
|
||||||
userID: "41331323-6f44-45e6-b3b9-2c4b60c02be5"
|
userID: "41331323-6f44-45e6-b3b9-2c4b60c02be5"
|
||||||
|
|
||||||
|
|
Reference in a new issue