summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-01-14 18:48:17 +0100
committerGitHub <noreply@github.com>2022-01-14 18:48:17 +0100
commitecf818a1cddd5e3e62b4a2a761d44b2be336317e (patch)
tree966e7116d05f1fd02a70b5ee8799ea634c905666 /test
parentec2b213ab611cb197e86c45d03fb10af667ad95c (diff)
parent13917dfab9b67290603e5badcb0ed04e7cde13ca (diff)
downloadpodman-ecf818a1cddd5e3e62b4a2a761d44b2be336317e.tar.gz
podman-ecf818a1cddd5e3e62b4a2a761d44b2be336317e.tar.bz2
podman-ecf818a1cddd5e3e62b4a2a761d44b2be336317e.zip
Merge pull request #12858 from rhatdan/hosts
test/system: podman run update /etc/hosts
Diffstat (limited to 'test')
-rw-r--r--test/system/030-run.bats7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats
index afcda3d3c..2d5ecab39 100644
--- a/test/system/030-run.bats
+++ b/test/system/030-run.bats
@@ -818,4 +818,11 @@ EOF
is "$output" ".*The --kernel-memory flag is no longer supported. This flag is a noop." "warn on use of --kernel-memory"
}
+
+# rhbz#1902979 : podman run fails to update /etc/hosts when --uidmap is provided
+@test "podman run update /etc/hosts" {
+ HOST=$(random_string 25)
+ run_podman run --uidmap 0:10001:10002 --rm --hostname ${HOST} $IMAGE grep ${HOST} /etc/hosts
+ is "${lines[0]}" ".*${HOST}.*"
+}
# vim: filetype=sh