Bladeren bron

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>
(cherry picked from commit 13a384a6fa328f80b3d35bea106e3a5fbd516e8b)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 1 jaar geleden
bovenliggende
commit
05267e9e8c
1 gewijzigde bestanden met toevoegingen van 6 en 1 verwijderingen
  1. 6 1
      integration-cli/docker_api_inspect_test.go

+ 6 - 1
integration-cli/docker_api_inspect_test.go

@@ -159,6 +159,11 @@ func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings120(c *testing.T) {
 	assert.Assert(c, len(settings.IPAddress) != 0)
 	assert.Assert(c, len(settings.IPAddress) != 0)
 }
 }
 
 
+// Inspect for API v1.21 and up; see
+//
+// - https://github.com/moby/moby/issues/17131
+// - https://github.com/moby/moby/issues/17139
+// - https://github.com/moby/moby/issues/17173
 func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings121(c *testing.T) {
 func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings121(c *testing.T) {
 	// Windows doesn't have any bridge network settings
 	// Windows doesn't have any bridge network settings
 	testRequires(c, DaemonIsLinux)
 	testRequires(c, DaemonIsLinux)
@@ -166,7 +171,7 @@ func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings121(c *testing.T) {
 	containerID := strings.TrimSpace(out)
 	containerID := strings.TrimSpace(out)
 	cli.WaitRun(c, containerID)
 	cli.WaitRun(c, containerID)
 
 
-	body := getInspectBody(c, "v1.21", containerID)
+	body := getInspectBody(c, "", containerID)
 
 
 	var inspectJSON types.ContainerJSON
 	var inspectJSON types.ContainerJSON
 	err := json.Unmarshal(body, &inspectJSON)
 	err := json.Unmarshal(body, &inspectJSON)