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

Method replaceDestination

service_provider_test.go:926–933  ·  view source on GitHub ↗
(newDestination string)

Source from the content-addressed store, hash-verified

924}
925
926func (test *ServiceProviderTest) replaceDestination(newDestination string) {
927 newStr := ""
928 if newDestination != "" {
929 newStr = `Destination="` + newDestination + `"`
930 }
931 test.SamlResponse = bytes.Replace(test.SamlResponse,
932 []byte(`Destination="https://15661444.ngrok.io/saml2/acs"`), []byte(newStr), 1)
933}
934
935func TestSPCanProcessResponseWithoutDestination(t *testing.T) {
936 test := NewServiceProviderTest(t)

Calls

no outgoing calls

Tested by

no test coverage detected