mirror of
https://github.com/traefik/mesh.git
synced 2026-06-01 18:37:57 +00:00
39 lines
797 B
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)
|
|
}
|