test/e2e: skip build userns=auto test in remote mode

The --userns=auto flag is not being properly applied when building
in remote mode in v4.4.1. Containers are getting the default rootless
user namespace (65536 IDs) instead of an auto-allocated smaller
namespace with the default size of 1024 IDs.

This requires refactoring the namespace setup ordering which is too
complex to backport cleanly to v4.4.1. Skip this test in remote mode.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
Lokesh Mandvekar 2026-02-06 20:32:32 +05:30
parent c4c07d329c
commit fedda4a758
No known key found for this signature in database
GPG key ID: 1C1EDD7CC7C3A0DD

View file

@ -62,6 +62,7 @@ var _ = Describe("Podman UserNS support", func() {
// causing them to skip hence this is a redundant test for sanity to make sure
// we don't break this feature for podman-remote.
It("podman build with --userns=auto", func() {
SkipIfRemote("--userns=auto not properly applied in remote mode in v4.4.1")
u, err := user.Current()
Expect(err).ToNot(HaveOccurred())
name := u.Username