spiegel_podman/test/e2e
Valentin Rothberg d856e87f40 events endpoint: fix panic and race condition
Fix a potential panic in the events endpoint when parsing the filters
parameter.  Values of the filters map might be empty, so we need to
account for that instead of uncondtitionally accessing the first item.

Also apply a similar for race conditions as done in commit f4a2d25c0f:

	Fix a race that could cause read errors to be masked.  Masking
	such errors is likely to report red herrings since users don't
	see that reading failed for some reasons but that a given event
	could not be found.

Another race was the handler closing event channel, which could lead to
two kinds of panics: double close, send to close channel.  The backend
takes care of that.  However, make sure that the backend stops working
in case the context has been cancelled.

Fixes: #6899
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-07-20 11:37:05 +02:00
..
build fix podman cp can create an extra directory level 2020-06-15 23:56:45 +08:00
config Add --tz flag to create, run 2020-07-02 13:30:59 -04:00
hooks Add hooks support to podman 2018-04-05 14:13:49 +00:00
attach_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
build_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
checkpoint_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
commit_test.go move go module to v2 2020-07-06 15:50:12 +02:00
common_test.go Error on rootless mac and ip addresses 2020-07-15 07:06:58 -05:00
config.go v2 enable remote integration tests 2020-05-19 14:26:19 -05:00
config_amd64.go Fix systemd pid 1 test 2020-07-13 17:11:26 -05:00
config_ppc64le.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
container_inspect_test.go move go module to v2 2020-07-06 15:50:12 +02:00
containers_conf_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
cp_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
create_staticip_test.go Error on rootless mac and ip addresses 2020-07-15 07:06:58 -05:00
create_staticmac_test.go Error on rootless mac and ip addresses 2020-07-15 07:06:58 -05:00
create_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
diff_test.go move go module to v2 2020-07-06 15:50:12 +02:00
events_test.go events endpoint: fix panic and race condition 2020-07-20 11:37:05 +02:00
exec_test.go Correctly print STDOUT on non-terminal remote exec 2020-07-10 17:15:33 -04:00
exists_test.go move go module to v2 2020-07-06 15:50:12 +02:00
export_test.go move go module to v2 2020-07-06 15:50:12 +02:00
generate_kube_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
generate_systemd_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
healthcheck_run_test.go move go module to v2 2020-07-06 15:50:12 +02:00
history_test.go move go module to v2 2020-07-06 15:50:12 +02:00
images_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
import_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
info_test.go version/info: format: allow more json variants 2020-07-10 15:44:17 +02:00
init_test.go move go module to v2 2020-07-06 15:50:12 +02:00
inspect_test.go move go module to v2 2020-07-06 15:50:12 +02:00
kill_test.go move go module to v2 2020-07-06 15:50:12 +02:00
libpod_suite_remote_test.go Error on rootless mac and ip addresses 2020-07-15 07:06:58 -05:00
libpod_suite_test.go Error on rootless mac and ip addresses 2020-07-15 07:06:58 -05:00
libpod_suite_varlink_test.go move go module to v2 2020-07-06 15:50:12 +02:00
load_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
login_logout_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
logs_test.go logs: enable e2e tests 2020-07-09 15:18:15 +02:00
manifest_test.go move go module to v2 2020-07-06 15:50:12 +02:00
mount_test.go Merge pull request #6570 from rhatdan/remote 2020-07-06 17:00:19 -04:00
namespace_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
negative_test.go move go module to v2 2020-07-06 15:50:12 +02:00
network_create_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
network_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
pause_test.go move go module to v2 2020-07-06 15:50:12 +02:00
play_kube_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
pod_create_test.go Error on rootless mac and ip addresses 2020-07-15 07:06:58 -05:00
pod_infra_container_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
pod_inspect_test.go Fix lint 2020-07-14 13:24:12 -04:00
pod_kill_test.go move go module to v2 2020-07-06 15:50:12 +02:00
pod_pause_test.go move go module to v2 2020-07-06 15:50:12 +02:00
pod_pod_namespaces.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
pod_prune_test.go move go module to v2 2020-07-06 15:50:12 +02:00
pod_ps_test.go move go module to v2 2020-07-06 15:50:12 +02:00
pod_restart_test.go move go module to v2 2020-07-06 15:50:12 +02:00
pod_rm_test.go move go module to v2 2020-07-06 15:50:12 +02:00
pod_start_test.go move go module to v2 2020-07-06 15:50:12 +02:00
pod_stats_test.go Vendor in new version of Buildah 2020-07-09 11:02:28 -04:00
pod_stop_test.go move go module to v2 2020-07-06 15:50:12 +02:00
pod_top_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
port_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
prune_test.go move go module to v2 2020-07-06 15:50:12 +02:00
ps_test.go Merge pull request #6864 from vrothberg/v2-module 2020-07-06 10:58:38 -04:00
pull_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
push_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
restart_test.go move go module to v2 2020-07-06 15:50:12 +02:00
rm_test.go move go module to v2 2020-07-06 15:50:12 +02:00
rmi_test.go move go module to v2 2020-07-06 15:50:12 +02:00
run_cgroup_parent_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_cleanup_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_cpu_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_device_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_dns_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_entrypoint_test.go Fix handling of entrypoint 2020-07-14 13:10:03 -04:00
run_env_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_exit_test.go move go module to v2 2020-07-06 15:50:12 +02:00
run_memory_test.go Vendor in new version of Buildah 2020-07-09 11:02:28 -04:00
run_networking_test.go Merge pull request #6965 from giuseppe/followup-pr6324 2020-07-17 04:44:49 -04:00
run_ns_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_passwd_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_privileged_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_restart_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_seccomp.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_security_labels.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_selinux_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_signal_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_staticip_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
run_test.go Pids-limit should only be set if the user set it 2020-07-10 12:46:16 -04:00
run_userns_test.go Add username to /etc/passwd inside of container if --userns keep-id 2020-07-07 08:34:31 -04:00
run_volume_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
runlabel_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
save_test.go move go module to v2 2020-07-06 15:50:12 +02:00
search_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
start_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
stats_test.go Vendor in new version of Buildah 2020-07-09 11:02:28 -04:00
stop_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
system_df_test.go Fix systemd pid 1 test 2020-07-13 17:11:26 -05:00
system_reset_test.go move go module to v2 2020-07-06 15:50:12 +02:00
systemd_test.go Add SystemdMode to inspect for containers 2020-07-14 13:21:05 -04:00
tag_test.go move go module to v2 2020-07-06 15:50:12 +02:00
test.yaml Add support for RunAsUser and RunAsGroup 2019-11-06 10:35:37 -05:00
top_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
tree_test.go move go module to v2 2020-07-06 15:50:12 +02:00
trust_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
unshare_test.go move go module to v2 2020-07-06 15:50:12 +02:00
untag_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
version_test.go version/info: format: allow more json variants 2020-07-10 15:44:17 +02:00
volume_create_test.go move go module to v2 2020-07-06 15:50:12 +02:00
volume_inspect_test.go move go module to v2 2020-07-06 15:50:12 +02:00
volume_ls_test.go move go module to v2 2020-07-06 15:50:12 +02:00
volume_prune_test.go Change buildtag for remoteclient to remote for testing 2020-07-06 15:22:24 -04:00
volume_rm_test.go move go module to v2 2020-07-06 15:50:12 +02:00
wait_test.go move go module to v2 2020-07-06 15:50:12 +02:00