Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sebassem committed Oct 12, 2023
1 parent fd04f6b commit 586b400
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/pester/full.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ Describe "Bicep Landing Zone (Sub) Vending Tests" {
do {
$roleAssignment = Get-AzRoleAssignment -Scope "/subscriptions/$subId" -RoleDefinitionName "Reader" -ObjectId "7eca0dca-6701-46f1-b7b6-8b424dab50b5" -ErrorAction SilentlyContinue
Write-Host "Role assignment iteration $iterationCount : $roleAssignment"
$test = Get-AzRoleAssignment -Scope "/subscriptions/$subId" -RoleDefinitionName "Reader" | Where-Object {$_.ObjectId -eq "7eca0dca-6701-46f1-b7b6-8b424dab50b5"}
Write-Host "Role assignment test $test"
if ($null -eq $roleAssignment) {
Write-Host "Waiting for Subscription Role Assignments to be eventually consistent... Iteration: $($iterationCount)" -ForegroundColor Yellow
Start-Sleep -Seconds 15
Expand Down

0 comments on commit 586b400

Please sign in to comment.