Skip to content

Commit

Permalink
Increase sleep time for role assignment consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
sebassem committed Jan 11, 2024
1 parent 8b3fca6 commit 0d780a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pester/full.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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 (
Expand Down

0 comments on commit 0d780a7

Please sign in to comment.