misc_test.go 631 B

123456789101112131415161718192021222324252627282930
  1. package integration
  2. import . "gopkg.in/check.v1"
  3. func (s *QemuSuite) TestMisc(c *C) {
  4. s.RunQemu(c, "--cloud-config", "./tests/assets/test_01/cloud-config.yml")
  5. s.CheckCall(c, "sudo ros env printenv FLANNEL_NETWORK | grep '10.244.0.0/16'")
  6. s.CheckCall(c, "ps -ef | grep 'dhcpcd -M'")
  7. s.CheckCall(c, `
  8. set -e -x
  9. sudo ros tls gen --server -H localhost
  10. sudo ros tls gen
  11. sudo ros c set rancher.docker.tls true
  12. sudo system-docker restart docker
  13. sleep 5
  14. docker --tlsverify version`)
  15. s.CheckCall(c, `
  16. set -e -x
  17. for i in $(pidof system-docker); do
  18. if [ $i = 1 ]; then
  19. found=true
  20. fi
  21. done
  22. [ "$found" = "true" ]`)
  23. }