Skip to content

Commit

Permalink
Extend mock RESTmapper with different casing found in one test case
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreham committed Apr 13, 2021
1 parent 88c8a09 commit f6b922e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/events/mocks_for_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func newMockRESTMapper() meta.RESTMapper {
baseMapper := meta.NewDefaultRESTMapper(nil)
// Add the object kinds that we use in fixtures.
baseMapper.Add(schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "deployment"}, meta.RESTScopeNamespace)
baseMapper.Add(schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "Deployment"}, meta.RESTScopeNamespace) // TODO: check why we need this
baseMapper.Add(schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "replicaset"}, meta.RESTScopeNamespace)
baseMapper.Add(schema.GroupVersionKind{Group: "apps", Version: "v1", Kind: "statefulset"}, meta.RESTScopeNamespace)
baseMapper.Add(schema.GroupVersionKind{Group: "", Version: "v1", Kind: "pod"}, meta.RESTScopeNamespace)
Expand Down

0 comments on commit f6b922e

Please sign in to comment.