Skip to content

Commit

Permalink
Merge pull request containers#12858 from rhatdan/hosts
Browse files Browse the repository at this point in the history
test/system: podman run update /etc/hosts
  • Loading branch information
openshift-merge-robot authored Jan 14, 2022
2 parents ec2b213 + 13917df commit ecf818a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/system/030-run.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ecf818a

Please sign in to comment.