diff options
author | Toshiki Sonoda <sonoda.toshiki@fujitsu.com> | 2022-09-07 09:35:20 +0900 |
---|---|---|
committer | Toshiki Sonoda <sonoda.toshiki@fujitsu.com> | 2022-09-07 09:46:31 +0900 |
commit | f6e3cfa538935c508e31fc7a12138d0805c02d9b (patch) | |
tree | 0ecc8cd8fe88b57331b06e631a822feae45520ab /test | |
parent | ea3e7ef0733dfc010606fdc8fc631e1d17866349 (diff) | |
download | podman-f6e3cfa538935c508e31fc7a12138d0805c02d9b.tar.gz podman-f6e3cfa538935c508e31fc7a12138d0805c02d9b.tar.bz2 podman-f6e3cfa538935c508e31fc7a12138d0805c02d9b.zip |
system tests: fix systemd tests in proxy environment
Under proxy environment, we need to add
proxy environment variables.
Related to: #15639
Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/system/250-systemd.bats | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats index dd1a0f05a..b449e49d8 100644 --- a/test/system/250-systemd.bats +++ b/test/system/250-systemd.bats @@ -33,7 +33,11 @@ function teardown() { # Helper to start a systemd service running a container function service_setup() { - run_podman generate systemd --new $cname + run_podman generate systemd \ + -e http_proxy -e HTTP_PROXY \ + -e https_proxy -e HTTPS_PROXY \ + -e no_proxy -e NO_PROXY \ + --new $cname echo "$output" > "$UNIT_FILE" run_podman rm $cname |