misc_test.go 657 B

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