Skip to content

Commit 60b3b87

Browse files
committed
update test
1 parent 965eb8c commit 60b3b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Get-AuthorizationHeader.Tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ InModuleScope cosmos-db {
3030
It "Returns the correct signature hashed with the master key" {
3131
$result = Get-AuthorizationHeader -ResourceGroup $MOCK_RG -SubscriptionId $MOCK_SUB -Database $MOCK_DB -Verb $MOCK_VERB -ResourceType $MOCK_RESOURCE_TYPE -ResourceUrl $MOCK_RESOURCE_URL -Now $MOCK_NOW
3232

33-
$expectedSignature = "$MOCK_VERB`n$MOCK_RESOURCE_TYPE`n$MOCK_RESOURCE_URL`n$MOCK_NOW`n`n".ToLower()
33+
$expectedSignature = "$($MOCK_VERB.ToLower())`n$($MOCK_RESOURCE_TYPE.ToLower())`n$MOCK_RESOURCE_URL`n$($MOCK_NOW.ToLower())`n`n"
3434

3535
$hasher = New-Object System.Security.Cryptography.HMACSHA256 -Property @{ Key = $MOCK_MASTER_KEY_BYTES }
3636
$sigBinary=[System.Text.Encoding]::UTF8.GetBytes($expectedSignature)

0 commit comments

Comments
 (0)