-
Task
-
Resolution: Done
-
Major
-
2.8.0.GA
-
False
-
False
-
Undefined
-
Today, the login to the DevSandbox cluster using
oc login -u *** -p *** <url>
is forbiden.
We need to
a) find another approach to get the OC token (to be able to generate keycloak token for CRW user easily)
Currently, if we want to use common users, it seems the only way is to use UI, as the OC token is expiring within 24 hours. The next way is to use service accounts for our periodic tests.
or
b) to rewrite our test logic to be able to obtain keycloak token without OC token.
It would require bigger changes in our test logic and can take more time to implement&test properly. On the other hand, we still have a bash script, that went via UI login flow using curls and redirects (from the ages of Hosted Che), so we could probably reuse that with minor changes. But it would still require not trivial changes in the test code itself.
Related issue: https://issues.redhat.com/browse/OHSS-4179