2021-11-06 12:42:07 +00:00
|
|
|
package saml_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"go.sebtobie.de/httpserver"
|
|
|
|
"go.sebtobie.de/httpserver/auth"
|
|
|
|
"go.sebtobie.de/httpserver/modules/saml"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestSamlMethods(t *testing.T) {
|
|
|
|
t.Parallel()
|
|
|
|
var samlo = &saml.SAML{}
|
|
|
|
var samlsite httpserver.Site = samlo
|
|
|
|
var _ auth.AuthenticationHandler = samlo
|
2022-11-04 22:49:35 +00:00
|
|
|
defaults := samlsite.(httpserver.ConfigSite).Defaults()
|
2021-11-06 12:42:07 +00:00
|
|
|
if len(defaults) == 0 {
|
|
|
|
t.Log("There is an empty Default Object")
|
|
|
|
t.Fail()
|
|
|
|
}
|
2022-11-04 22:49:35 +00:00
|
|
|
samlsite.(httpserver.ConfigSite).Setup(defaults)
|
2021-11-06 12:42:07 +00:00
|
|
|
}
|