diff --git a/test/unit/discovery/discovery.go b/test/unit/discovery/discovery.go index e73ff6c47..d7a8fd14c 100644 --- a/test/unit/discovery/discovery.go +++ b/test/unit/discovery/discovery.go @@ -101,6 +101,12 @@ func (d *Discovery) OpenAPIV3() openapi.Client { return d.openAPIV3SchemaFn() } +func (d *Discovery) WithLegacy() discovery.DiscoveryInterface { + // setting the discovery client to legacy mode (not using the aggregated discovery client) doesn't + // make any difference for our testing purposes here, so we just return the same discovery client + return d +} + func (d *Discovery) RESTClient() restclient.Interface { return d.restClientFn() }