client: TestGetAPIPath(): update test to use more realistic results
client: TestGetAPIPath(): update test to use more realistic results

This test was setting the non-exported `Client.basePath` directly, however,
it was setting it to a value that would never realistically happen, because
`NewClientWithOpts()` initializes the Client with the default API version:
https://github.com/moby/moby/blob/ea5b4765d9d9a5aa5cab39f7119cffe74be874ce/client/client.go#L119-L130

Which is used by `getAPIPath()` to construct the URL/path:
https://github.com/moby/moby/blob/ea5b4765d9d9a5aa5cab39f7119cffe74be874ce/client/client.go#L176-L190

While this didn't render the test "invalid", using a Client that's constructed
in the usual way, makes it more representative.

Given that we deprecated (but still support) the non-versioned API paths, with
the exception of the `/_ping` API endpoint, we should probably change `getAPIPath()`
to default to the "current version", instead of allowing it to use an empty string.

Signed-off-by: Sebastiaan van Stijn <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@gone.nl>

jimjag/docker,mahak/docker,trebonian/docker,vdemeester/docker,vdemeester/docker,gnailuy/docker,thaJeztah/docker,Mokolea/docker,thaJeztah/docker,moby/moby,trebonian/docker,jimjag/docker,cpuguy83/docker,thaJeztah/docker,trebonian/docker,vdemeester/docker,bearstech/moby,konstruktoid/docker-upstream,flavio/docker,Ramzec/docker,flavio/docker,konstruktoid/docker-upstream,cpuguy83/docker,Mokolea/docker,Ramzec/docker,Mokolea/docker,bearstech/moby,nawawi/docker,moul/docker,gnailuy/docker,mahak/docker,cpuguy83/docker,moul/docker,konstruktoid/docker-upstream,Ramzec/docker,bearstech/moby,moul/docker,cpuguy83/docker,nawawi/docker,Ramzec/docker,jimjag/docker,gnailuy/docker,nawawi/docker,gnailuy/docker,jimjag/docker,Mokolea/docker,moby/moby,moby/moby,flavio/docker,nawawi/docker,konstruktoid/docker-upstream,mahak/docker,trebonian/docker,mahak/docker,bearstech/moby,moby/moby,flavio/docker,moul/docker,thaJeztah/docker