Azure / autorest.powershell

AutoRest PowerShell Generator
MIT License
112 stars 82 forks source link

Tests expect case-sensitive matching http request in recordings #607

Open viananth opened 4 years ago

viananth commented 4 years ago

If the test recording has a matching request, but one character is in a different case, the match fails and test complains that the matching http request was not found. The test should look for recordings with case-insensitivity.

For example, the below requests are exactly the same except the resource group name in one is "system.redmond" and other is "System.redmond" where s is in different cases.

Get-AzsBackup+[NoContext]+TestListBackups+$GET+https://management.azure.com/subscriptions/05101DAF-F50D-4436-A2AC-495E5C4864C2/resourceGroups/system.redmond/providers/Microsoft.Backup.Admin/backupLocations/redmond/backups?api-version=2018-09-01+1 Get-AzsBackup+[NoContext]+TestListBackups+$GET+https://management.azure.com/subscriptions/05101DAF-F50D-4436-A2AC-495E5C4864C2/resourceGroups/System.redmond/providers/Microsoft.Backup.Admin/backupLocations/redmond/backups?api-version=2018-09-01+1

bganapa commented 4 years ago

@dolauli please triage this and assign priority. THis is an issue for azure modules as well