2019-06-17 18:11:22 -07:00
|
|
|
package testrunner
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
2019-08-29 18:48:58 -07:00
|
|
|
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")
|
|
|
|
}
|
2019-08-29 11:44:50 -07:00
|
|
|
|
2019-08-29 18:48:58 -07:00
|
|
|
func Test_validate_containerSecurityContext(t *testing.T) {
|
|
|
|
testScenario(t, "/test/scenarios/test/scenario_validate_containerSecurityContext.yaml")
|
2019-07-01 12:16:12 -07:00
|
|
|
}
|
2019-08-29 18:48:58 -07:00
|
|
|
|
|
|
|
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")
|
|
|
|
}
|
|
|
|
|
2019-08-30 14:06:47 -07:00
|
|
|
func Test_generate_networkPolicy(t *testing.T) {
|
|
|
|
testScenario(t, "/test/scenarios/test/scenario_generate_networkPolicy.yaml")
|
|
|
|
}
|