mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-07 00:17:13 +00:00
42 lines
1.2 KiB
Go
42 lines
1.2 KiB
Go
package testrunner
|
|
|
|
import "testing"
|
|
|
|
// func TestCLI(t *testing.T) {
|
|
// //https://github.com/nirmata/kyverno/issues/301
|
|
// runner(t, "/test/scenarios/cli")
|
|
// }
|
|
|
|
func Test_Devlop(t *testing.T) {
|
|
testScenario(t, "/test/scenarios/test/s1.yaml")
|
|
}
|
|
|
|
func Test_Mutate_EndPoint(t *testing.T) {
|
|
testScenario(t, "/test/scenarios/test/scenario_mutate_endPpoint.yaml")
|
|
}
|
|
|
|
func Test_Mutate_imagePullPolicy(t *testing.T) {
|
|
testScenario(t, "/test/scenarios/test/scenario_mutate_imagePullPolicy.yaml")
|
|
}
|
|
|
|
func Test_Mutate_Validate_qos(t *testing.T) {
|
|
testScenario(t, "/test/scenarios/test/scenario_mutate_validate_qos.yaml")
|
|
}
|
|
|
|
func Test_validate_containerSecurityContext(t *testing.T) {
|
|
testScenario(t, "/test/scenarios/test/scenario_validate_containerSecurityContext.yaml")
|
|
}
|
|
|
|
func Test_validate_healthChecks(t *testing.T) {
|
|
testScenario(t, "/test/scenarios/test/scenario_validate_healthChecks.yaml")
|
|
}
|
|
|
|
func Test_validate_imageRegistries(t *testing.T) {
|
|
testScenario(t, "/test/scenarios/test/scenario_validate_imageRegistries.yaml")
|
|
}
|
|
|
|
func Test_validate_nonRootUsers(t *testing.T) {
|
|
testScenario(t, "/test/scenarios/test/scenario_validate_nonRootUser.yaml")
|
|
}
|
|
|
|
//TODO add tests for Generation
|