Commit 233b9ee
Use https proxy for redirected image downloads
get_urllib_opener only set an http proxy from TEST_HTTP_PROXY. Image
downloads start on http://download.cirros-cloud.net but the server now
redirects to https://github.com, and with an http-only ProxyHandler the
https request bypasses the proxy and connects directly. Where external
access is only reachable through a proxy this times out.
Also set an https proxy from TEST_HTTPS_PROXY (falling back to
TEST_HTTP_PROXY) so the redirected https request goes through the proxy.
Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>1 parent cf36c08 commit 233b9ee
2 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
| 331 | + | |
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2434 | 2434 | | |
2435 | 2435 | | |
2436 | 2436 | | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
2437 | 2442 | | |
2438 | 2443 | | |
2439 | 2444 | | |
2440 | 2445 | | |
2441 | 2446 | | |
2442 | | - | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
2443 | 2450 | | |
| 2451 | + | |
2444 | 2452 | | |
2445 | | - | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
2446 | 2458 | | |
2447 | 2459 | | |
2448 | 2460 | | |
| |||
0 commit comments