Files
OpenShell/e2e/rust/e2e-podman-rootless.sh
Evan Lezar 5f9bf9ce52 test(e2e): run rootless podman on ubuntu host (#2119)
* test(e2e): run rootless podman on ubuntu host

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* test(e2e): probe rootless capability behavior

Signed-off-by: Evan Lezar <elezar@nvidia.com>

* test(e2e): make capability probe observational

Signed-off-by: Evan Lezar <elezar@nvidia.com>

---------

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2026-07-02 14:53:26 -05:00

20 lines
700 B
Bash
Executable File

#!/usr/bin/env bash
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# Run the Podman e2e suite and verify rootless mode.
#
# Identical to e2e-podman.sh but fails fast if Podman is not running
# rootless. Use this to explicitly validate the rootless networking
# path (pasta, host-gateway, bind address).
set -euo pipefail
rootless="$(podman info --format '{{.Host.Security.Rootless}}' 2>/dev/null || true)"
if [ "${rootless}" != "true" ]; then
echo "ERROR: podman is not running rootless; expected true, got '${rootless:-<empty>}'" >&2
exit 2
fi
exec "$(dirname "${BASH_SOURCE[0]}")/e2e-podman.sh"