mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Skip plugin tests if not in amd64
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
8ac6b97189
commit
22c09cf902
4 changed files with 7 additions and 5 deletions
|
@ -41,6 +41,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)
|
||||||
// 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)
|
||||||
|
@ -70,6 +71,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)
|
||||||
// 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)
|
||||||
|
|
|
@ -81,7 +81,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)
|
testRequires(c, Network, IsAmd64)
|
||||||
|
|
||||||
if err := s.d.Start("--live-restore"); err != nil {
|
if err := s.d.Start("--live-restore"); err != nil {
|
||||||
c.Fatalf("Could not start daemon: %v", err)
|
c.Fatalf("Could not start daemon: %v", err)
|
||||||
|
@ -114,7 +114,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)
|
testRequires(c, Network, IsAmd64)
|
||||||
|
|
||||||
if err := s.d.Start("--live-restore"); err != nil {
|
if err := s.d.Start("--live-restore"); err != nil {
|
||||||
c.Fatalf("Could not start daemon: %v", err)
|
c.Fatalf("Could not start daemon: %v", err)
|
||||||
|
@ -185,7 +185,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)
|
testRequires(c, Network, IsAmd64)
|
||||||
|
|
||||||
volName := "plugin-volume"
|
volName := "plugin-volume"
|
||||||
volRoot := "/data"
|
volRoot := "/data"
|
||||||
|
|
|
@ -769,7 +769,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)
|
testRequires(c, DaemonIsLinux, Network, IsAmd64)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
npName = "mavenugo/test-docker-netplugin"
|
npName = "mavenugo/test-docker-netplugin"
|
||||||
|
|
|
@ -60,7 +60,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)
|
testRequires(c, DaemonIsLinux, Network, IsAmd64)
|
||||||
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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue