1
0
mirror of https://github.com/rancher/os.git synced 2025-06-24 22:11:33 +00:00
os/tests/http_proxy_test.go

32 lines
558 B
Go
Raw Normal View History

2016-07-20 17:42:16 +00:00
package integration
import . "gopkg.in/check.v1"
func (s *QemuSuite) TestHttpProxy(c *C) {
2016-10-22 03:34:30 +00:00
s.RunQemu(c, "--cloud-config", "./tests/assets/test_17/cloud-config.yml")
2016-07-20 17:42:16 +00:00
s.CheckCall(c, `
set -x -e
sudo system-docker inspect docker | grep HTTP_PROXY=invalid
sudo system-docker inspect docker | grep HTTPS_PROXY=invalid
sudo system-docker inspect docker | grep NO_PROXY=invalid
2016-07-20 17:42:16 +00:00
if docker pull busybox; then
exit 1
else
exit 0
fi`)
2016-07-26 22:40:35 +00:00
s.Reboot(c)
2016-07-20 17:42:16 +00:00
s.CheckCall(c, `
set -x -e
if sudo system-docker pull busybox; then
exit 1
else
exit 0
fi`)
}