integration/container: TestInfoAPIVersioned: adjust API version
This test was using API version 1.20 to test old behavior, but the actual change in behavior was API v1.25; see commit6d98e344c7
and63b5a37203
. This updates the test to use API v1.24 to test the old behavior. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
410feab962
commit
97549d923c
1 changed files with 3 additions and 1 deletions
|
@ -33,13 +33,15 @@ func TestInfoAPIVersioned(t *testing.T) {
|
|||
ctx := testutil.StartSpan(baseContext, t)
|
||||
// Windows only supports 1.25 or later
|
||||
|
||||
res, body, err := req.Get(ctx, "/v1.20/info")
|
||||
res, body, err := req.Get(ctx, "/v1.24/info")
|
||||
assert.NilError(t, err)
|
||||
assert.Check(t, is.DeepEqual(res.StatusCode, http.StatusOK))
|
||||
|
||||
b, err := req.ReadBody(body)
|
||||
assert.NilError(t, err)
|
||||
|
||||
// Verify the old response on API 1.24 and older before commit
|
||||
// 6d98e344c7702a8a713cb9e02a19d83a79d3f930.
|
||||
out := string(b)
|
||||
assert.Check(t, is.Contains(out, "ExecutionDriver"))
|
||||
assert.Check(t, is.Contains(out, "not supported"))
|
||||
|
|
Loading…
Reference in a new issue