1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 06:11:12 +00:00
Files
os/tests/http_proxy_test.go

32 lines
558 B
Go
Raw Normal View History

2016-07-20 10:42:16 -07:00
package integration
import . "gopkg.in/check.v1"
func (s *QemuSuite) TestHttpProxy(c *C) {
2016-10-21 20:34:30 -07:00
s.RunQemu(c, "--cloud-config", "./tests/assets/test_17/cloud-config.yml")
2016-07-20 10:42:16 -07: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 10:42:16 -07:00
if docker pull busybox; then
exit 1
else
exit 0
fi`)
2016-07-26 15:40:35 -07:00
s.Reboot(c)
2016-07-20 10:42:16 -07:00
s.CheckCall(c, `
set -x -e
if sudo system-docker pull busybox; then
exit 1
else
exit 0
fi`)
}