divide statically known typer from dynamically derive restmapper

This commit is contained in:
David Eads
2018-04-27 09:27:19 -04:00
parent 6fbcbc994f
commit 5432ef5c45
27 changed files with 47 additions and 75 deletions

View File

@@ -339,7 +339,7 @@ func TestValidate(t *testing.T) {
}
for name, test := range tests {
test.roleOptions.Mapper, _ = tf.Object()
test.roleOptions.Mapper = tf.RESTMapper()
err := test.roleOptions.Validate()
if test.expectErr && err == nil {
t.Errorf("%s: expect error happens but validate passes.", name)