http_proxy_test.go 558 B

1234567891011121314151617181920212223242526272829303132
  1. package integration
  2. import . "gopkg.in/check.v1"
  3. func (s *QemuSuite) TestHttpProxy(c *C) {
  4. s.RunQemu(c, "--cloud-config", "./tests/assets/test_17/cloud-config.yml")
  5. s.CheckCall(c, `
  6. set -x -e
  7. sudo system-docker inspect docker | grep HTTP_PROXY=invalid
  8. sudo system-docker inspect docker | grep HTTPS_PROXY=invalid
  9. sudo system-docker inspect docker | grep NO_PROXY=invalid
  10. if docker pull busybox; then
  11. exit 1
  12. else
  13. exit 0
  14. fi`)
  15. s.Reboot(c)
  16. s.CheckCall(c, `
  17. set -x -e
  18. if sudo system-docker pull busybox; then
  19. exit 1
  20. else
  21. exit 0
  22. fi`)
  23. }