Created
April 20, 2016 16:36
-
-
Save ericchiang/5d49573f30730918fe01633f95d78e47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./test | |
Running tests... | |
ok github.com/coreos/dex/connector 0.005s coverage: 23.7% of statements | |
ok github.com/coreos/dex/db 0.087s coverage: 11.1% of statements | |
ok github.com/coreos/dex/integration 22.527s coverage: 0.0% of statements | |
ok github.com/coreos/dex/pkg/crypto 0.014s coverage: 75.7% of statements | |
ok github.com/coreos/dex/pkg/flag 0.012s coverage: 97.5% of statements | |
ok github.com/coreos/dex/pkg/http 0.004s coverage: 40.0% of statements | |
ok github.com/coreos/dex/pkg/time 0.007s coverage: 100.0% of statements | |
ok github.com/coreos/dex/pkg/html 0.004s coverage: 78.9% of statements | |
ok github.com/coreos/dex/functional/repo 2.149s coverage: 0.0% of statements | |
ok github.com/coreos/dex/server 16.833s coverage: 51.0% of statements | |
--- FAIL: TestSessionClaims (0.00s) | |
session_test.go:92: case 0: Compare(want, got) = { | |
aud: "XXX", | |
- exp: 1.461173713e+09, | |
- iat: 1.461170113e+09, | |
+ exp: 1461173713, | |
+ iat: 1461170113, | |
iss: "http://server.example.com", | |
sub: "elroy-id", | |
} | |
session_test.go:92: case 1: Compare(want, got) = { | |
aud: "XXX", | |
- exp: 1.461173713e+09, | |
- iat: 1.461170113e+09, | |
+ exp: 1461173713, | |
+ iat: 1461170113, | |
iss: "http://server.example.com", | |
sub: "elroy-id", | |
} | |
session_test.go:92: case 2: Compare(want, got) = { | |
aud: "XXX", | |
- exp: 1.461173713e+09, | |
- iat: 1.461170113e+09, | |
+ exp: 1461173713, | |
+ iat: 1461170113, | |
iss: "http://server.example.com", | |
nonce: "oncenay", | |
sub: "elroy-id", | |
} | |
FAIL | |
coverage: 100.0% of statements | |
FAIL github.com/coreos/dex/session 0.009s | |
ok github.com/coreos/dex/session/manager 0.013s coverage: 68.4% of statements | |
--- FAIL: TestNewEmailVerification (0.00s) | |
email_verification_test.go:63: case 0: Compare(want, got): { | |
aud: "myclient", | |
- exp: -2.208978e+09, | |
+ exp: -2208978000, | |
http://coreos.com/email/verification-callback: "http://client.example.com/callback", | |
http://coreos.com/email/verificationEmail: "[email protected]", | |
- iat: -2.2089888e+09, | |
+ iat: -2208988800, | |
iss: "http://example.com", | |
sub: "123456", | |
} | |
--- FAIL: TestEmailVerificationParseAndVerify (0.84s) | |
email_verification_test.go:153: case 0: Compare(want, got): { | |
aud: "myclient", | |
- exp: 1461180917, | |
+ exp: 1.461180917e+09, | |
http://coreos.com/email/verification-callback: "http://client.example.com", | |
http://coreos.com/email/verificationEmail: "[email protected]", | |
- iat: 1461170117, | |
+ iat: 1.461170117e+09, | |
iss: "http://example.com", | |
sub: "1234", | |
} | |
email_verification_test.go:140: err: oidc: JWT claims invalid: token is expired | |
email_verification_test.go:140: err: oidc: JWT claims invalid: invalid claim value: 'iss'. expected=http://example.com, found=http://bad.example.com. | |
email_verification_test.go:140: err: oidc: unable to verify JWT signature: no matching keys | |
email_verification_test.go:140: err: no sub claim | |
--- FAIL: TestInvitationParseAndVerify (0.73s) | |
invitation_test.go:100: case 0: Compare(want, got): { | |
Claims: { | |
aud: "myclient", | |
- exp: 1461180919, | |
+ exp: 1.461180919e+09, | |
http://coreos.com/email/verificationEmail: "[email protected]", | |
http://coreos.com/invitation/callback: "http://client.example.com", | |
http://coreos.com/password/old-hash: "Halloween is the best holiday", | |
- iat: 1461170119, | |
+ iat: 1.461170119e+09, | |
iss: "http://example.com", | |
sub: "1234", | |
}, | |
} | |
invitation_test.go:100: case 1: Compare(want, got): { | |
Claims: { | |
aud: "myclient", | |
- exp: 1461180919, | |
+ exp: 1.461180919e+09, | |
http://coreos.com/email/verificationEmail: "[email protected]", | |
http://coreos.com/invitation/callback: "http://client.example.com", | |
http://coreos.com/password/old-hash: "Halloween is the best holiday", | |
- iat: 1461170119, | |
+ iat: 1.461170119e+09, | |
iss: "http://example.com", | |
sub: "1234", | |
}, | |
} | |
--- FAIL: TestNewPasswordReset (0.00s) | |
password_test.go:124: case 0: Compare(want, got): { | |
aud: "myclient", | |
- exp: -2.208978e+09, | |
+ exp: -2208978000, | |
http://coreos.com/password/old-hash: "passy", | |
http://coreos.com/password/reset-callback: "http://client.example.com/callback", | |
- iat: -2.2089888e+09, | |
+ iat: -2208988800, | |
iss: "http://example.com", | |
sub: "123456", | |
} | |
--- FAIL: TestPasswordResetParseAndVerify (1.18s) | |
password_test.go:244: case 0: Compare(want, got): { | |
aud: "myclient", | |
- exp: 1461180920, | |
+ exp: 1.46118092e+09, | |
http://coreos.com/password/old-hash: "passy", | |
http://coreos.com/password/reset-callback: "http://client.example.com", | |
- iat: 1461170120, | |
+ iat: 1.46117012e+09, | |
iss: "http://example.com", | |
sub: "1234", | |
} | |
password_test.go:244: case 1: Compare(want, got): { | |
aud: "myclient", | |
- exp: 1461180920, | |
+ exp: 1.46118092e+09, | |
http://coreos.com/password/old-hash: "passy", | |
http://coreos.com/password/reset-callback: "", | |
- iat: 1461170120, | |
+ iat: 1.46117012e+09, | |
iss: "http://example.com", | |
sub: "1234", | |
} | |
password_test.go:231: err: oidc: JWT claims invalid: token is expired | |
password_test.go:231: err: oidc: JWT claims invalid: invalid claim value: 'iss'. expected=http://example.com, found=http://bad.example.com. | |
password_test.go:231: err: oidc: unable to verify JWT signature: no matching keys | |
password_test.go:231: err: no sub claim | |
password_test.go:231: err: no "http://coreos.com/password/old-hash" claim | |
password_test.go:231: err: no aud(client ID) claim | |
password_test.go:231: err: no aud(client ID) claim | |
FAIL | |
coverage: 56.7% of statements | |
FAIL github.com/coreos/dex/user 3.463s | |
ok github.com/coreos/dex/user/api 7.093s coverage: 83.7% of statements | |
ok github.com/coreos/dex/user/manager 0.533s coverage: 68.1% of statements | |
ok github.com/coreos/dex/user/email 3.674s coverage: 63.0% of statements | |
ok github.com/coreos/dex/email 0.008s coverage: 42.8% of statements | |
ok github.com/coreos/dex/admin 0.118s coverage: 60.0% of statements |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment