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

Method replaceDestination

service_provider_test.go:1075–1082  ·  view source on GitHub ↗
(newDestination string)

Source from the content-addressed store, hash-verified

1073}
1074
1075func (test *ServiceProviderTest) replaceDestination(newDestination string) {
1076 newStr := ""
1077 if newDestination != "" {
1078 newStr = `Destination="` + newDestination + `"`
1079 }
1080 test.SamlResponse = bytes.Replace(test.SamlResponse,
1081 []byte(`Destination="https://15661444.ngrok.io/saml2/acs"`), []byte(newStr), 1)
1082}
1083
1084func TestSPCanProcessResponseWithoutDestination(t *testing.T) {
1085 test := NewServiceProviderTest(t)

Calls

no outgoing calls

Tested by

no test coverage detected