Skip to content

Commit

Permalink
test/examples_test.go: validate docs/user-guide/pod-security-policy/p…
Browse files Browse the repository at this point in the history
…sp.yaml (#3100)
  • Loading branch information
php-coder authored and chenopis committed Apr 10, 2017
1 parent f487ce2 commit 8aad74e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ func validateObject(obj runtime.Object) (errors field.ErrorList) {
t.Namespace = api.NamespaceDefault
}
errors = expvalidation.ValidateDaemonSet(t)
case *extensions.PodSecurityPolicy:
errors = expvalidation.ValidatePodSecurityPolicy(t)
case *batch.CronJob:
if t.Namespace == "" {
t.Namespace = api.NamespaceDefault
Expand Down Expand Up @@ -226,6 +228,9 @@ func TestExampleObjectSchemas(t *testing.T) {
"kitten-rc": {&api.ReplicationController{}},
"nautilus-rc": {&api.ReplicationController{}},
},
"../docs/user-guide/pod-security-policy": {
"psp": {&extensions.PodSecurityPolicy{}},
},
"../docs/user-guide/persistent-volumes/volumes": {
"local-01": {&api.PersistentVolume{}},
"local-02": {&api.PersistentVolume{}},
Expand Down

0 comments on commit 8aad74e

Please sign in to comment.