Skip to content

Instantly share code, notes, and snippets.

@lloyd
Last active December 28, 2015 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lloyd/7559948 to your computer and use it in GitHub Desktop.
Save lloyd/7559948 to your computer and use it in GitHub Desktop.
assertion verification, basic
✓ test idps should start up
✓ validation of basic assertion signed by IdP should succeed
✓ validation of basic assertion signed by Fallback should succeed (67ms)
✓ test idp should shut down
assertion time verification
✓ test idp should start up
✓ assertions backed by expired certificates should fail to verify
✓ assertions backed by certificates from the future should fail to verify
✓ assertions backed by certificates with minor clock drift should verify
✓ expired assertions should fail to verify
✓ assertions from the future should fail to verify
✓ assertions with minor clock drift should verify
✓ test idp should shut down
audience matching
✓ should not regress
source code syntax
✓ .jshintrc should be readable
✓ we should be able to discover files to lint
✓ syntax checking should yield no errors (262ms)
key size and type
✓ all permutations (user / IdP) should pass basic assertion verification (873ms)
.well-known lookup, delegation
✓ allocation of delegation chain should succeed (95ms)
✓ delegation chain should be followed (53ms)
✓ refuse to follow the delegation chain if too long (39ms)
✓ detect delegation cycles efficiently (43ms)
✓ should handle broken chains elegantly (slow idp) (334ms)
✓ should handle broken chains elegantly (malformed .well-known) (54ms)
✓ shutdown of delegation chain should succeed
.well-known lookup transport tests (HTTP)
✓ test idps should start up (44ms)
✓ should work with the built-in HTTP implementation
✓ should work an over-ridden HTTP implementation
✓ should timeout for slow http responses (100ms)
✓ should refuse to follow http redirects
✓ test idp should shut down
test idp implementation
✓ should allocate a new testing idp
✓ should handle custom support documents
✓ should shutdown gracefully
.well-known lookup, malformed
✓ startup of IdP should succeed
✓ should handle bogus public key
✓ should handle missing required fields
✓ should properly parse disabled: true
✓ shutdown of IdP should succeed
38 passing (2s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment