Skip to content

Commit

Permalink
[Storage] Live tests - Wait for RBAC replication. (Azure#17385)
Browse files Browse the repository at this point in the history
It may take up to 5 minutes for RBAC (AAD) role assignments to replicate. This makes live tests flaky.
The short term solution is to add "sleep" after test resources provisioning.

Long term solution to be found here Azure#17384
  • Loading branch information
kasobol-msft authored and annelo-msft committed Feb 17, 2021
1 parent 1f50d8f commit b66b4b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/storage/test-resources-post.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,7 @@ $content | Set-Content $TestConfigurationPath
Write-Verbose "Setting AZ_STORAGE_CONFIG_PATH environment variable used by Storage Tests"
# https://github.com/microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md#logging-commands
Write-Host "##vso[task.setvariable variable=AZ_STORAGE_CONFIG_PATH]$TestConfigurationPath"

# Wait until RBAC replicates. It has 5min SLA. https://github.com/Azure/azure-sdk-for-net/issues/17384 to find better solution.
Write-Verbose "Sleeping for 90 seconds to let RBAC replicate"
Start-Sleep -s 90

0 comments on commit b66b4b5

Please sign in to comment.