Repository navigation
[tests-only][full-ci] test: set up Keycloak users via HTTP instead of Web UI - #12930
Merged
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
PrajwolAmatya
force-pushed
the
get-token-with-mfa
branch
11 times, most recently
from
September 14, 2026 06:15
fe73f03 to
f91ba98
Compare
PrajwolAmatya
force-pushed
the
get-token-with-mfa
branch
4 times, most recently
from
September 14, 2026 08:17
1591c45 to
fed0cc8
Compare
PrajwolAmatya
force-pushed
the
get-token-with-mfa
branch
from
September 14, 2026 09:12
fed0cc8 to
b43b173
Compare
Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
PrajwolAmatya
force-pushed
the
get-token-with-mfa
branch
from
September 16, 2026 03:47
b43b173 to
9e80797
Compare
PrajwolAmatya
marked this pull request as ready for review
September 16, 2026 04:15
PrajwolAmatya
requested review from
anon-pradip,
ishabaral,
kavitagautam and
saw-jan
September 16, 2026 04:15
ishabaral
approved these changes
Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
apiVaulttests needs a user logged in with anacr=advanced(MFA step-up) token to request to/vault/graph. This step required headless Chromium (Playwright): log in via the web UI, switch to vault mode, scrape the TOTP QR code, and extract the token from browser storage. This step would only work for user rolesAdminandSpace Admin. In addition to that, the webUI steps takes more time to complete this flow and tests sometimes failed when decoding the QR code.Key Changes:
KeycloakHelper::getCode()now drives the whole login, including MFA, purely over HTTP.authenticateKeycloakUserIfNeededfunction tosetUpKeycloakUserInOcisvault.feature,And user "<user>" has logged in via web UIis replaced withAnd user "<user>" has been set up in oCIS, wihch uses the functionsetUpKeycloakUserInOcisto setup the user in oCIS.WebUIHelper.phpfile and Playwright dependency.With the changes the flaky test failure in
apiVaultwith errorFailed to base64-decode QR image datashould be gone as we now don't rely on QR scanning step. Likewise, the test run time is reduced with the removal of web UI steps.Types of changes
Checklist: