crc-org / crc

CRC is a tool to help you run containers. It manages a local OpenShift 4.x cluster, Microshift or a Podman VM optimized for testing and development purposes
https://crc.dev
Apache License 2.0
1.26k stars 242 forks source link

[QE][BUG] Fixed code for insecure login is not being used #4101

Closed adrianriobo closed 4 months ago

adrianriobo commented 7 months ago

With https://github.com/crc-org/crc/commit/496059091a1c50bcf6172c6302aaabec3f376f22 we introduce a fallback mechanism for oc login when it reports unknown CA for server, but somehow the check for that condition is not being matched, as so when we hit the issue the scenario fails.

<testcase name="Overall cluster health" status="failed" time="1010.846097">
<failure message="Step executing "oc new-project testproj" succeeds: command 'oc new-project testproj', expected to succeed, exited with exit code: 1 Command stdout: Command stderr: Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority "/>

Need to fix it