From 0d780a7c3d0e294e565ca2cb4123fcfb22583270 Mon Sep 17 00:00:00 2001 From: Seif Bassem <38246040+sebassem@users.noreply.github.com> Date: Thu, 11 Jan 2024 11:14:43 +0200 Subject: [PATCH] Increase sleep time for role assignment consistency --- tests/pester/full.tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pester/full.tests.ps1 b/tests/pester/full.tests.ps1 index e241199..d6d7273 100644 --- a/tests/pester/full.tests.ps1 +++ b/tests/pester/full.tests.ps1 @@ -68,7 +68,7 @@ Describe "Bicep Landing Zone (Sub) Vending Tests" { $roleAssignment = Get-AzRoleAssignment -Scope "/subscriptions/$subId" -RoleDefinitionName "Reader" -ObjectId "7eca0dca-6701-46f1-b7b6-8b424dab50b3" if ($null -eq $roleAssignment) { Write-Host "Waiting for Subscription Role Assignments to be eventually consistent... Iteration: $($iterationCount)" -ForegroundColor Yellow - Start-Sleep -Seconds 40 + Start-Sleep -Seconds 45 $iterationCount++ } } until ( @@ -86,7 +86,7 @@ Describe "Bicep Landing Zone (Sub) Vending Tests" { $roleAssignment = Get-AzRoleAssignment -Scope "/subscriptions/$subId/resourceGroups/rsg-$location-net-hs-pr-$prNumber" -RoleDefinitionName "Network Contributor" -ObjectId "7eca0dca-6701-46f1-b7b6-8b424dab50b3" -ErrorAction SilentlyContinue if ($null -eq $roleAssignment) { Write-Host "Waiting for Resource Group Role Assignments to be eventually consistent... Iteration: $($iterationCount)" -ForegroundColor Yellow - Start-Sleep -Seconds 40 + Start-Sleep -Seconds 45 $iterationCount++ } } until (