We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dc737e6 + 2d1b8cf commit 7b7d4efCopy full SHA for 7b7d4ef
test/extended/csrapprover/csrapprover.go
@@ -68,9 +68,9 @@ var _ = g.Describe("[sig-cluster-lifecycle]", func() {
68
internalAPI.Path = "/config/master"
69
70
// we should not be able to reach the endpoint
71
- curlOutput, err := pod.Exec(fmt.Sprintf("curl -k %s", internalAPI.String()))
+ curlOutput, err := pod.Exec(fmt.Sprintf("curl --connect-timeout 5 -k %s", internalAPI.String()))
72
o.Expect(err).To(o.HaveOccurred())
73
- o.Expect(curlOutput).To(o.ContainSubstring("Connection refused"))
+ o.Expect(curlOutput).To(o.Or(o.ContainSubstring("Connection refused"), o.ContainSubstring("Connection timed out")))
74
})
75
76
g.It("CSRs from machines that are not recognized by the cloud provider are not approved [apigroup:config.openshift.io]", func() {
0 commit comments