Browse code

integration-cli: TestInspectAPIBridgeNetworkSettings121: use current version

This test was added in f301c5765a0d7f4b6866cedfdface6f87874ff53 to test
inspect output for API > v1.21, however, it was pinned to API v1.21,
which is now deprecated.

Remove the fixed version, as the intent was to test "current" API versions
(API v1.21 and up),

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2024/01/22 04:32:02
Showing 1 changed files
... ...
@@ -159,6 +159,11 @@ func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings120(c *testing.T) {
159 159
 	assert.Assert(c, len(settings.IPAddress) != 0)
160 160
 }
161 161
 
162
+// Inspect for API v1.21 and up; see
163
+//
164
+// - https://github.com/moby/moby/issues/17131
165
+// - https://github.com/moby/moby/issues/17139
166
+// - https://github.com/moby/moby/issues/17173
162 167
 func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings121(c *testing.T) {
163 168
 	// Windows doesn't have any bridge network settings
164 169
 	testRequires(c, DaemonIsLinux)
... ...
@@ -166,7 +171,7 @@ func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings121(c *testing.T) {
166 166
 	containerID := strings.TrimSpace(out)
167 167
 	cli.WaitRun(c, containerID)
168 168
 
169
-	body := getInspectBody(c, "v1.21", containerID)
169
+	body := getInspectBody(c, "", containerID)
170 170
 
171 171
 	var inspectJSON types.ContainerJSON
172 172
 	err := json.Unmarshal(body, &inspectJSON)