2021-09-14 08:28:17 +03:00
|
|
|
//go:build e2e
|
2021-05-11 00:28:14 +03:00
|
|
|
|
2021-05-05 03:06:06 +03:00
|
|
|
package e2e
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
"os"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"k8s.io/kubernetes/test/e2e/framework"
|
|
|
|
"k8s.io/kubernetes/test/e2e/framework/config"
|
|
|
|
)
|
|
|
|
|
2021-05-18 21:44:00 +03:00
|
|
|
func init() {
|
2021-10-14 05:19:07 +03:00
|
|
|
flag.StringVar(&tokenExchangeE2EImage, "e2e.token-exchange-image", "aramase/msal-go:v0.6.0", "The image to use for token exchange tests")
|
2021-05-18 21:44:00 +03:00
|
|
|
}
|
|
|
|
|
2021-05-05 03:06:06 +03:00
|
|
|
// handleFlags sets up all flags and parses the command line.
|
|
|
|
func handleFlags() {
|
|
|
|
config.CopyFlags(config.Flags, flag.CommandLine)
|
|
|
|
framework.RegisterCommonFlags(flag.CommandLine)
|
|
|
|
framework.RegisterClusterFlags(flag.CommandLine)
|
|
|
|
flag.Parse()
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestMain(m *testing.M) {
|
|
|
|
// Register test flags, then parse flags.
|
|
|
|
handleFlags()
|
|
|
|
framework.AfterReadingAllFlags(&framework.TestContext)
|
|
|
|
|
|
|
|
os.Exit(m.Run())
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestE2E(t *testing.T) {
|
|
|
|
RunE2ETests(t)
|
|
|
|
}
|