2017-10-17 22:50:27 +00:00
|
|
|
/*
|
2017-11-05 21:35:46 +00:00
|
|
|
Copyright 2017 The Kubernetes Authors.
|
|
|
|
|
2017-10-17 22:50:27 +00:00
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
2017-11-05 21:35:46 +00:00
|
|
|
|
2017-10-17 22:50:27 +00:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2017-11-05 21:35:46 +00:00
|
|
|
|
2017-10-17 22:50:27 +00:00
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package e2e
|
|
|
|
|
|
|
|
import (
|
2018-10-29 16:01:41 +00:00
|
|
|
"os"
|
2017-10-17 22:50:27 +00:00
|
|
|
"testing"
|
|
|
|
|
2022-07-31 16:16:28 +00:00
|
|
|
"github.com/onsi/ginkgo/v2"
|
2019-03-28 23:43:18 +00:00
|
|
|
"k8s.io/component-base/logs"
|
2018-10-29 16:01:41 +00:00
|
|
|
|
2017-12-02 15:02:00 +00:00
|
|
|
// required
|
2017-10-17 22:50:27 +00:00
|
|
|
_ "k8s.io/client-go/plugin/pkg/client/auth"
|
|
|
|
|
2017-11-13 20:26:13 +00:00
|
|
|
"k8s.io/ingress-nginx/test/e2e/framework"
|
|
|
|
|
2017-12-02 15:02:00 +00:00
|
|
|
// tests to run
|
2020-09-25 21:45:13 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/admission"
|
2017-11-18 10:22:42 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/annotations"
|
2021-09-07 17:35:22 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/annotations/modsecurity"
|
2019-02-08 16:25:04 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/dbg"
|
2017-11-18 10:22:42 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/defaultbackend"
|
2022-11-05 21:22:15 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/endpointslices"
|
2018-12-11 10:37:19 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/gracefulshutdown"
|
2020-04-22 16:24:57 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/ingress"
|
2019-06-27 14:03:20 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/leaks"
|
2018-11-12 15:19:52 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/loadbalance"
|
2018-04-01 20:09:27 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/lua"
|
2023-04-11 08:01:18 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/metrics"
|
2022-05-26 13:23:24 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/nginx"
|
2019-12-25 01:50:25 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/security"
|
2018-06-11 01:45:38 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/servicebackend"
|
2017-11-18 10:22:42 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/settings"
|
2021-09-07 17:35:22 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/settings/modsecurity"
|
2020-04-17 02:34:12 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/settings/ocsp"
|
2017-11-14 20:50:08 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/ssl"
|
2018-10-29 16:01:41 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/status"
|
2018-11-16 20:33:56 +00:00
|
|
|
_ "k8s.io/ingress-nginx/test/e2e/tcpudp"
|
2017-10-17 22:50:27 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// RunE2ETests checks configuration parameters (specified through flags) and then runs
|
|
|
|
// E2E tests using the Ginkgo runner.
|
|
|
|
func RunE2ETests(t *testing.T) {
|
|
|
|
logs.InitLogs()
|
|
|
|
defer logs.FlushLogs()
|
|
|
|
|
2018-10-29 16:01:41 +00:00
|
|
|
if os.Getenv("KUBECTL_PATH") != "" {
|
|
|
|
framework.KubectlPath = os.Getenv("KUBECTL_PATH")
|
|
|
|
framework.Logf("Using kubectl path '%s'", framework.KubectlPath)
|
|
|
|
}
|
|
|
|
|
2022-07-31 16:16:28 +00:00
|
|
|
framework.Logf("Starting e2e run %q on Ginkgo node %d", framework.RunID, ginkgo.GinkgoParallelProcess())
|
2017-10-17 22:50:27 +00:00
|
|
|
ginkgo.RunSpecs(t, "nginx-ingress-controller e2e suite")
|
|
|
|
}
|