3
0

Minor fix of SAML tests, trim endlines in static files

This commit is contained in:
Denis Arh
2022-01-18 18:42:47 +01:00
parent 59ec77e204
commit 29a135843f
@@ -7,6 +7,7 @@ import (
"crypto/x509"
"net/http"
"net/url"
"strings"
"testing"
"time"
@@ -81,11 +82,11 @@ func TestAuthExternalSAMLSuccess(t *testing.T) {
cookieSessionIDPtoSP = apitest.
NewCookie("saml_tCu5PV6EgxcvUAa9e57uJ2g-bTkqnNkyyHHaOu15yEfZjgWKt02AtXGe").
Value(string(readStaticFile("static/idp_to_sp.cookie")))
Value(strings.TrimSpace(string(readStaticFile("static/idp_to_sp.cookie"))))
cookieTokenIDPtoSPAfterLogin = apitest.
NewCookie("token").
Value(string(readStaticFile("static/idp_to_sp_token.cookie")))
Value(strings.TrimSpace(string(readStaticFile("static/idp_to_sp_token.cookie"))))
)
s.MaxClockSkew = time.Hour