Files
mesh/integration/integration_test.go

39 lines
797 B
Go

package integration
import (
"flag"
"log"
"testing"
"github.com/go-check/check"
"github.com/sirupsen/logrus"
)
var (
integration = flag.Bool("integration", false, "run integration tests")
debug = flag.Bool("debug", false, "debug log level")
masterURL = "https://localhost:8443"
k3dClusterName = "traefik-mesh-integration"
traefikMeshNamespace = "traefik-mesh"
smiCRDs = "./testdata/crds/"
testNamespace = "test"
)
func Test(t *testing.T) {
if !*integration {
log.Println("Integration tests disabled")
return
}
if *debug {
logrus.SetLevel(logrus.DebugLevel)
}
check.Suite(&ACLDisabledSuite{})
check.Suite(&ACLEnabledSuite{})
check.Suite(&CoreDNSSuite{})
check.Suite(&KubeDNSSuite{})
check.TestingT(t)
}