From 94e90a5d2611734b821eb812d52373c47ea90c4d Mon Sep 17 00:00:00 2001 From: Margo Crawford Date: Wed, 7 Jul 2021 14:52:13 -0700 Subject: [PATCH] groups related env variables for AD --- test/testlib/env.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testlib/env.go b/test/testlib/env.go index c5afa9e8..5d68d4a6 100644 --- a/test/testlib/env.go +++ b/test/testlib/env.go @@ -278,6 +278,8 @@ func loadEnvVars(t *testing.T, result *TestEnv) { TestUserUniqueIDAttributeValue: wantEnv("PINNIPED_TEST_AD_USER_UNIQUE_ID_ATTRIBUTE_VALUE", ""), TestUsernameAttributeName: wantEnv("PINNIPED_TEST_AD_USERNAME_ATTRIBUTE_NAME", ""), TestUsernameAttributeValue: wantEnv("PINNIPED_TEST_AD_USERNAME_ATTRIBUTE_VALUE", ""), + TestUserDirectGroupsDNs: filterEmpty(strings.Split(wantEnv("PINNIPED_TEST_AD_USER_EXPECTED_GROUPS_DN", ""), ";")), + TestUserDirectGroupsCNs: filterEmpty(strings.Split(wantEnv("PINNIPED_TEST_AD_USER_EXPECTED_GROUPS_CN", ""), ";")), } sort.Strings(result.SupervisorUpstreamLDAP.TestUserDirectGroupsCNs)