github.com/portworx/docker@v1.12.1/integration-cli/docker_cli_stack_test.go (about) 1 // +build experimental 2 3 package main 4 5 import ( 6 "github.com/docker/docker/pkg/integration/checker" 7 "github.com/go-check/check" 8 ) 9 10 func (s *DockerSwarmSuite) TestStackRemove(c *check.C) { 11 d := s.AddDaemon(c, true, true) 12 13 stackArgs := append([]string{"remove", "UNKNOWN_STACK"}) 14 15 out, err := d.Cmd("stack", stackArgs...) 16 c.Assert(err, checker.IsNil) 17 c.Assert(out, check.Equals, "Nothing found in stack: UNKNOWN_STACK\n") 18 } 19 20 func (s *DockerSwarmSuite) TestStackTasks(c *check.C) { 21 d := s.AddDaemon(c, true, true) 22 23 stackArgs := append([]string{"ps", "UNKNOWN_STACK"}) 24 25 out, err := d.Cmd("stack", stackArgs...) 26 c.Assert(err, checker.IsNil) 27 c.Assert(out, check.Equals, "Nothing found in stack: UNKNOWN_STACK\n") 28 }