aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-01-14 07:51:23 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2022-01-14 07:51:23 -0500
commit13917dfab9b67290603e5badcb0ed04e7cde13ca (patch)
tree473f45da211b60c7b69e3f6edd8bcb3764a615c0
parent9686216f9d44e1d6b4fa60a5c0866746d1afa60b (diff)
downloadpodman-13917dfab9b67290603e5badcb0ed04e7cde13ca.tar.gz
podman-13917dfab9b67290603e5badcb0ed04e7cde13ca.tar.bz2
podman-13917dfab9b67290603e5badcb0ed04e7cde13ca.zip
test/system: podman run update /etc/hosts
This test case is used for covering rhbz#1902979. Signed-off-by: Alex Jia <ajia@redhat.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
-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