From 1fd5dd7b0eb2dc9ffdd1265d675a1e0abd77847d Mon Sep 17 00:00:00 2001 From: krishnadurai Date: Fri, 13 Dec 2019 17:03:56 -0800 Subject: [PATCH] Change env var prefix to DEX and add to ci.yaml --- .github/workflows/ci.yml | 1 + cmd/dex/config_test.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3027be5f..4f038690 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/cmd/dex/config_test.go b/cmd/dex/config_test.go index feb23144..c5c3c479 100644 --- a/cmd/dex/config_test.go +++ b/cmd/dex/config_test.go @@ -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"