github.com/ajspeck/libcompose@v0.5.4/integration/start_test.go (about)

     1  package integration
     2  
     3  import (
     4  	"fmt"
     5  
     6  	. "gopkg.in/check.v1"
     7  )
     8  
     9  func (s *CliSuite) TestStart(c *C) {
    10  	p := s.ProjectFromText(c, "create", SimpleTemplate)
    11  
    12  	name := fmt.Sprintf("%s_%s_1", p, "hello")
    13  
    14  	cn := s.GetContainerByName(c, name)
    15  	c.Assert(cn, NotNil)
    16  	c.Assert(cn.State.Running, Equals, false)
    17  
    18  	s.FromText(c, p, "start", SimpleTemplate)
    19  
    20  	cn = s.GetContainerByName(c, name)
    21  	c.Assert(cn, NotNil)
    22  	c.Assert(cn.State.Running, Equals, true)
    23  }