mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #39430 from thaJeztah/ipvlan_checks_cleanup
Integration: remove redundant checks in IPVLAN tests
This commit is contained in:
commit
cfac0c9c49
3 changed files with 6 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
// +build !windows
|
||||
|
||||
package ipvlan
|
||||
package ipvlan // import "github.com/docker/docker/integration/network/ipvlan"
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -22,11 +22,10 @@ import (
|
|||
|
||||
func TestDockerNetworkIpvlanPersistance(t *testing.T) {
|
||||
// verify the driver automatically provisions the 802.1q link (di-dummy0.70)
|
||||
skip.If(t, testEnv.DaemonInfo.OSType == "windows")
|
||||
skip.If(t, testEnv.IsRemoteDaemon)
|
||||
skip.If(t, !ipvlanKernelSupport(t), "Kernel doesn't support ipvlan")
|
||||
|
||||
d := daemon.New(t, daemon.WithExperimental)
|
||||
d := daemon.New(t)
|
||||
d.StartWithBusybox(t)
|
||||
defer d.Stop(t)
|
||||
|
||||
|
@ -50,7 +49,6 @@ func TestDockerNetworkIpvlanPersistance(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDockerNetworkIpvlan(t *testing.T) {
|
||||
skip.If(t, testEnv.DaemonInfo.OSType == "windows")
|
||||
skip.If(t, testEnv.IsRemoteDaemon)
|
||||
skip.If(t, !ipvlanKernelSupport(t), "Kernel doesn't support ipvlan")
|
||||
|
||||
|
@ -87,7 +85,7 @@ func TestDockerNetworkIpvlan(t *testing.T) {
|
|||
test: testIpvlanAddressing,
|
||||
},
|
||||
} {
|
||||
d := daemon.New(t, daemon.WithExperimental)
|
||||
d := daemon.New(t)
|
||||
d.StartWithBusybox(t)
|
||||
c := d.NewClientT(t)
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build !windows
|
||||
|
||||
package ipvlan // import "github.com/docker/docker/integration/network/ipvlan"
|
||||
|
||||
import (
|
||||
|
|
1
integration/network/ipvlan/main_windows_test.go
Normal file
1
integration/network/ipvlan/main_windows_test.go
Normal file
|
@ -0,0 +1 @@
|
|||
package ipvlan // import "github.com/docker/docker/integration/network/ipvlan"
|
Loading…
Add table
Reference in a new issue