Merge pull request #15663 from sstosh/fix-proxy-test

system tests: fix systemd tests in proxy environment
This commit is contained in:
OpenShift Merge Robot 2022-09-07 13:19:41 +02:00 committed by GitHub
commit 22fdb8e1fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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