Skip to content

Commit 5a2cd88

Browse files
committed
Update end-to-end test expected output
1 parent d76569b commit 5a2cd88

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

azure-pipelines/end-to-end-tests-dir/asset-caching.ps1

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ Refresh-TestRoot
113113
$expected = @(
114114
"^Downloading https://localhost:1234/foobar\.html -> example3\.html",
115115
"error: curl operation failed with error code 7 \(Couldn't connect to server\)\.",
116+
"error: Not a transient network error, won't retry download from https://localhost:1234/foobar\.html",
116117
"note: If you are using a proxy, please ensure your proxy settings are correct\.",
117118
"Possible causes are:",
118119
"1\. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable to ``https//address:port``\.",
@@ -135,9 +136,11 @@ if (-not ($actual -match $expected)) {
135136
Refresh-TestRoot
136137
$expected = @(
137138
"^Downloading example3\.html, trying https://localhost:1234/foobar\.html",
138-
"Trying https://localhost:1235/baz\.html",
139139
"error: curl operation failed with error code 7 \(Couldn't connect to server\)\.",
140+
"error: Not a transient network error, won't retry download from https://localhost:1234/foobar\.html",
141+
"Trying https://localhost:1235/baz\.html",
140142
"error: curl operation failed with error code 7 \(Couldn't connect to server\)\.",
143+
"error: Not a transient network error, won't retry download from https://localhost:1235/baz\.html",
141144
"note: If you are using a proxy, please ensure your proxy settings are correct\.",
142145
"Possible causes are:",
143146
"1\. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable to ``https//address:port``\.",
@@ -192,7 +195,8 @@ if (-not ($actual -match $expected)) {
192195
Refresh-TestRoot
193196
$expected = @(
194197
"^Downloading example3\.html, trying https://nonexistent\.example\.com",
195-
"error: curl operation failed with error code 6 \(Couldn't resolve host name\)\. This is a non-transient error, won't retry downloading from https://nonexistent\.example\.com",
198+
"error: curl operation failed with error code 6 \(Couldn't resolve host name\)\.",
199+
"error: Not a transient network error, won't retry download from https://nonexistent\.example\.com",
196200
"Trying https://raw\.githubusercontent\.com/microsoft/vcpkg-tool/1767aaee7b229c609f7ad5cf2f57b6a6cc309fb8/LICENSE\.txt"
197201
"Successfully downloaded example3\.html",
198202
"$"
@@ -226,7 +230,9 @@ $expected = @(
226230
"^Trying to download example3\.html using asset cache file://$assetCacheRegex/[0-9a-z]+",
227231
"Asset cache miss; trying authoritative source https://localhost:1234/foobar\.html",
228232
"error: curl operation failed with error code 37 \(Couldn't read a file:// file\)\.",
233+
"error: Not a transient network error, won't retry download from file://$assetCacheRegex/[0-9a-z]+",
229234
"error: curl operation failed with error code 7 \(Couldn't connect to server\)\.",
235+
"error: Not a transient network error, won't retry download from https://localhost:1234/foobar\.html",
230236
"note: If you are using a proxy, please ensure your proxy settings are correct\.",
231237
"Possible causes are:",
232238
"1\. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable to ``https//address:port``\.",
@@ -286,6 +292,10 @@ $expected = @(
286292
"^Trying to download example3\.html using asset cache file://$assetCacheRegex/[0-9a-z]+",
287293
"Asset cache miss; trying authoritative source https://raw\.githubusercontent\.com/microsoft/vcpkg-tool/1767aaee7b229c609f7ad5cf2f57b6a6cc309fb8/LICENSE\.txt",
288294
"error: curl operation failed with error code 37 \(Couldn't read a file:// file\)\.",
295+
"error: Not a transient network error, won't retry download from file://$assetCacheRegex/[0-9a-z]+",
296+
"[^\n]+example3\.html\.\d+\.part: error: download from https://raw\.githubusercontent\.com/microsoft/vcpkg-tool/1767aaee7b229c609f7ad5cf2f57b6a6cc309fb8/LICENSE\.txt had an unexpected hash",
297+
"note: Expected: d06b93c883f8126a04589937a884032df031b05518eed9d433efb6447834df2596aebd500d69b8283e5702d988ed49655ae654c1683c7a4ae58bfa6b92f2b73b",
298+
"note: Actual : 65077997890f66f6041bb3284bb7b88e27631411ccbc253201ca4e00c4bcc58c0d77edffda4975498797cc10772c7fd68fbeb13cc4ac493a3471a9d49e5b6f24",
289299
"note: If you are using a proxy, please ensure your proxy settings are correct\.",
290300
"Possible causes are:",
291301
"1\. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable to ``https//address:port``\.",
@@ -295,9 +305,6 @@ $expected = @(
295305
"The value set by your proxy might be wrong, or have same ``https://`` prefix issue\.",
296306
"3\. Your proxy's remote server is out of service\.",
297307
"If you believe this is not a temporary download server failure and vcpkg needs to be changed to download this file from a different location, please submit an issue to https://github\.com/Microsoft/vcpkg/issues",
298-
"[^\n]+example3\.html\.\d+\.part: error: download from https://raw\.githubusercontent\.com/microsoft/vcpkg-tool/1767aaee7b229c609f7ad5cf2f57b6a6cc309fb8/LICENSE\.txt had an unexpected hash",
299-
"note: Expected: d06b93c883f8126a04589937a884032df031b05518eed9d433efb6447834df2596aebd500d69b8283e5702d988ed49655ae654c1683c7a4ae58bfa6b92f2b73b",
300-
"note: Actual : 65077997890f66f6041bb3284bb7b88e27631411ccbc253201ca4e00c4bcc58c0d77edffda4975498797cc10772c7fd68fbeb13cc4ac493a3471a9d49e5b6f24",
301308
"$"
302309
) -join "`n"
303310
$actual = Run-VcpkgAndCaptureOutput @commonArgs x-download "$TestDownloadsRoot/example3.html" --sha512 d06b93c883f8126a04589937a884032df031b05518eed9d433efb6447834df2596aebd500d69b8283e5702d988ed49655ae654c1683c7a4ae58bfa6b92f2b73b --url https://raw.githubusercontent.com/microsoft/vcpkg-tool/1767aaee7b229c609f7ad5cf2f57b6a6cc309fb8/LICENSE.txt "--x-asset-sources=x-azurl,file://$AssetCache,,readwrite"
@@ -348,6 +355,7 @@ Refresh-TestRoot
348355
$expected = @(
349356
"^Trying to download example3\.html using asset cache file://$assetCacheRegex/[0-9a-z]+",
350357
"error: curl operation failed with error code 37 \(Couldn't read a file:// file\)\.",
358+
"error: Not a transient network error, won't retry download from file://$assetCacheRegex/[0-9a-z]+",
351359
"error: there were no asset cache hits, and x-block-origin blocks trying the authoritative source https://raw\.githubusercontent\.com/microsoft/vcpkg-tool/1767aaee7b229c609f7ad5cf2f57b6a6cc309fb8/LICENSE\.txt",
352360
"note: or https://alternate\.example\.com",
353361
"note: If you are using a proxy, please ensure your proxy settings are correct\.",

0 commit comments

Comments
 (0)