mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-19 00:41:31 +00:00
Update Playwright, improve E2E test reliability, add scripts to deploy test resources (#1857)
This commit is contained in:
committed by
GitHub
parent
736731474f
commit
417ef899f0
22
test/scripts/check-test-accounts.ps1
Normal file
22
test/scripts/check-test-accounts.ps1
Normal file
@@ -0,0 +1,22 @@
|
||||
Write-Host "Your test account configuration:"
|
||||
|
||||
Import-Module "Az.Accounts" -Scope Local
|
||||
Import-Module "Az.Resources" -Scope Local
|
||||
|
||||
Get-ChildItem env:\DE_TEST_* | ForEach-Object {
|
||||
if ($_.Name -eq "DE_TEST_SUBSCRIPTION_ID") {
|
||||
$AzSubscription = Get-AzSubscription -SubscriptionId $_.Value -ErrorAction SilentlyContinue | Select-Object -First 1
|
||||
if (-not $AzSubscription) {
|
||||
Write-Warning "The subscription '$($_.Value)' could not be found."
|
||||
}
|
||||
Write-Host "* $($_.Name): $($_.Value) ($($AzSubscription.Name))"
|
||||
} elseif ($_.Name -eq "DE_TEST_RESOURCE_GROUP") {
|
||||
$AzResourceGroup = Get-AzResourceGroup -Name $_.Value -ErrorAction SilentlyContinue
|
||||
if (-not $AzResourceGroup) {
|
||||
Write-Warning "The resource group '$($_.Value)' could not be found."
|
||||
}
|
||||
Write-Host "* $($_.Name): $($_.Value) (Confirmed)"
|
||||
} else {
|
||||
Write-Host "* $($_.Name): $($_.Value)"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user