mirror of
https://github.com/containers/podman.git
synced 2025-12-11 01:11:30 +08:00
system tests: fix some tests in proxy environment
Some system tests in `255-auto-update.bats` and `500-networking.bats` fail under proxy environment. This PR fixes this problem. Signed-off-by: Tsubasa Watanabe <w.tsubasa@fujitsu.com>
This commit is contained in:
@@ -375,6 +375,12 @@ After=network-online.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/podman auto-update
|
ExecStart=/usr/bin/podman auto-update
|
||||||
|
Environment="http_proxy=${http_proxy}"
|
||||||
|
Environment="HTTP_PROXY=${HTTP_PROXY}"
|
||||||
|
Environment="https_proxy=${https_proxy}"
|
||||||
|
Environment="HTTPS_PROXY=${HTTPS_PROXY}"
|
||||||
|
Environment="no_proxy=${no_proxy}"
|
||||||
|
Environment="NO_PROXY=${NO_PROXY}"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|||||||
@@ -61,9 +61,9 @@ load helpers
|
|||||||
is "$output" "$random_2" "curl 127.0.0.1:/index2.txt"
|
is "$output" "$random_2" "curl 127.0.0.1:/index2.txt"
|
||||||
|
|
||||||
# Verify http contents: wget from a second container
|
# Verify http contents: wget from a second container
|
||||||
run_podman run --rm --net=host $IMAGE wget -qO - $SERVER/index.txt
|
run_podman run --rm --net=host --http-proxy=false $IMAGE wget -qO - $SERVER/index.txt
|
||||||
is "$output" "$random_1" "podman wget /index.txt"
|
is "$output" "$random_1" "podman wget /index.txt"
|
||||||
run_podman run --rm --net=host $IMAGE wget -qO - $SERVER/index2.txt
|
run_podman run --rm --net=host --http-proxy=false $IMAGE wget -qO - $SERVER/index2.txt
|
||||||
is "$output" "$random_2" "podman wget /index2.txt"
|
is "$output" "$random_2" "podman wget /index2.txt"
|
||||||
|
|
||||||
# Tests #4889 - two-argument form of "podman ports" was broken
|
# Tests #4889 - two-argument form of "podman ports" was broken
|
||||||
|
|||||||
Reference in New Issue
Block a user