add tests proving rbac rule matches

This commit is contained in:
deads2k
2016-09-23 11:17:18 -04:00
parent 87ff84a7b0
commit 4e2f819695
2 changed files with 197 additions and 0 deletions

View File

@@ -5142,6 +5142,23 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
Dependencies: []string{
"runtime.Object"},
},
"rbac.PolicyRuleBuilder": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "PolicyRuleBuilder let's us attach methods. A no-no for API types. We use it to construct rules in code. It's more compact than trying to write them out in a literal and allows us to perform some basic checking during construction",
Properties: map[string]spec.Schema{
"PolicyRule": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/rbac.PolicyRule"),
},
},
},
Required: []string{"PolicyRule"},
},
},
Dependencies: []string{
"rbac.PolicyRule"},
},
"rbac.Role": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{