c0d2f7b338
Signed-off-by: Daniel Nephin <dnephin@docker.com>
38 lines
1,020 B
Go
38 lines
1,020 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{"stack", "remove", "UNKNOWN_STACK"})
|
|
|
|
out, err := d.Cmd(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{"stack", "ps", "UNKNOWN_STACK"})
|
|
|
|
out, err := d.Cmd(stackArgs...)
|
|
c.Assert(err, checker.IsNil)
|
|
c.Assert(out, check.Equals, "Nothing found in stack: UNKNOWN_STACK\n")
|
|
}
|
|
|
|
func (s *DockerSwarmSuite) TestStackServices(c *check.C) {
|
|
d := s.AddDaemon(c, true, true)
|
|
|
|
stackArgs := append([]string{"stack", "services", "UNKNOWN_STACK"})
|
|
|
|
out, err := d.Cmd(stackArgs...)
|
|
c.Assert(err, checker.IsNil)
|
|
c.Assert(out, check.Equals, "Nothing found in stack: UNKNOWN_STACK\n")
|
|
}
|