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 8887438 commit da8ec13
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 @@ -65,7 +65,7 @@ Describe "Bicep Landing Zone (Sub) Vending Tests" {
It "Should Have a Role Assignment for an known AAD Group with the Reader role directly upon the Subscription" {
$iterationCount = 0
do {
$roleAssignment = Get-AzRoleAssignment -Scope "/subscriptions/$subId" -ObjectId "7eca0dca-6701-46f1-b7b6-8b424dab50b5" -RoleDefinitionName "Reader" -ErrorAction SilentlyContinue
$roleAssignment = Get-AzRoleAssignment -Scope "/subscriptions/$subId" -RoleDefinitionName "Reader" -ObjectId "7eca0dca-6701-46f1-b7b6-8b424dab50b5" -ErrorAction SilentlyContinue
Write-Host "roleAssignment: $roleAssignment"
if ($null -eq $roleAssignment) {
Write-Host "Waiting for Subscription Role Assignments to be eventually consistent... Iteration: $($iterationCount)" -ForegroundColor Yellow
Expand All @@ -84,7 +84,7 @@ Describe "Bicep Landing Zone (Sub) Vending Tests" {
It "Should Have a Role Assignment for an known AAD Group with the Network Contributor role directly upon the Resource Group" {
$iterationCount = 0
do {
$roleAssignment = Get-AzRoleAssignment -Scope "/subscriptions/$subId/resourceGroups/rsg-$location-net-hs-pr-$prNumber" -ObjectId "7eca0dca-6701-46f1-b7b6-8b424dab50b5" -RoleDefinitionName "Network Contributor" -ErrorAction SilentlyContinue
$roleAssignment = Get-AzRoleAssignment -Scope "/subscriptions/$subId/resourceGroups/rsg-$location-net-hs-pr-$prNumber" -RoleDefinitionName "Network Contributor" -ObjectId "7eca0dca-6701-46f1-b7b6-8b424dab50b5" -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 15
Expand Down

0 comments on commit da8ec13

Please sign in to comment.