From e364221122b8bf8b8d700b1ad989d5f303a3f1bb Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 8 Nov 2016 07:13:42 -0500 Subject: [PATCH] Fix GitHub tests --- builtin/credential/github/backend_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/builtin/credential/github/backend_test.go b/builtin/credential/github/backend_test.go index 6603be481f..2e055764df 100644 --- a/builtin/credential/github/backend_test.go +++ b/builtin/credential/github/backend_test.go @@ -110,17 +110,17 @@ func TestBackend_basic(t *testing.T) { Backend: b, Steps: []logicaltest.TestStep{ testAccStepConfig(t, false), - testAccMap(t, "default", "root"), - testAccMap(t, "oWnErs", "root"), - testAccLogin(t, []string{"root"}), + testAccMap(t, "default", "fakepol"), + testAccMap(t, "oWnErs", "fakepol"), + testAccLogin(t, []string{"fakepol"}), testAccStepConfig(t, true), - testAccMap(t, "default", "root"), - testAccMap(t, "oWnErs", "root"), - testAccLogin(t, []string{"root"}), + testAccMap(t, "default", "fakepol"), + testAccMap(t, "oWnErs", "fakepol"), + testAccLogin(t, []string{"fakepol"}), testAccStepConfigWithBaseURL(t), - testAccMap(t, "default", "root"), - testAccMap(t, "oWnErs", "root"), - testAccLogin(t, []string{"root"}), + testAccMap(t, "default", "fakepol"), + testAccMap(t, "oWnErs", "fakepol"), + testAccLogin(t, []string{"fakepol"}), }, }) } @@ -183,6 +183,6 @@ func testAccLogin(t *testing.T, keys []string) logicaltest.TestStep { }, Unauthenticated: true, - Check: logicaltest.TestCheckAuth(keys), + Check: logicaltest.TestCheckAuth([]string{"default", "fakepol"}), } }