Add integration test to test singularnames for all resources

This commit is contained in:
Arda Güçlü
2022-11-21 09:59:37 +03:00
parent 1f54f610e4
commit 43a889fc65
3 changed files with 28 additions and 4 deletions

View File

@@ -168,9 +168,6 @@ func (r *REST) ResourceLocation(ctx context.Context, id string) (*url.URL, http.
return node.ResourceLocation(r, r.connection, r.proxyTransport, ctx, id)
}
// Implement ShortNamesProvider
var _ rest.ShortNamesProvider = &REST{}
// ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
func (r *REST) ShortNames() []string {
return []string{"no"}

View File

@@ -290,7 +290,7 @@ func (r *LegacyBindingREST) Create(ctx context.Context, obj runtime.Object, crea
}
func (r *LegacyBindingREST) GetSingularName() string {
return "bindings"
return "binding"
}
// StatusREST implements the REST endpoint for changing the status of a pod.