mirror of
https://github.com/moby/moby.git
synced 2025-08-01 05:47:11 +03:00
[integration-cli] skip plugin tests on non-x86
Due to the test plugins being architecture specific, these tests fail to start the plugin (even though they don't fail yet) Temporary fix until we can build architecture specific test plugins. Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>
This commit is contained in:
@ -46,7 +46,7 @@ func (s *DockerAuthzV2Suite) TearDownTest(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerAuthzV2Suite) TestAuthZPluginAllowNonVolumeRequest(c *check.C) {
|
func (s *DockerAuthzV2Suite) TestAuthZPluginAllowNonVolumeRequest(c *check.C) {
|
||||||
testRequires(c, IsAmd64)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
// Install authz plugin
|
// Install authz plugin
|
||||||
_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginNameWithTag)
|
_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginNameWithTag)
|
||||||
c.Assert(err, checker.IsNil)
|
c.Assert(err, checker.IsNil)
|
||||||
@ -76,7 +76,7 @@ func (s *DockerAuthzV2Suite) TestAuthZPluginAllowNonVolumeRequest(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerAuthzV2Suite) TestAuthZPluginRejectVolumeRequests(c *check.C) {
|
func (s *DockerAuthzV2Suite) TestAuthZPluginRejectVolumeRequests(c *check.C) {
|
||||||
testRequires(c, IsAmd64)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
// Install authz plugin
|
// Install authz plugin
|
||||||
_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginNameWithTag)
|
_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginNameWithTag)
|
||||||
c.Assert(err, checker.IsNil)
|
c.Assert(err, checker.IsNil)
|
||||||
@ -116,6 +116,7 @@ func (s *DockerAuthzV2Suite) TestAuthZPluginRejectVolumeRequests(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerAuthzV2Suite) TestAuthZPluginBadManifestFailsDaemonStart(c *check.C) {
|
func (s *DockerAuthzV2Suite) TestAuthZPluginBadManifestFailsDaemonStart(c *check.C) {
|
||||||
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
// Install authz plugin with bad manifest
|
// Install authz plugin with bad manifest
|
||||||
_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginBadManifestName)
|
_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginBadManifestName)
|
||||||
c.Assert(err, checker.IsNil)
|
c.Assert(err, checker.IsNil)
|
||||||
@ -128,6 +129,7 @@ func (s *DockerAuthzV2Suite) TestAuthZPluginBadManifestFailsDaemonStart(c *check
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerAuthzV2Suite) TestNonexistentAuthZPluginFailsDaemonStart(c *check.C) {
|
func (s *DockerAuthzV2Suite) TestNonexistentAuthZPluginFailsDaemonStart(c *check.C) {
|
||||||
|
testRequires(c, DaemonIsLinux, Network)
|
||||||
// start the daemon with a non-existent authz plugin, it will error
|
// start the daemon with a non-existent authz plugin, it will error
|
||||||
c.Assert(s.d.RestartWithError("--authorization-plugin="+nonexistentAuthzPluginName), check.NotNil)
|
c.Assert(s.d.RestartWithError("--authorization-plugin="+nonexistentAuthzPluginName), check.NotNil)
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
|
|
||||||
// TestDaemonRestartWithPluginEnabled tests state restore for an enabled plugin
|
// TestDaemonRestartWithPluginEnabled tests state restore for an enabled plugin
|
||||||
func (s *DockerDaemonSuite) TestDaemonRestartWithPluginEnabled(c *check.C) {
|
func (s *DockerDaemonSuite) TestDaemonRestartWithPluginEnabled(c *check.C) {
|
||||||
testRequires(c, Network)
|
testRequires(c, IsAmd64, Network)
|
||||||
|
|
||||||
s.d.Start(c)
|
s.d.Start(c)
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithPluginEnabled(c *check.C) {
|
|||||||
|
|
||||||
// TestDaemonRestartWithPluginDisabled tests state restore for a disabled plugin
|
// TestDaemonRestartWithPluginDisabled tests state restore for a disabled plugin
|
||||||
func (s *DockerDaemonSuite) TestDaemonRestartWithPluginDisabled(c *check.C) {
|
func (s *DockerDaemonSuite) TestDaemonRestartWithPluginDisabled(c *check.C) {
|
||||||
testRequires(c, Network)
|
testRequires(c, IsAmd64, Network)
|
||||||
|
|
||||||
s.d.Start(c)
|
s.d.Start(c)
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ func (s *DockerDaemonSuite) TestDaemonRestartWithPluginDisabled(c *check.C) {
|
|||||||
// TestDaemonKillLiveRestoreWithPlugins SIGKILLs daemon started with --live-restore.
|
// TestDaemonKillLiveRestoreWithPlugins SIGKILLs daemon started with --live-restore.
|
||||||
// Plugins should continue to run.
|
// Plugins should continue to run.
|
||||||
func (s *DockerDaemonSuite) TestDaemonKillLiveRestoreWithPlugins(c *check.C) {
|
func (s *DockerDaemonSuite) TestDaemonKillLiveRestoreWithPlugins(c *check.C) {
|
||||||
testRequires(c, Network, IsAmd64)
|
testRequires(c, IsAmd64, Network)
|
||||||
|
|
||||||
s.d.Start(c, "--live-restore")
|
s.d.Start(c, "--live-restore")
|
||||||
if out, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", pName); err != nil {
|
if out, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", pName); err != nil {
|
||||||
@ -101,7 +101,7 @@ func (s *DockerDaemonSuite) TestDaemonKillLiveRestoreWithPlugins(c *check.C) {
|
|||||||
// TestDaemonShutdownLiveRestoreWithPlugins SIGTERMs daemon started with --live-restore.
|
// TestDaemonShutdownLiveRestoreWithPlugins SIGTERMs daemon started with --live-restore.
|
||||||
// Plugins should continue to run.
|
// Plugins should continue to run.
|
||||||
func (s *DockerDaemonSuite) TestDaemonShutdownLiveRestoreWithPlugins(c *check.C) {
|
func (s *DockerDaemonSuite) TestDaemonShutdownLiveRestoreWithPlugins(c *check.C) {
|
||||||
testRequires(c, Network, IsAmd64)
|
testRequires(c, IsAmd64, Network)
|
||||||
|
|
||||||
s.d.Start(c, "--live-restore")
|
s.d.Start(c, "--live-restore")
|
||||||
if out, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", pName); err != nil {
|
if out, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", pName); err != nil {
|
||||||
@ -129,7 +129,7 @@ func (s *DockerDaemonSuite) TestDaemonShutdownLiveRestoreWithPlugins(c *check.C)
|
|||||||
|
|
||||||
// TestDaemonShutdownWithPlugins shuts down running plugins.
|
// TestDaemonShutdownWithPlugins shuts down running plugins.
|
||||||
func (s *DockerDaemonSuite) TestDaemonShutdownWithPlugins(c *check.C) {
|
func (s *DockerDaemonSuite) TestDaemonShutdownWithPlugins(c *check.C) {
|
||||||
testRequires(c, Network)
|
testRequires(c, IsAmd64, Network)
|
||||||
|
|
||||||
s.d.Start(c)
|
s.d.Start(c)
|
||||||
if out, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", pName); err != nil {
|
if out, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", pName); err != nil {
|
||||||
@ -164,7 +164,7 @@ func (s *DockerDaemonSuite) TestDaemonShutdownWithPlugins(c *check.C) {
|
|||||||
|
|
||||||
// TestVolumePlugin tests volume creation using a plugin.
|
// TestVolumePlugin tests volume creation using a plugin.
|
||||||
func (s *DockerDaemonSuite) TestVolumePlugin(c *check.C) {
|
func (s *DockerDaemonSuite) TestVolumePlugin(c *check.C) {
|
||||||
testRequires(c, Network, IsAmd64)
|
testRequires(c, IsAmd64, Network)
|
||||||
|
|
||||||
volName := "plugin-volume"
|
volName := "plugin-volume"
|
||||||
destDir := "/tmp/data/"
|
destDir := "/tmp/data/"
|
||||||
|
@ -276,7 +276,7 @@ func (s *DockerSuite) TestEventsImageLoad(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestEventsPluginOps(c *check.C) {
|
func (s *DockerSuite) TestEventsPluginOps(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
|
|
||||||
since := daemonUnixTime(c)
|
since := daemonUnixTime(c)
|
||||||
|
|
||||||
|
@ -419,7 +419,7 @@ func (s *DockerSuite) TestInspectAmpersand(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestInspectPlugin(c *check.C) {
|
func (s *DockerSuite) TestInspectPlugin(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
_, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
|
_, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
|
||||||
c.Assert(err, checker.IsNil)
|
c.Assert(err, checker.IsNil)
|
||||||
|
|
||||||
|
@ -774,7 +774,7 @@ func (s *DockerNetworkSuite) TestDockerNetworkDriverOptions(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerNetworkSuite) TestDockerPluginV2NetworkDriver(c *check.C) {
|
func (s *DockerNetworkSuite) TestDockerPluginV2NetworkDriver(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network, IsAmd64)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
npName = "tiborvass/test-docker-netplugin"
|
npName = "tiborvass/test-docker-netplugin"
|
||||||
|
@ -18,7 +18,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (s *DockerSuite) TestPluginBasicOps(c *check.C) {
|
func (s *DockerSuite) TestPluginBasicOps(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
_, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
|
_, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
|
||||||
c.Assert(err, checker.IsNil)
|
c.Assert(err, checker.IsNil)
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ func (s *DockerSuite) TestPluginBasicOps(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestPluginForceRemove(c *check.C) {
|
func (s *DockerSuite) TestPluginForceRemove(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
|
out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
|
||||||
c.Assert(err, checker.IsNil)
|
c.Assert(err, checker.IsNil)
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ func (s *DockerSuite) TestPluginForceRemove(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestPluginActive(c *check.C) {
|
func (s *DockerSuite) TestPluginActive(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network, IsAmd64)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
|
out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
|
||||||
c.Assert(err, checker.IsNil)
|
c.Assert(err, checker.IsNil)
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ func (s *DockerSuite) TestPluginActive(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestPluginInstallDisable(c *check.C) {
|
func (s *DockerSuite) TestPluginInstallDisable(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", "--disable", pName)
|
out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", "--disable", pName)
|
||||||
c.Assert(err, checker.IsNil)
|
c.Assert(err, checker.IsNil)
|
||||||
c.Assert(strings.TrimSpace(out), checker.Contains, pName)
|
c.Assert(strings.TrimSpace(out), checker.Contains, pName)
|
||||||
@ -113,7 +113,7 @@ func (s *DockerSuite) TestPluginInstallDisable(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestPluginInstallDisableVolumeLs(c *check.C) {
|
func (s *DockerSuite) TestPluginInstallDisableVolumeLs(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", "--disable", pName)
|
out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", "--disable", pName)
|
||||||
c.Assert(err, checker.IsNil)
|
c.Assert(err, checker.IsNil)
|
||||||
c.Assert(strings.TrimSpace(out), checker.Contains, pName)
|
c.Assert(strings.TrimSpace(out), checker.Contains, pName)
|
||||||
@ -122,7 +122,7 @@ func (s *DockerSuite) TestPluginInstallDisableVolumeLs(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestPluginSet(c *check.C) {
|
func (s *DockerSuite) TestPluginSet(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
out, _ := dockerCmd(c, "plugin", "install", "--grant-all-permissions", "--disable", pName)
|
out, _ := dockerCmd(c, "plugin", "install", "--grant-all-permissions", "--disable", pName)
|
||||||
c.Assert(strings.TrimSpace(out), checker.Contains, pName)
|
c.Assert(strings.TrimSpace(out), checker.Contains, pName)
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ func (s *DockerSuite) TestPluginSet(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestPluginInstallArgs(c *check.C) {
|
func (s *DockerSuite) TestPluginInstallArgs(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
out, _ := dockerCmd(c, "plugin", "install", "--grant-all-permissions", "--disable", pName, "DEBUG=1")
|
out, _ := dockerCmd(c, "plugin", "install", "--grant-all-permissions", "--disable", pName, "DEBUG=1")
|
||||||
c.Assert(strings.TrimSpace(out), checker.Contains, pName)
|
c.Assert(strings.TrimSpace(out), checker.Contains, pName)
|
||||||
|
|
||||||
@ -145,14 +145,14 @@ func (s *DockerSuite) TestPluginInstallArgs(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestPluginInstallImage(c *check.C) {
|
func (s *DockerSuite) TestPluginInstallImage(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
out, _, err := dockerCmdWithError("plugin", "install", "redis")
|
out, _, err := dockerCmdWithError("plugin", "install", "redis")
|
||||||
c.Assert(err, checker.NotNil)
|
c.Assert(err, checker.NotNil)
|
||||||
c.Assert(out, checker.Contains, "content is not a plugin")
|
c.Assert(out, checker.Contains, "content is not a plugin")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestPluginEnableDisableNegative(c *check.C) {
|
func (s *DockerSuite) TestPluginEnableDisableNegative(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pName)
|
out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pName)
|
||||||
c.Assert(err, checker.IsNil)
|
c.Assert(err, checker.IsNil)
|
||||||
c.Assert(strings.TrimSpace(out), checker.Contains, pName)
|
c.Assert(strings.TrimSpace(out), checker.Contains, pName)
|
||||||
@ -173,7 +173,7 @@ func (s *DockerSuite) TestPluginEnableDisableNegative(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestPluginCreate(c *check.C) {
|
func (s *DockerSuite) TestPluginCreate(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
|
|
||||||
name := "foo/bar-driver"
|
name := "foo/bar-driver"
|
||||||
temp, err := ioutil.TempDir("", "foo")
|
temp, err := ioutil.TempDir("", "foo")
|
||||||
@ -204,7 +204,7 @@ func (s *DockerSuite) TestPluginCreate(c *check.C) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerSuite) TestPluginInspect(c *check.C) {
|
func (s *DockerSuite) TestPluginInspect(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux, Network)
|
testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
||||||
_, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
|
_, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
|
||||||
c.Assert(err, checker.IsNil)
|
c.Assert(err, checker.IsNil)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user