@@ -7,12 +7,25 @@ import (
7
7
"github.com/solo-io/gloo/test/kubernetes/e2e/features/validation/validation_strict_warnings"
8
8
)
9
9
10
+ // ValidationStrictSuiteRunnerAll is used to run all the validation tests, including ones that depend on the helm chart/values/helpers
11
+ // This is the function that should be used to run the validation tests in this repo
12
+ func ValidationStrictSuiteRunnerAll () e2e.SuiteRunner {
13
+ validationSuiteRunner := ValidationStrictSuiteRunner ()
14
+ validationSuiteRunner .Register ("ValidationSplitWebhook" , split_webhook .NewTestingSuite )
15
+
16
+ return validationSuiteRunner
17
+ }
18
+
19
+ // ValidationStrictSuiteRunner is used to export the validation tests that can be run when the project is imported as a helm dependency
20
+ // The "ValidationSplitWebhook" test has logic that depends on the helm chart/values/helpers
21
+ // that are not valid when the project is imported as a helm dependency
22
+ // https://github.com/k8sgateway/k8sgateway/issues/10374 has been created to create a fix for this.
23
+ // If more tests are added that depend on the helm chart/values/helpers, the above issue should be resolved instead of using this approach
10
24
func ValidationStrictSuiteRunner () e2e.SuiteRunner {
11
25
validationSuiteRunner := e2e .NewSuiteRunner (false )
12
26
13
27
validationSuiteRunner .Register ("ValidationStrictWarnings" , validation_strict_warnings .NewTestingSuite )
14
28
validationSuiteRunner .Register ("ValidationRejectInvalid" , validation_reject_invalid .NewTestingSuite )
15
- validationSuiteRunner .Register ("ValidationSplitWebhook" , split_webhook .NewTestingSuite )
16
29
17
30
return validationSuiteRunner
18
31
}
0 commit comments