From 9e21d5e1b31eeb9dc5bed0e7a5e0dd2a190413fb Mon Sep 17 00:00:00 2001 From: Jakub Sliacan Date: Thu, 19 Oct 2023 10:32:02 +0200 Subject: [PATCH] integration: use host-network-access for non-linux Without enabling host-network-access config option, crc does not start successfully under user network mode behind a proxy that is running on the same host, if the host is a MacOS. If it is Windows or Linux, there seem to be no issues. --- test/integration/proxy_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/proxy_test.go b/test/integration/proxy_test.go index 503c556ea8..277288a272 100644 --- a/test/integration/proxy_test.go +++ b/test/integration/proxy_test.go @@ -53,6 +53,9 @@ var _ = Describe("", Serial, Ordered, Label("openshift-preset", "goproxy"), func Expect(RunCRCExpectSuccess("config", "set", "https-proxy", httpsProxy), ContainSubstring("Successfully configured https-proxy")) Expect(RunCRCExpectSuccess("config", "set", "no-proxy", noProxy), ContainSubstring("Successfully configured no-proxy")) Expect(RunCRCExpectSuccess("config", "set", "proxy-ca-file", util.CACertTempLocation), ContainSubstring("Successfully configured proxy-ca-file")) + if runtime.GOOS != "linux" { + Expect(RunCRCExpectSuccess("config", "set", "host-network-access", "true"), ContainSubstring("Changes to configuration property 'host-network-access' are only applied during 'crc setup'")) + } }) It("setup CRC", func() {