spiegel_podman/test/e2e
Paul Holzinger a158eae7ff
podman run use pod userns even with --pod-id-file
The pod was set after we checked the namespace and the namespace code
only checked the --pod flag but didn't consider --pod-id-file option.
As such fix the check to first set the pod option on the spec then use
that for the namespace. Also make sure we always use an empty default
otherwise it would be impossible in the backend to know if a user
requested a specific userns or not, i.e. even in case of a set
PODMAN_USERNS env a container should still get the userns from the pod
and not use the var in this case. Therefore unset it from the default
cli value.

There are more issues here around --pod-id-file and cli validation that
does not consider the option as conflicting with --userns like --pod
does but I decided to fix the bug at hand and don't try to fix the
entire mess which most likely would take days.

Fixes #22931

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-06-24 17:18:08 +02:00
..
build remote,test: remove .dockerignore which is a symlink 2023-11-03 20:39:02 +05:30
cdi build(deps): bump github.com/container-orchestrated-devices/container-device-interface 2023-02-20 14:51:04 +01:00
config Read kube_generate_type from containers.conf 2023-04-11 09:15:05 -04:00
quadlet Quadlet - use specifier for unescaped values for templated container name 2024-06-19 14:44:21 +03:00
sign e2e: reduce dependency on /tmp for e2e tests 2023-01-26 22:20:15 +09:00
testdata CI: e2e: use distinct ports, not just 5000 2024-02-27 04:30:26 -07:00
attach_test.go e2e: redefine ExitWithError() to require exit code 2024-04-10 06:35:52 -06:00
build_test.go --squash --layers=false should be allowed 2024-06-10 13:24:05 -04:00
checkpoint_image_test.go e2e: redefine ExitWithError() to require exit code 2024-04-10 06:35:52 -06:00
checkpoint_test.go e2e: test container restore in pod by name 2024-06-21 05:52:40 +01:00
cleanup_test.go ExitWithError() - continued 2024-06-06 12:00:16 -06:00
commit_test.go e2e: redefine ExitWithError() to require exit code 2024-04-10 06:35:52 -06:00
common_test.go run e2e test on tmpfs 2024-05-13 17:26:16 +02:00
config.go test/e2e: remove toolbox image 2024-05-03 16:45:51 +02:00
config_amd64.go test/e2e: remove toolbox image 2024-05-03 16:45:51 +02:00
config_arm64.go test/e2e: remove toolbox image 2024-05-03 16:45:51 +02:00
config_ppc64le.go new testimage and systemd-image 2024-02-09 05:26:07 -07:00
container_clone_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
container_create_volume_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
container_iface_name_test.go Debian: switch to crun 2024-05-28 16:34:39 -06:00
container_inspect_test.go podman ps: show exposed ports under PORTS as well 2024-04-10 14:24:23 +02:00
containers_conf_test.go e2e: redefine ExitWithError() to require exit code 2024-04-10 06:35:52 -06:00
cp_test.go e2e: redefine ExitWithError() to require exit code 2024-04-10 06:35:52 -06:00
create_staticip_test.go e2e: redefine ExitWithError() to require exit code 2024-04-10 06:35:52 -06:00
create_staticmac_test.go ExitWithError() - continued 2024-06-06 12:00:16 -06:00
create_test.go test/e2e: fix new error message 2024-05-23 13:29:39 +02:00
diff_test.go added check for registry.IsRemote(). and correct error message. 2024-06-23 15:45:41 +00:00
events_test.go cmd/podman: remove duplicated event ToHumanReadable() 2024-02-22 12:10:57 +01:00
exec_test.go ExitWithError() - continued 2024-06-06 12:00:16 -06:00
exists_test.go ExitWithError() - continued 2024-06-06 12:00:16 -06:00
export_test.go e2e: redefine ExitWithError() to require exit code 2024-04-10 06:35:52 -06:00
farm_test.go e2e: redefine ExitWithError() to require exit code 2024-04-10 06:35:52 -06:00
generate_kube_test.go e2e: redefine ExitWithError() to require exit code 2024-04-10 06:35:52 -06:00
generate_spec_test.go e2e: redefine ExitWithError() to require exit code 2024-04-10 06:35:52 -06:00
generate_systemd_test.go ExitWithError() - continued 2024-06-06 12:00:16 -06:00
healthcheck_run_test.go ExitWithError, continued 2024-06-12 08:48:19 -06:00
history_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
image_scp_test.go ExitWithError() - low-hanging fruit 2024-04-24 05:44:40 -06:00
image_sign_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
images_test.go ExitWithError() - continued 2024-06-06 12:00:16 -06:00
import_test.go ExitWithError() - continue tightening 2024-05-07 18:57:43 -06:00
info_test.go ExitWithError() - continued 2024-06-06 12:00:16 -06:00
init_test.go ExitWithError() - continued 2024-06-06 12:00:16 -06:00
inspect_test.go ExitWithError() - continue tightening 2024-05-07 18:57:43 -06:00
kill_test.go ExitWithError() - low-hanging fruit 2024-04-24 05:44:40 -06:00
libpod_suite_remote_test.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
libpod_suite_test.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
load_test.go ExitWithError() - low-hanging fruit 2024-04-24 05:44:40 -06:00
login_logout_test.go ExitWithError() - more low-hanging fruit 2024-04-24 07:11:40 -06:00
logs_test.go ExitWithError() - yet more low-hanging fruit 2024-04-24 09:04:50 -06:00
manifest_test.go ExitWithError, continued 2024-06-12 08:48:19 -06:00
mount_rootless_test.go test/e2e: podman unshare image mount fix tmpdir leak 2024-04-29 14:16:37 +02:00
mount_test.go ExitWithError() - yet more low-hanging fruit 2024-04-24 09:04:50 -06:00
negative_test.go ExitWithError() - yet more low-hanging fruit 2024-04-24 09:04:50 -06:00
network_connect_disconnect_test.go ExitWithError() - continue tightening 2024-05-07 18:57:43 -06:00
network_create_test.go ExitWithError() - continue tightening 2024-05-07 18:57:43 -06:00
network_test.go ExitWithError, continued 2024-06-12 08:48:19 -06:00
pause_test.go ExitWithError() - rest of the p files 2024-05-08 15:57:47 -06:00
play_build_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
play_kube_test.go ExitWithError, continued 2024-06-12 08:48:19 -06:00
pod_clone_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
pod_create_test.go ExitWithError, continued 2024-06-12 08:48:19 -06:00
pod_infra_container_test.go ExitWithError() - pod_xxx tests 2024-05-02 08:48:24 -06:00
pod_initcontainers_test.go ExitWithError() - more upgrades from Exit() 2024-06-21 06:26:42 -06:00
pod_inspect_test.go ExitWithError() - pod_xxx tests 2024-05-02 08:48:24 -06:00
pod_kill_test.go ExitWithError() - pod_xxx tests 2024-05-02 08:48:24 -06:00
pod_pause_test.go ExitWithError() - pod_xxx tests 2024-05-02 08:48:24 -06:00
pod_pod_namespaces_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
pod_prune_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
pod_ps_test.go ExitWithError() - pod_xxx tests 2024-05-02 08:48:24 -06:00
pod_restart_test.go ExitWithError() - more upgrades from Exit() 2024-06-21 06:26:42 -06:00
pod_rm_test.go ExitWithError() - pod_xxx tests 2024-05-02 08:48:24 -06:00
pod_start_test.go ExitWithError() - more upgrades from Exit() 2024-06-21 06:26:42 -06:00
pod_stats_test.go ExitWithError() - rest of the p files 2024-05-08 15:57:47 -06:00
pod_stop_test.go ExitWithError() - more upgrades from Exit() 2024-06-21 06:26:42 -06:00
pod_top_test.go ExitWithError() - more upgrades from Exit() 2024-06-21 06:26:42 -06:00
port_test.go ExitWithError() - rest of the p files 2024-05-08 15:57:47 -06:00
prune_test.go ExitWithError() - rest of the p files 2024-05-08 15:57:47 -06:00
ps_test.go ExitWithError() - rest of the p files 2024-05-08 15:57:47 -06:00
pull_test.go ExitWithError, continued 2024-06-12 08:48:19 -06:00
push_test.go ExitWithError() - rest of the p files 2024-05-08 15:57:47 -06:00
quadlet_test.go Quadlet: Add support for .build files 2024-05-27 16:59:39 +02:00
rename_test.go ExitWithError() - more r files 2024-05-13 07:24:28 -06:00
restart_test.go libpod: do not resuse networking on start 2024-06-07 17:50:28 +02:00
rm_test.go e2e tests: stop littering 2024-04-22 06:43:19 -06:00
rmi_test.go ExitWithError() - rmi_test 2024-05-13 07:24:36 -06:00
run_aardvark_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
run_apparmor_test.go ExitWithError() - more run_xxx tests 2024-05-13 07:23:58 -06:00
run_cgroup_parent_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
run_cleanup_test.go Add a helper for stopping pods and containers in E2E 2024-02-15 09:35:55 -05:00
run_cpu_test.go ExitWithError() - more run_xxx tests 2024-05-13 07:23:58 -06:00
run_device_test.go ExitWithError() - a few that I missed 2024-05-13 13:59:17 -06:00
run_dns_test.go fix(libpod): add newline character to the end of container's hostname file 2024-06-04 15:20:04 +08:00
run_entrypoint_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
run_env_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
run_exit_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
run_memory_test.go ExitWithError() - enforce required exit status & stderr 2024-05-13 13:59:17 -06:00
run_networking_test.go ExitWithError, continued 2024-06-12 08:48:19 -06:00
run_ns_test.go ExitWithError() - more run_xxx tests 2024-05-13 07:23:58 -06:00
run_passwd_test.go ExitWithError() - more run_xxx tests 2024-05-13 07:23:58 -06:00
run_privileged_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
run_restart_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
run_seccomp_test.go test: look at the file base name 2024-05-29 22:21:21 +02:00
run_security_labels_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
run_selinux_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
run_signal_test.go ExitWithError() - more r files 2024-05-13 07:24:28 -06:00
run_staticip_test.go ExitWithError() - a few that I missed 2024-05-13 13:59:17 -06:00
run_test.go Debian: switch to crun 2024-05-28 16:34:39 -06:00
run_transient_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
run_userns_test.go podman run use pod userns even with --pod-id-file 2024-06-24 17:18:08 +02:00
run_volume_test.go Only stop chowning volumes once they're not empty 2024-05-22 17:47:01 -04:00
run_working_dir_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
runlabel_test.go ExitWithError() - a few that I missed 2024-05-13 13:59:17 -06:00
save_test.go ExitWithError() - s files 2024-05-13 07:24:06 -06:00
search_test.go ExitWithError() - s files 2024-05-13 07:24:06 -06:00
secret_test.go ExitWithError() - s files 2024-05-13 07:24:06 -06:00
start_test.go ExitWithError() - enforce required exit status & stderr 2024-05-13 13:59:17 -06:00
stats_test.go Fail earlier when no containers exist in stats 2024-05-29 06:38:56 -04:00
stop_test.go e2e tests: stop littering 2024-04-22 06:43:19 -06:00
system_connection_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
system_df_test.go ExitWithError() - s files 2024-05-13 07:24:06 -06:00
system_dial_stdio_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
system_reset_test.go Use stop timeout of zero for system reset 2024-03-01 10:51:58 -06:00
system_service_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
systemd_activate_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
systemd_test.go CI: Bump VMs to 2024-03-28 2024-03-28 08:35:29 -06:00
tag_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
toolbox_test.go Debian: switch to crun 2024-05-28 16:34:39 -06:00
top_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
tree_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
trust_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
unshare_test.go Vendor latest c/common and fix tests 2024-02-29 12:16:51 -05:00
untag_test.go ExitWithError, continued 2024-06-12 08:48:19 -06:00
update_test.go Debian: switch to crun 2024-05-28 16:34:39 -06:00
version_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
volume_create_test.go ExitWithError() - v files 2024-05-06 08:42:48 -06:00
volume_exists_test.go ExitWithError, continued 2024-06-12 08:48:19 -06:00
volume_inspect_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
volume_ls_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
volume_plugin_test.go ExitWithError() - v files 2024-05-06 08:42:48 -06:00
volume_prune_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
volume_rm_test.go Return StatusNotFound when multiple volumes matching occurs 2024-05-15 06:21:14 -04:00
wait_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00