@@ -72,22 +72,13 @@ func TestOpen(t *testing.T) {
7272 assert .Nil (t , err )
7373
7474 for name , reference := range map [string ]testCase {
75- "not_requesting_groups" : {
76- config : & Config {
77- ClientID : "testClient" ,
78- ClientSecret : "testSecret" ,
79- RedirectURI : ts .URL + "/callback" ,
80- Scopes : []string {"openid" },
81- },
82- expectedErr : "" ,
83- },
8475 "missing_admin_email" : {
8576 config : & Config {
86- ClientID : "testClient" ,
87- ClientSecret : "testSecret" ,
88- RedirectURI : ts .URL + "/callback" ,
89- Scopes : []string {"openid" , "groups" },
90- Groups : [] string { "someGroup" } ,
77+ ClientID : "testClient" ,
78+ ClientSecret : "testSecret" ,
79+ RedirectURI : ts .URL + "/callback" ,
80+ Scopes : []string {"openid" , "groups" },
81+ ServiceAccountFilePath : serviceAccountFilePath ,
9182 },
9283 expectedErr : "requires adminEmail" ,
9384 },
@@ -99,7 +90,6 @@ func TestOpen(t *testing.T) {
9990 Scopes : []string {"openid" , "groups" },
10091 AdminEmail : "foo@bar.com" ,
10192 ServiceAccountFilePath : "not_found.json" ,
102- Groups : []string {"someGroup" },
10393 },
10494 expectedErr : "error reading credentials" ,
10595 },
@@ -111,7 +101,6 @@ func TestOpen(t *testing.T) {
111101 Scopes : []string {"openid" , "groups" },
112102 AdminEmail : "foo@bar.com" ,
113103 ServiceAccountFilePath : serviceAccountFilePath ,
114- Groups : []string {"someGroup" },
115104 },
116105 expectedErr : "" ,
117106 },
@@ -122,7 +111,6 @@ func TestOpen(t *testing.T) {
122111 RedirectURI : ts .URL + "/callback" ,
123112 Scopes : []string {"openid" , "groups" },
124113 AdminEmail : "foo@bar.com" ,
125- Groups : []string {"someGroup" },
126114 },
127115 adc : serviceAccountFilePath ,
128116 expectedErr : "" ,
@@ -135,7 +123,6 @@ func TestOpen(t *testing.T) {
135123 Scopes : []string {"openid" , "groups" },
136124 AdminEmail : "foo@bar.com" ,
137125 ServiceAccountFilePath : serviceAccountFilePath ,
138- Groups : []string {"someGroup" },
139126 },
140127 adc : "/dev/null" ,
141128 expectedErr : "" ,
0 commit comments