Skip flannel if Docker, weave hairpin

pull/8545/head
Thomas Stromberg 2020-06-24 09:18:34 -07:00
parent 5680774f42
commit 2249d36dc8
1 changed files with 8 additions and 0 deletions

View File

@ -57,6 +57,10 @@ func TestNetworkPlugins(t *testing.T) {
tc := tc
t.Run(tc.name, func(t *testing.T) {
if DockerDriver() && strings.Contains(tc.name, "flannel") {
t.Skipf("flannel is not yet compatible with Docker driver: iptables v1.8.3 (legacy): Couldn't load target `CNI-x': No such file or directory")
}
start := time.Now()
MaybeParallel(t)
profile := UniqueProfileName(tc.name)
@ -162,6 +166,10 @@ func TestNetworkPlugins(t *testing.T) {
if !t.Failed() {
t.Run("HairPin", func(t *testing.T) {
if strings.Contains(tc.name, "weave") {
t.Skipf("skipping: weavenet hairpin results vary substantially across environments")
}
tryHairPin := func() error {
_, err := Run(t, exec.CommandContext(ctx, "kubectl", "--context", profile, "exec", "deployment/netcat", "--", "/bin/sh", "-c", "nc -w 5 -i 5 -z netcat 8080"))
return err