spiegel_podman/test/e2e
Matthew Heon e0d9404634 Enable detached exec for remote
The biggest obstacle here was cleanup - we needed a way to remove
detached exec sessions after they exited, but there's no way to
tell if an exec session will be attached or detached when it's
created, and that's when we must add the exit command that would
do the removal. The solution was adding a delay to the exit
command (5 minutes), which gives sufficient time for attached
exec sessions to retrieve the exit code of the session after it
exits, but still guarantees that they will be removed, even for
detached sessions. This requires Conmon 2.0.17, which has the new
`--exit-delay` flag.

As part of the exit command rework, we can drop the hack we were
using to clean up exec sessions (remove them as part of inspect).
This is a lot cleaner, and I'm a lot happier about it.

Otherwise, this is just plumbing - we need a bindings call for
detached exec, and that needed to be added to the tunnel mode
backend for entities.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-06-02 15:30:42 -04:00
..
build Fix environment handling from containers.conf 2020-04-02 13:10:08 -04:00
config Properly handle containers.conf devices 2020-05-01 15:00:26 -04:00
hooks Add hooks support to podman 2018-04-05 14:13:49 +00:00
attach_test.go V2 Fix interface nil checks 2020-05-26 10:00:15 -07:00
build_test.go podman: split env variables in env and overrides 2020-05-07 14:16:50 -04:00
checkpoint_test.go checkpoint: change runtime checkpoint support test 2020-04-03 18:00:57 +02:00
commit_test.go govern remote attach and start 2020-05-20 13:02:18 -05:00
common_test.go Add streaming ability to endpoint 2020-05-27 12:16:39 -05:00
config.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
config_amd64.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
config_ppc64le.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
container_inspect_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
containers_conf_test.go Remove skip on containers.conf tests 2020-05-01 15:00:33 -04:00
cp_test.go test: enable cp tests 2020-04-29 15:40:31 +02:00
create_staticip_test.go vendor in containers/common v0.9.4 2020-04-22 06:57:06 -04:00
create_staticmac_test.go test: add tests for --mac-address 2019-11-07 18:38:02 +01:00
create_test.go Merge pull request #6280 from mheon/switch_off_noexec 2020-05-21 16:26:20 +02:00
diff_test.go Add --latest, -l to 'podman diff' 2019-06-21 13:37:04 +02:00
events_test.go Add streaming ability to endpoint 2020-05-27 12:16:39 -05:00
exec_test.go Enable detached exec for remote 2020-06-02 15:30:42 -04:00
exists_test.go V2 Restore exists E2E tests 2020-04-22 09:53:05 -07:00
export_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
generate_kube_test.go spec: fix order for setting rlimits 2020-05-11 13:02:33 +02:00
generate_systemd_test.go Added new flags to 'podman generate systemd' to change the unit name prefix 2020-05-22 18:38:39 +02:00
healthcheck_run_test.go Fix remote integration for healthchecks 2020-05-20 14:43:01 -05:00
history_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
images_test.go turn on remote testing for images. podman-remote build now works. 2020-06-01 12:44:04 -04:00
import_test.go Completely rework --change parsing 2019-12-04 18:55:30 -05:00
info_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
init_test.go enable remote integration tests for init 2020-05-20 15:35:24 -05:00
inspect_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
kill_test.go Test fixes for remote integration 2020-05-20 12:56:38 -05:00
libpod_suite_remote_test.go Attempt to turn on build_without_cgo tests 2020-05-22 12:56:19 -04:00
libpod_suite_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
libpod_suite_varlink_test.go Attempt to turn on build_without_cgo tests 2020-05-22 12:56:19 -04:00
load_test.go enable load integration tests 2020-04-27 10:20:53 -05:00
login_logout_test.go enable login/logut unspecified args 2020-05-07 09:48:13 -04:00
logs_test.go V2 enable remote logs and testing 2020-05-22 07:51:29 -07:00
manifest_test.go remote manifest test 2020-05-21 16:17:39 -04:00
mount_test.go enable rootless mount tests 2020-05-11 13:03:09 +02:00
namespace_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
negative_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
network_create_test.go add provided cni networks to spec gen 2020-05-01 09:20:52 -05:00
network_test.go Testcase added for network commands 2020-05-20 02:53:47 +00:00
pause_test.go Turn on more remote tests 2020-05-21 16:04:31 -04:00
play_kube_test.go spec: fix order for setting rlimits 2020-05-11 13:02:33 +02:00
pod_create_test.go Merge pull request #6313 from sujil02/pod-create-id 2020-05-21 19:27:19 +02:00
pod_infra_container_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
pod_inspect_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
pod_kill_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
pod_pause_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
pod_pod_namespaces.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
pod_prune_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
pod_ps_test.go Add support for format {{.Label}} 2020-06-01 11:54:15 -05:00
pod_restart_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
pod_rm_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
pod_start_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
pod_stats_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
pod_stop_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
pod_top_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
port_test.go Enables port test 2020-05-06 16:06:41 -04:00
prune_test.go Enable system prune test remote client 2020-05-21 06:10:30 -04:00
ps_test.go fix ps --last=N 2020-05-28 14:24:01 +02:00
pull_test.go Fix podman push and podman pull to check for authfile 2020-04-22 14:30:40 -04:00
push_test.go enable the push e2e tests 2020-04-29 14:35:48 +02:00
restart_test.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
rm_test.go Turn on more remote tests 2020-05-21 16:04:31 -04:00
rmi_test.go Enable rmi test 2020-05-21 14:55:34 -04:00
run_cgroup_parent_test.go test: enable cgroup parent tests 2020-04-24 13:05:43 +02:00
run_cleanup_test.go fix unit test to use Expect 2019-09-12 21:01:43 +00:00
run_cpu_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_device_test.go vendor in containers/common v0.9.4 2020-04-22 06:57:06 -04:00
run_dns_test.go Enable these tests 2020-04-26 07:27:41 -04:00
run_entrypoint_test.go test: enable entrypoint tests 2020-04-30 11:33:36 +02:00
run_env_test.go podman: split env variables in env and overrides 2020-05-07 14:16:50 -04:00
run_exit_test.go Get proper exit code when running or starting a container. 2020-05-21 10:49:13 -04:00
run_memory_test.go Fix cgroupsv2 run test, unexpected output 2020-02-25 12:34:26 -05:00
run_networking_test.go test: enable networking test for rootless 2020-05-12 11:31:15 +02:00
run_ns_test.go enable run_ns integration tests 2020-04-26 10:42:40 -05:00
run_passwd_test.go Enable these tests 2020-04-26 07:27:41 -04:00
run_privileged_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_restart_test.go enable run_restart integration tests 2020-04-26 10:44:17 -05:00
run_seccomp.go policy for seccomp-profile selection 2020-01-09 17:57:58 +01:00
run_security_labels.go Allow devs to set labels in container images for default capabilities. 2020-03-02 16:37:32 -05:00
run_selinux_test.go vendor in containers/common v0.9.4 2020-04-22 06:57:06 -04:00
run_signal_test.go enable run_signal integration tests 2020-04-26 10:34:47 -05:00
run_staticip_test.go curb flakes in integration tests 2020-02-26 08:30:28 -06:00
run_test.go test: enable remaining run tests 2020-04-30 11:33:37 +02:00
run_userns_test.go podman: assume user namespace if there are mappings 2020-04-24 15:55:38 +02:00
run_volume_test.go Add support for readonly option to --mount 2020-05-26 16:05:11 -04:00
runlabel_test.go container runlabel 2020-05-07 16:18:39 +02:00
save_test.go Test fixes for remote integration 2020-05-20 12:56:38 -05:00
search_test.go enable search tests 2020-04-29 16:28:18 +02:00
start_test.go Fix podman-remote start tests 2020-05-21 16:46:26 -04:00
stats_test.go fix pod stats flake 2020-05-08 09:05:37 -05:00
stop_test.go Fix podman-remote stop --all to handle not running containers 2020-05-21 15:17:28 -04:00
system_df_test.go v2 system subcommand 2020-05-05 12:24:33 -05:00
system_reset_test.go Removes remote system reset functionality. skip e2e test for remote. 2020-05-22 07:49:55 -04:00
systemd_test.go Reenable systemd E2E tests 2020-05-06 10:33:18 -04:00
tag_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
test.yaml Add support for RunAsUser and RunAsGroup 2019-11-06 10:35:37 -05:00
top_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
tree_test.go speed up rootless tests 2019-07-08 12:31:31 -05:00
trust_test.go v2trust set and show 2020-05-07 09:55:52 -05:00
unshare_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
untag_test.go remote untag test 2020-05-21 11:35:04 -04:00
version_test.go V2 restore podman -v command 2020-04-29 09:15:24 -07:00
volume_create_test.go enable volume integration tests 2020-04-27 16:12:06 -05:00
volume_inspect_test.go enable volume integration tests 2020-04-27 16:12:06 -05:00
volume_ls_test.go enable volume integration tests 2020-04-27 16:12:06 -05:00
volume_prune_test.go And system prune feature for v2. 2020-05-01 13:57:16 -04:00
volume_rm_test.go enable volume integration tests 2020-04-27 16:12:06 -05:00
wait_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00