Change env var prefix to DEX and add to ci.yaml

This commit is contained in:
krishnadurai 2019-12-13 17:03:56 -08:00
parent af9c2880a6
commit 1fd5dd7b0e
2 changed files with 3 additions and 2 deletions

View File

@ -51,6 +51,7 @@ jobs:
- name: Run tests
run: make testall
env:
DEX_FOO_USER_PASSWORD: \$2a\$10\$33EMT0cVYVlPy6WAMCLsceLYjWhuHpbz5yuZxu/GAFj03J9Lytjuy
DEX_MYSQL_DATABASE: dex
DEX_MYSQL_USER: root
DEX_MYSQL_PASSWORD: root

View File

@ -17,7 +17,7 @@ import (
var _ = yaml.YAMLToJSON
const testHashStaticPasswordEnv = "FOO_PASSWORD"
const testHashStaticPasswordEnv = "DEX_FOO_USER_PASSWORD"
func TestValidConfiguration(t *testing.T) {
configuration := Config{
@ -273,7 +273,7 @@ staticPasswords:
username: "admin"
userID: "08a8684b-db88-4b73-90a9-3cd1661f5466"
- email: "foo@example.com"
hashFromEnv: "FOO_PASSWORD"
hashFromEnv: "DEX_FOO_USER_PASSWORD"
username: "foo"
userID: "41331323-6f44-45e6-b3b9-2c4b60c02be5"