start_commands_test.go 352 B

123456789101112131415161718
  1. package integration
  2. import (
  3. "fmt"
  4. . "gopkg.in/check.v1"
  5. )
  6. func (s *QemuSuite) TestStartCommands(c *C) {
  7. err := s.RunQemu("--cloud-config", "./tests/assets/test_26/cloud-config.yml")
  8. c.Assert(err, IsNil)
  9. for i := 1; i < 5; i++ {
  10. s.CheckCall(c, fmt.Sprintf("ls /home/rancher | grep test%d", i))
  11. }
  12. s.CheckCall(c, "docker ps | grep nginx")
  13. }