Example #1
0
func (s *CheckSuite) TestSimpleProject(c *check.C) {
	project := compose.CreateProject(c, "simple", "../assets/simple.yml")
	project.Start(c)

	// FIXME(vdemeester) check that a container is running
	runningContainers, err := findContainersForProject("simple")
	c.Assert(err, check.IsNil)
	c.Assert(len(runningContainers), check.Equals, 1,
		check.Commentf("Expected 1 running container for this project, got %v", runningContainers))

	project.Stop(c)
}
Example #2
0
func (s *BaseSuite) createComposeProject(c *check.C, name string) {
	projectName := fmt.Sprintf("integration-test-%s", name)
	composeFile := fmt.Sprintf("resources/compose/%s.yml", name)
	s.composeProject = compose.CreateProject(c, projectName, composeFile)
}