DockerCLI/internal/test/environment
Paweł Gronowski 9831fea4db
testenv: Add DaemonAPIVersion helper
Allow tests to check the negotiated API version used by the client.

Can be used to skip tests based on API versions, for example:
```go
    skip.If(t, versions.LessThan(environment.DaemonAPIVersion(t), "1.44"))
```

will skip the test if the API version is older than 1.44

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-02-12 16:29:47 +01:00
..
testenv.go testenv: Add DaemonAPIVersion helper 2024-02-12 16:29:47 +01:00