From d9b67a8047002422c002c33c4e7a732fe1a8095f Mon Sep 17 00:00:00 2001 From: Alexander Holstrup <117829001+aholstrup1@users.noreply.github.com> Date: Thu, 19 Jun 2025 15:58:16 +0200 Subject: [PATCH 1/3] Refresh E2E access token more aggresively --- e2eTests/e2eTestHelper.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2eTests/e2eTestHelper.psm1 b/e2eTests/e2eTestHelper.psm1 index a0e8a9336..042fdca64 100644 --- a/e2eTests/e2eTestHelper.psm1 +++ b/e2eTests/e2eTestHelper.psm1 @@ -68,7 +68,7 @@ function RefreshToken { } # Check if the last token refresh was more than 30 minutes ago - if ((-not $force) -and ($script:lastTokenRefresh -ne 0) -and (([DateTime]::Now - $script:lastTokenRefresh).TotalMinutes -lt 30)) { + if ((-not $force) -and ($script:lastTokenRefresh -ne 0) -and (([DateTime]::Now - $script:lastTokenRefresh).TotalMinutes -lt 10)) { return } From 083210d476077aea6bef263c66d66da0f18bb023 Mon Sep 17 00:00:00 2001 From: Alexander Holstrup <117829001+aholstrup1@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:01:28 +0200 Subject: [PATCH 2/3] Update e2eTests/e2eTestHelper.psm1 Co-authored-by: Maria Zhelezova <43066499+mazhelez@users.noreply.github.com> --- e2eTests/e2eTestHelper.psm1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2eTests/e2eTestHelper.psm1 b/e2eTests/e2eTestHelper.psm1 index 042fdca64..d4a83ee52 100644 --- a/e2eTests/e2eTestHelper.psm1 +++ b/e2eTests/e2eTestHelper.psm1 @@ -67,7 +67,8 @@ function RefreshToken { throw "Token not set." } - # Check if the last token refresh was more than 30 minutes ago + # Check if the last token refresh was more than 10 minutes ago + if ((-not $force) -and ($script:lastTokenRefresh -ne 0) -and (([DateTime]::Now - $script:lastTokenRefresh).TotalMinutes -lt 10)) { return } From 172ad4d80625aa1184048e39c2af8d29923bdda7 Mon Sep 17 00:00:00 2001 From: Alexander Holstrup <117829001+aholstrup1@users.noreply.github.com> Date: Fri, 20 Jun 2025 08:16:01 +0200 Subject: [PATCH 3/3] Update signature verification --- e2eTests/scenarios/FederatedCredentials/runtest.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2eTests/scenarios/FederatedCredentials/runtest.ps1 b/e2eTests/scenarios/FederatedCredentials/runtest.ps1 index 07c7fd247..3aad793fe 100644 --- a/e2eTests/scenarios/FederatedCredentials/runtest.ps1 +++ b/e2eTests/scenarios/FederatedCredentials/runtest.ps1 @@ -137,7 +137,7 @@ $noOfApps = 0 Get-Item "signedApps/Main App-main-Apps-$($newVersion.Major).$($newVersion.Minor).$($newVersion.Build).*/*.app" | ForEach-Object { $appFile = $_.FullName Write-Host "Check that $appFile was signed" - [System.Text.Encoding]::Ascii.GetString([System.IO.File]::ReadAllBytes($appFile)).indexof('DigiCert Trusted G4 RSA4096 SHA256 TimeStamping CA') | Should -BeGreaterThan -1 + [System.Text.Encoding]::Ascii.GetString([System.IO.File]::ReadAllBytes($appFile)).indexof('DigiCert Trusted G4 TimeStamping RSA4096 SHA') | Should -BeGreaterThan -1 $noOfApps++ } # Check that two apps were signed