25b235a1b1
Signed-off-by: allencloud <allen.sun@daocloud.io>
(cherry picked from commit 416613f2e5
)
Signed-off-by: Tibor Vass <tibor@docker.com>
28 lines
722 B
Go
28 lines
722 B
Go
// +build experimental
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/docker/docker/pkg/integration/checker"
|
|
"github.com/go-check/check"
|
|
)
|
|
|
|
func (s *DockerSwarmSuite) TestStackRemove(c *check.C) {
|
|
d := s.AddDaemon(c, true, true)
|
|
|
|
stackArgs := append([]string{"remove", "UNKNOWN_STACK"})
|
|
|
|
out, err := d.Cmd("stack", stackArgs...)
|
|
c.Assert(err, checker.IsNil)
|
|
c.Assert(out, check.Equals, "Nothing found in stack: UNKNOWN_STACK\n")
|
|
}
|
|
|
|
func (s *DockerSwarmSuite) TestStackTasks(c *check.C) {
|
|
d := s.AddDaemon(c, true, true)
|
|
|
|
stackArgs := append([]string{"tasks", "UNKNOWN_STACK"})
|
|
|
|
out, err := d.Cmd("stack", stackArgs...)
|
|
c.Assert(err, checker.IsNil)
|
|
c.Assert(out, check.Equals, "Nothing found in stack: UNKNOWN_STACK\n")
|
|
}
|