github.com/in4it/ecs-deploy@v0.0.42-0.20240508120354-ed77ff16df25/api/saml_test.go (about) 1 package api 2 3 import ( 4 "net/url" 5 "testing" 6 ) 7 8 func TestSAML(t *testing.T) { 9 ecsURL := "https://localhost/ecs-deploy/" 10 rootURL, err := url.Parse(ecsURL) 11 if err != nil { 12 t.Errorf("error: %s", err) 13 } 14 15 acsURL := rootURL.ResolveReference(&url.URL{Path: "saml/acs"}) 16 17 if acsURL.Path != "/ecs-deploy/saml/acs" { 18 t.Errorf("Got wrong url: %s", acsURL.Path) 19 } 20 }