MCPcopy Create free account
hub / github.com/crewjam/saml / TestRequestedAuthnContext

Function TestRequestedAuthnContext

schema_test.go:98–109  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

96}
97
98func TestRequestedAuthnContext(t *testing.T) {
99 expected := RequestedAuthnContext{
100 Comparison: "comparison",
101 }
102
103 doc := etree.NewDocument()
104 doc.SetRoot(expected.Element())
105 x, err := doc.WriteToBytes()
106 assert.Check(t, err)
107 assert.Check(t, is.Equal(`<samlp:RequestedAuthnContext Comparison="comparison"><saml:AuthnContextClassRef/></samlp:RequestedAuthnContext>`,
108 string(x)))
109}
110
111func TestArtifactResolveElement(t *testing.T) {
112 issueInstant := time.Date(2020, 7, 21, 12, 30, 45, 0, time.UTC)

Callers

nothing calls this directly

Calls 1

ElementMethod · 0.95

Tested by

no test coverage detected