소스 검색

Merge pull request #20692 from coolljt0725/add_brnf_test_request

Add bridgeNfIptables and bridgeNfIp6tables test request
Brian Goff 9 년 전
부모
커밋
ea6d2708e2
2개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      integration-cli/docker_cli_daemon_test.go
  2. 12 0
      integration-cli/requirements_unix.go

+ 1 - 0
integration-cli/docker_cli_daemon_test.go

@@ -972,6 +972,7 @@ func (s *DockerDaemonSuite) TestDaemonIP(c *check.C) {
 }
 }
 
 
 func (s *DockerDaemonSuite) TestDaemonICCPing(c *check.C) {
 func (s *DockerDaemonSuite) TestDaemonICCPing(c *check.C) {
+	testRequires(c, bridgeNfIptables)
 	d := s.d
 	d := s.d
 
 
 	bridgeName := "external-bridge"
 	bridgeName := "external-bridge"

+ 12 - 0
integration-cli/requirements_unix.go

@@ -81,6 +81,18 @@ var (
 		},
 		},
 		"Test requires that seccomp support be enabled in the daemon.",
 		"Test requires that seccomp support be enabled in the daemon.",
 	}
 	}
+	bridgeNfIptables = testRequirement{
+		func() bool {
+			return !SysInfo.BridgeNfCallIptablesDisabled
+		},
+		"Test requires that bridge-nf-call-iptables support be enabled in the daemon.",
+	}
+	bridgeNfIP6tables = testRequirement{
+		func() bool {
+			return !SysInfo.BridgeNfCallIP6tablesDisabled
+		},
+		"Test requires that bridge-nf-call-ip6tables support be enabled in the daemon.",
+	}
 )
 )
 
 
 func init() {
 func init() {