This test was using API version 1.20 to test old behavior, but the actual change
in behavior was API v1.25; see commit 6d98e344c7702a8a713cb9e02a19d83a79d3f930
and 63b5a372037081175ab4ea8f3c7a7bef2195ec0b.
This updates the test to use API v1.24 to test the old behavior.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -33,13 +33,15 @@ func TestInfoAPIVersioned(t *testing.T) {
|
| 33 | 33 |
ctx := testutil.StartSpan(baseContext, t) |
| 34 | 34 |
// Windows only supports 1.25 or later |
| 35 | 35 |
|
| 36 |
- res, body, err := req.Get(ctx, "/v1.20/info") |
|
| 36 |
+ res, body, err := req.Get(ctx, "/v1.24/info") |
|
| 37 | 37 |
assert.NilError(t, err) |
| 38 | 38 |
assert.Check(t, is.DeepEqual(res.StatusCode, http.StatusOK)) |
| 39 | 39 |
|
| 40 | 40 |
b, err := req.ReadBody(body) |
| 41 | 41 |
assert.NilError(t, err) |
| 42 | 42 |
|
| 43 |
+ // Verify the old response on API 1.24 and older before commit |
|
| 44 |
+ // 6d98e344c7702a8a713cb9e02a19d83a79d3f930. |
|
| 43 | 45 |
out := string(b) |
| 44 | 46 |
assert.Check(t, is.Contains(out, "ExecutionDriver")) |
| 45 | 47 |
assert.Check(t, is.Contains(out, "not supported")) |