From 9871787513605d86632e6e1073e2f770745fc4ca Mon Sep 17 00:00:00 2001 From: Marcial Rosales Date: Thu, 18 Dec 2025 12:21:48 +0100 Subject: [PATCH 1/2] Merge upstream changes in tanzu To avoid future merge from oss to tanzu (cherry picked from commit 9aff1fb0428181967dbed2dc6ec5ae905dfcb97f) --- selenium/test/oauth/with-idp-initiated/happy-login.js | 10 +++++++--- selenium/test/oauth/with-idp-initiated/unauthorized.js | 9 +++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/selenium/test/oauth/with-idp-initiated/happy-login.js b/selenium/test/oauth/with-idp-initiated/happy-login.js index 6ec05337383..eb639010b99 100644 --- a/selenium/test/oauth/with-idp-initiated/happy-login.js +++ b/selenium/test/oauth/with-idp-initiated/happy-login.js @@ -11,8 +11,12 @@ describe('A user with a JWT token', function () { let overview let captureScreen let fakePortal - + let username + let password + before(async function () { + username = process.env.MGT_CLIENT_ID_FOR_IDP_INITIATED || 'rabbit_idp_user' + password = process.env.MGT_CLIENT_SECRET_FOR_IDP_INITIATED || 'rabbit_idp_user' driver = buildDriver() overview = new OverviewPage(driver) captureScreen = captureScreensFor(driver, __filename) @@ -20,13 +24,13 @@ describe('A user with a JWT token', function () { }) it('can log in presenting the token to the /login URL via fakeportal', async function () { - await fakePortal.goToHome("rabbit_idp_user", "rabbit_idp_user") + await fakePortal.goToHome(username, password) if (!await fakePortal.isLoaded()) { throw new Error('Failed to load fakePortal') } await fakePortal.login() await overview.isLoaded() - assert.equal(await overview.getUser(), 'User rabbit_idp_user') + assert.equal(await overview.getUser(), 'User ' + username) }) after(async function () { diff --git a/selenium/test/oauth/with-idp-initiated/unauthorized.js b/selenium/test/oauth/with-idp-initiated/unauthorized.js index c20ecb15014..5545a94ac1d 100644 --- a/selenium/test/oauth/with-idp-initiated/unauthorized.js +++ b/selenium/test/oauth/with-idp-initiated/unauthorized.js @@ -9,13 +9,18 @@ const FakePortalPage = require('../../pageobjects/FakePortalPage') describe('A user who accesses the /login URL with a token without scopes for the management UI', function () { let driver let captureScreen - + let username + let password + before(async function () { driver = buildDriver() + username = process.env.MGT_UNAUTHORIZED_CLIENT_ID_FOR_IDP_INITIATED || 'producer' + password = process.env.MGT_UNAUTHORIZED_CLIENT_SECRET_FOR_IDP_INITIATED || 'producer_secret' + captureScreen = captureScreensFor(driver, __filename) fakePortal = new FakePortalPage(driver) homePage = new SSOHomePage(driver) - await fakePortal.goToHome('producer', 'producer_secret') + await fakePortal.goToHome(username, password) if (!await fakePortal.isLoaded()) { throw new Error('Failed to load fakePortal') } From bed409e2449ee808a45556b298e6addc08a79640 Mon Sep 17 00:00:00 2001 From: Marcial Rosales Date: Thu, 18 Dec 2025 13:57:13 +0100 Subject: [PATCH 2/2] Explain how to troubleshoot failing tests that depend on UAA (cherry picked from commit a514210e2eacf5d1fef6059f9b0521f1fff05295) --- selenium/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/selenium/README.md b/selenium/README.md index 6bec54a14fa..c667f8ceef1 100644 --- a/selenium/README.md +++ b/selenium/README.md @@ -236,3 +236,8 @@ following command: MOCHA_DOCKER_FILE=\location\of\my\Dockerfile ./run-suites.sh ``` +## Issues deploying UAA + +If you are not able to successfully run any test case that depends on UAA +because UAA fails to start, make sure you are using VZ emulation in your docker +engine. Without VZ emulation, the uaa docker container cannot start.