Skip to content

Commit 3fdc7b7

Browse files
authored
[Storage] Live tests - Wait for RBAC replication. (#17385)
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 #17384
1 parent caef830 commit 3fdc7b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk/storage/test-resources-post.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,7 @@ $content | Set-Content $TestConfigurationPath
172172
Write-Verbose "Setting AZ_STORAGE_CONFIG_PATH environment variable used by Storage Tests"
173173
# https://github.com/microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md#logging-commands
174174
Write-Host "##vso[task.setvariable variable=AZ_STORAGE_CONFIG_PATH]$TestConfigurationPath"
175+
176+
# Wait until RBAC replicates. It has 5min SLA. https://github.com/Azure/azure-sdk-for-net/issues/17384 to find better solution.
177+
Write-Verbose "Sleeping for 90 seconds to let RBAC replicate"
178+
Start-Sleep -s 90

0 commit comments

Comments
 (0)