12345678910111213141516171819202122232425262728293031 |
- package integration
- import . "gopkg.in/check.v1"
- func (s *QemuSuite) TestMisc(c *C) {
- err := s.RunQemu("--cloud-config", "./tests/assets/test_01/cloud-config.yml")
- c.Assert(err, IsNil)
- s.CheckCall(c, "sudo ros env printenv FLANNEL_NETWORK | grep '10.244.0.0/16'")
- s.CheckCall(c, "ps -ef | grep 'dhcpcd -M'")
- s.CheckCall(c, `
- set -e -x
- sudo ros tls gen --server -H localhost
- sudo ros tls gen
- sudo ros c set rancher.docker.tls true
- sudo system-docker restart docker
- sleep 5
- docker --tlsverify version`)
- s.CheckCall(c, `
- set -e -x
- for i in $(pidof system-docker); do
- if [ $i = 1 ]; then
- found=true
- fi
- done
- [ "$found" = "true" ]`)
- }
|