Skip to content
Snippets Groups Projects
Commit f76c43ec authored by Pavel Borzenkov's avatar Pavel Borzenkov
Browse files

server: fix tests to expect unpadded base64 messages

parent abd6805f
Branches
No related tags found
No related merge requests found
......@@ -810,7 +810,7 @@ func TestHandleKeysFunc(t *testing.T) {
t.Fatalf("Incorrect headers: want=%#v got=%#v", wantHeader, gotHeader)
}
wantBody := `{"keys":[{"kid":"1234","kty":"RSA","alg":"RS256","use":"sig","e":"AQAB","n":"FE9chh46rg=="},{"kid":"5678","kty":"RSA","alg":"RS256","use":"sig","e":"AQAB","n":"BGKVohEShg=="}]}`
wantBody := `{"keys":[{"kid":"1234","kty":"RSA","alg":"RS256","use":"sig","e":"AQAB","n":"FE9chh46rg"},{"kid":"5678","kty":"RSA","alg":"RS256","use":"sig","e":"AQAB","n":"BGKVohEShg"}]}`
gotBody := w.Body.String()
if wantBody != gotBody {
t.Fatalf("Incorrect body: want=%s got=%s", wantBody, gotBody)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment