зеркало из https://github.com/microsoft/docker.git
Add bridgeNfIptables and bridgeNfIp6tables test request
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
Родитель
0f01b21702
Коммит
79843b727f
|
@ -972,6 +972,7 @@ func (s *DockerDaemonSuite) TestDaemonIP(c *check.C) {
|
|||
}
|
||||
|
||||
func (s *DockerDaemonSuite) TestDaemonICCPing(c *check.C) {
|
||||
testRequires(c, bridgeNfIptables)
|
||||
d := s.d
|
||||
|
||||
bridgeName := "external-bridge"
|
||||
|
|
|
@ -81,6 +81,18 @@ var (
|
|||
},
|
||||
"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() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче