@@ -137,14 +137,14 @@ $expected = @(
137
137
" $"
138
138
) -join " `n "
139
139
140
- $actual = Run- VcpkgAndCaptureOutput - TestArgs ($commonArgs + @ (" x-download" , " $downloadsRoot /example3.html" , " --sha512" , " d06b93c883f8126a04589937a884032df031b05518eed9d433efb6447834df2596aebd500d69b8283e5702d988ed49655ae654c1683c7a4ae58bfa6b92f2b73a " , " --url" , " https://localhost:1234/foobar.html" , " --url" , " https://localhost:1235/baz.html" ))
140
+ $actual = Run- VcpkgAndCaptureOutput - TestArgs ($commonArgs + @ (" x-download" , " $downloadsRoot /example3.html" , " --sha512" , " D06B93C883F8126A04589937A884032DF031B05518EED9D433EFB6447834DF2596AEBD500D69B8283E5702D988ED49655AE654C1683C7A4AE58BFA6B92F2B73A " , " --url" , " https://localhost:1234/foobar.html" , " --url" , " https://localhost:1235/baz.html" ))
141
141
Throw - IfNotFailed
142
142
if (-not ($actual -match $expected )) {
143
143
throw " Failure: azurl (no), x-block-origin (no), asset-cache (n/a), download (fail)"
144
144
}
145
145
146
146
# azurl (no), x-block-origin (no), asset-cache (n/a), download (sha-mismatch)
147
- # Expected: Hash check failed message expected/actual sha
147
+ # Expected: Hash check failed message expected/actual sha. Note that the expected sha is changed to lowercase.
148
148
Refresh- TestRoot
149
149
$expected = @ (
150
150
" ^Downloading https://example\.com -> example3\.html" ,
@@ -230,7 +230,7 @@ Throw-IfNotFailed
230
230
231
231
232
232
# azurl (yes), x-block-origin (no), asset-cache (miss), download (fail)
233
- # Expected: Download failure message, asset cache named, nothing about x-block-origin
233
+ # Expected: Download failure message, asset cache named, nothing about x-block-origin. Note that the expected SHA is changed to lowercase.
234
234
Refresh- TestRoot
235
235
$expected = @ (
236
236
" ^Trying to download example3\.html using asset cache file://$assetCacheRegex /[0-9a-z]+" ,
@@ -250,7 +250,7 @@ $expected = @(
250
250
" $"
251
251
) -join " `n "
252
252
253
- $actual = Run- VcpkgAndCaptureOutput - TestArgs ($commonArgs + @ (" x-download" , " $downloadsRoot /example3.html" , " --sha512" , " d06b93c883f8126a04589937a884032df031b05518eed9d433efb6447834df2596aebd500d69b8283e5702d988ed49655ae654c1683c7a4ae58bfa6b92f2b73a " , " --url" , " https://localhost:1234/foobar.html" , " --x-asset-sources=x-azurl,file://$AssetCache ,,readwrite" ))
253
+ $actual = Run- VcpkgAndCaptureOutput - TestArgs ($commonArgs + @ (" x-download" , " $downloadsRoot /example3.html" , " --sha512" , " D06B93C883F8126A04589937A884032DF031B05518EED9D433EFB6447834DF2596AEBD500D69B8283E5702D988ED49655AE654C1683C7A4AE58BFA6B92F2B73A " , " --url" , " https://localhost:1234/foobar.html" , " --x-asset-sources=x-azurl,file://$AssetCache ,,readwrite" ))
254
254
Throw - IfNotFailed
255
255
if (-not ($actual -match $expected )) {
256
256
throw " Failure: azurl (yes), x-block-origin (no), asset-cache (miss), download (fail)"
0 commit comments