-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Description
Normalize-Location in ScenarioTest's Common code doesn't return modified location value back.
I've found only one place where this location is used and it doesn't throw an error because in both cases it returns null
Assert-AreEqual (Normalize-Location $vaultLocation) (Normalize-Location $v.Location)
Also I think Normalize-Location could be used in Get-Location. When Get-Location filters locations for resource type it compares strings directly
$location = $resourceTypes.Locations | Where-Object { $_ -eq $preferredLocation }
If $preferredLocation is like westus the comparison would fail because resource type's locations are in human-readable format (West US). Normalizing both parts of comparison would help to avoid this issue.
Metadata
Metadata
Assignees
Labels
No labels