summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/podman_run_dns.bats9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/podman_run_dns.bats b/test/podman_run_dns.bats
index bdb99dedd..d37737093 100644
--- a/test/podman_run_dns.bats
+++ b/test/podman_run_dns.bats
@@ -45,3 +45,12 @@ function setup() {
echo "$output"
[ "$status" -eq 0 ]
}
+
+@test "test addition of hostname" {
+ run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run --rm --hostname='foobar' ${ALPINE} cat /etc/hostname | grep foobar"
+ echo "$output"
+ [ "$status" -eq 0 ]
+ run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run --rm --hostname='foobar' ${ALPINE} hostname | grep foobar"
+ echo "$output"
+ [ "$status" -eq 0 ]
+}