diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2023-04-17 13:21:59 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2023-05-06 16:35:00 +0200 |
commit | 913b0f51cab18a56247a950f5f1e75ca79b63039 (patch) | |
tree | e9ce8c51d9d7a5541ed79aa6497ad2fcc7c7ca25 /integration | |
parent | 88f4bf4ae4bace73608b73df9fb974081d2bed1a (diff) | |
download | docker-913b0f51cab18a56247a950f5f1e75ca79b63039.tar.gz |
API: omit deprecated VirtualSize field for API v1.44 and up
This field is deprecated since 1261fe69a3586bb102182aa885197822419c768c,
and will now be omitted on API v1.44 and up for the `GET /images/json`,
`GET /images/{id}/json`, and `GET /system/df` endpoints.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'integration')
-rw-r--r-- | integration/system/disk_usage_test.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/integration/system/disk_usage_test.go b/integration/system/disk_usage_test.go index 17d3b2c318..c0513073c1 100644 --- a/integration/system/disk_usage_test.go +++ b/integration/system/disk_usage_test.go @@ -57,11 +57,10 @@ func TestDiskUsage(t *testing.T) { LayersSize: du.LayersSize, Images: []*types.ImageSummary{ { - Created: du.Images[0].Created, - ID: du.Images[0].ID, - RepoTags: []string{"busybox:latest"}, - Size: du.LayersSize, - VirtualSize: du.LayersSize, //nolint:staticcheck // ignore SA1019: field is deprecated, but still set on API < v1.44. + Created: du.Images[0].Created, + ID: du.Images[0].ID, + RepoTags: []string{"busybox:latest"}, + Size: du.LayersSize, }, }, Containers: []*types.Container{}, |