From 913b0f51cab18a56247a950f5f1e75ca79b63039 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 17 Apr 2023 13:21:59 +0200 Subject: 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 --- integration/system/disk_usage_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'integration') 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{}, -- cgit v1.2.1