1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-07-17 01:52:30 +02:00

fix(test): syntax violation of json with one too many closing curly brackets

This commit is contained in:
Jan Larwig
2025-01-18 00:28:57 +01:00
parent 3cf74c21f8
commit 67f3da232a

View File

@ -257,12 +257,12 @@ func TestGoogleProvider_userInGroup(t *testing.T) {
// note that the client currently doesn't care what this response text or code is - any error here results in failure to match the group // note that the client currently doesn't care what this response text or code is - any error here results in failure to match the group
http.Error( http.Error(
w, w,
`{"error": {"errors": [{"domain": "global","reason": "notFound","message": "Resource Not Found: memberKey"}],"code": 404,"message": "Resource Not Found: memberKey"}}`, `{"kind":"admin#directory#member","etag":"12345","id":"1234567890","email":"member-out-of-domain@otherexample.com","role":"MEMBER","type":"USER","status":"ACTIVE","delivery_settings":"ALL_MAIL"}`,
http.StatusNotFound, http.StatusNotFound,
) )
} else if r.URL.Path == "/admin/directory/v1/groups/group@example.com/members/member-out-of-domain@otherexample.com" { } else if r.URL.Path == "/admin/directory/v1/groups/group@example.com/members/member-out-of-domain@otherexample.com" {
fmt.Fprintln(w, fmt.Fprintln(w,
`{"kind": "admin#directory#member","etag":"12345","id":"1234567890","email": "member-out-of-domain@otherexample.com","role": "MEMBER","type": "USER","status": "ACTIVE","delivery_settings": "ALL_MAIL"}}`, `{"kind":"admin#directory#member","etag":"12345","id":"1234567890","email":"member-out-of-domain@otherexample.com","role":"MEMBER","type":"USER","status":"ACTIVE","delivery_settings":"ALL_MAIL"}`,
) )
} }
})) }))