Skip to content

Commit

Permalink
integration: use host-network-access for non-linux
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jsliacan authored and praveenkumar committed Oct 25, 2023
1 parent 30748b7 commit 9e21d5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integration/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9e21d5e

Please sign in to comment.