start_commands_test.go 326 B

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