mirror of https://github.com/kubernetes/kops.git
Fix bootstrap script proxy test
This commit is contained in:
parent
23dba06436
commit
dee3ecc530
|
|
@ -52,7 +52,7 @@ func Test_ProxyFunc(t *testing.T) {
|
||||||
t.Fatalf("script cannot be empty")
|
t.Fatalf("script cannot be empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.HasPrefix(script, "echo \"http_proxy=http://example.com:80\" >> /etc/environment") {
|
if !strings.Contains(script, "echo \"http_proxy=http://example.com:80\"") {
|
||||||
t.Fatalf("script not setting http_proxy properly")
|
t.Fatalf("script not setting http_proxy properly")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue