123456789101112131415161718192021222324252627282930313233 |
- package integration
- import . "gopkg.in/check.v1"
- func (s *QemuSuite) TestHttpProxy(c *C) {
- err := s.RunQemu("--cloud-config", "./tests/assets/test_17/cloud-config.yml")
- c.Assert(err, IsNil)
- s.CheckCall(c, `
- set -x -e
- sudo system-docker inspect docker env | grep HTTP_PROXY=invalid
- sudo system-docker inspect docker env | grep HTTPS_PROXY=invalid
- sudo system-docker inspect docker env | grep NO_PROXY=invalid
- if docker pull busybox; then
- exit 1
- else
- exit 0
- fi`)
- s.Reboot(c)
- s.CheckCall(c, `
- set -x -e
- if sudo system-docker pull busybox; then
- exit 1
- else
- exit 0
- fi`)
- }
|