Skip to content

Normalize-Location doesn't return any value #79

@anton-evseev

Description

@anton-evseev

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions