Skip to content

Commit

Permalink
Implement daemon suite for integration-cli
Browse files Browse the repository at this point in the history
For creating and stopping test daemons automatically.

Signed-off-by: Alexander Morozov <[email protected]>
  • Loading branch information
LK4D4 committed Apr 27, 2015
1 parent a07e963 commit 57464c3
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 250 deletions.
21 changes: 21 additions & 0 deletions integration-cli/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,24 @@ func (s *DockerRegistrySuite) TearDownTest(c *check.C) {
s.reg.Close()
s.ds.TearDownTest(c)
}

func init() {
check.Suite(&DockerDaemonSuite{
ds: &DockerSuite{},
})
}

type DockerDaemonSuite struct {
ds *DockerSuite
d *Daemon
}

func (s *DockerDaemonSuite) SetUpTest(c *check.C) {
s.d = NewDaemon(c)
s.ds.SetUpTest(c)
}

func (s *DockerDaemonSuite) TearDownTest(c *check.C) {
s.d.Stop()
s.ds.TearDownTest(c)
}
Loading

0 comments on commit 57464c3

Please sign in to comment.