add RESTMapper() in testapi

This commit is contained in:
Chao Xu 2015-09-10 17:16:04 -07:00
parent dd6c121d7f
commit 8f888e2826

View File

@ -204,3 +204,7 @@ func (g TestGroup) ResourcePathWithPrefix(prefix, resource, namespace, name stri
func (g TestGroup) ResourcePath(resource, namespace, name string) string {
return g.ResourcePathWithPrefix("", resource, namespace, name)
}
func (g TestGroup) RESTMapper() meta.RESTMapper {
return latest.GroupOrDie(g.Group).RESTMapper
}