|
@@ -18,7 +18,7 @@ var (
|
|
|
)
|
|
|
|
|
|
func (s *DockerSuite) TestPluginBasicOps(c *check.C) {
|
|
|
- testRequires(c, DaemonIsLinux, Network)
|
|
|
+ testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
|
|
_, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", pNameWithTag)
|
|
|
c.Assert(err, checker.IsNil)
|
|
|
|
|
@@ -50,7 +50,7 @@ func (s *DockerSuite) TestPluginBasicOps(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)
|
|
|
c.Assert(err, checker.IsNil)
|
|
|
|
|
@@ -63,7 +63,7 @@ func (s *DockerSuite) TestPluginForceRemove(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)
|
|
|
c.Assert(err, checker.IsNil)
|
|
|
|
|
@@ -90,7 +90,7 @@ func (s *DockerSuite) TestPluginActive(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)
|
|
|
c.Assert(err, checker.IsNil)
|
|
|
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) {
|
|
|
- testRequires(c, DaemonIsLinux, Network)
|
|
|
+ testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
|
|
out, _, err := dockerCmdWithError("plugin", "install", "--grant-all-permissions", "--disable", pName)
|
|
|
c.Assert(err, checker.IsNil)
|
|
|
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) {
|
|
|
- testRequires(c, DaemonIsLinux, Network)
|
|
|
+ testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
|
|
out, _ := dockerCmd(c, "plugin", "install", "--grant-all-permissions", "--disable", 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) {
|
|
|
- testRequires(c, DaemonIsLinux, Network)
|
|
|
+ testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
|
|
out, _ := dockerCmd(c, "plugin", "install", "--grant-all-permissions", "--disable", pName, "DEBUG=1")
|
|
|
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) {
|
|
|
- testRequires(c, DaemonIsLinux, Network)
|
|
|
+ testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
|
|
out, _, err := dockerCmdWithError("plugin", "install", "redis")
|
|
|
c.Assert(err, checker.NotNil)
|
|
|
c.Assert(out, checker.Contains, "content is not a plugin")
|
|
|
}
|
|
|
|
|
|
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)
|
|
|
c.Assert(err, checker.IsNil)
|
|
|
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) {
|
|
|
- testRequires(c, DaemonIsLinux, Network)
|
|
|
+ testRequires(c, DaemonIsLinux, IsAmd64, Network)
|
|
|
|
|
|
name := "foo/bar-driver"
|
|
|
temp, err := ioutil.TempDir("", "foo")
|
|
@@ -204,7 +204,7 @@ func (s *DockerSuite) TestPluginCreate(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)
|
|
|
c.Assert(err, checker.IsNil)
|
|
|
|