spiegel_podman/test/e2e
Valentin Rothberg fc43751e7a kill: wait for the container
Make sure to wait for the container to exit after kill. While the
cleanup process will take care eventually of transitioning the state, we
need to give a guarantee to the user to leave the container in the
expected state once the (kill) command has finished.

The issue could be observed in a flaking test (#16142) where
`podman rm -f -t0` failed because the preceding `podman kill`
left the container in "running" state which ultimately confused
the "stop" backend.

Note that we should only wait for the container to exit when SIGKILL is
being used.  Other signals have different semantics.

[NO NEW TESTS NEEDED] as I do not know how to reliably reproduce the
issue.  If #16142 stops flaking, we are good.

Fixes: #16142
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-10-18 13:46:50 -04:00
..
build remote: fix implementation of build with --userns=auto for API 2022-08-26 16:53:40 +05:30
cdi Add support for CDI device configuration 2021-04-20 09:18:52 -04:00
config Add support for 'image' volume driver 2022-09-22 13:07:40 -04:00
sign fix e2e sign tests 2022-08-01 16:21:55 +02:00
testdata Add support for creating sigstore signatures, and providing passphrases 2022-07-30 17:26:08 +02:00
attach_test.go kill: wait for the container 2022-10-18 13:46:50 -04:00
benchmarks_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
build_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
checkpoint_test.go fix restore API endpoint 2022-09-22 15:11:19 -04:00
cleanup_test.go Output messages display rawInput 2022-08-02 18:28:37 +09:00
commit_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
common_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
config.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
config_amd64.go Update the registry server we test against from 2.6 to 2.8 2022-07-30 17:24:31 +02:00
config_arm64.go Update the registry server we test against from 2.6 to 2.8 2022-07-30 17:24:31 +02:00
config_ppc64le.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
container_clone_test.go podman container clone env patch 2022-09-16 11:43:26 -04:00
container_create_volume_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
container_inspect_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
containers_conf_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
cp_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
create_staticip_test.go Fix spelling "setup" -> "set up" and similar 2022-06-22 18:39:21 +02:00
create_staticmac_test.go all: stop using deprecated GenerateNonCryptoID 2022-09-13 16:26:26 -07:00
create_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
diff_test.go all: stop using deprecated GenerateNonCryptoID 2022-09-13 16:26:26 -07:00
events_test.go Events for containers in pods now include the pod's ID 2022-09-22 14:18:56 -04:00
exec_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
exists_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
export_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
generate_kube_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
generate_spec_test.go Warning messages are printed and ignored if we use an unsupported option 2022-08-23 11:54:31 +09:00
generate_systemd_test.go Merge pull request #15871 from cevich/replace_ioutil 2022-09-21 16:12:25 +02:00
healthcheck_run_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
history_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
image_scp_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
image_sign_test.go refactor: use os.ReadDir for lightweight directory reading 2022-09-11 15:58:31 +08:00
images_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
import_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
info_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
init_test.go Output messages display rawInput 2022-08-02 18:28:37 +09:00
inspect_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
kill_test.go Fix typo about e2e tests name 2022-09-30 13:28:16 +09:00
libpod_suite_remote_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
libpod_suite_test.go Fix a few missed io/ioutil -> os updates 2022-09-21 14:14:55 -04:00
load_test.go enable gocritic linter 2022-04-26 18:12:22 +02:00
login_logout_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
logs_test.go podman pod logs -l no longer panics 2022-09-29 08:56:02 -04:00
manifest_test.go Revert "remote: fix manifest add --annotation" 2022-09-29 14:16:42 +02:00
mount_rootless_test.go Cirrus: Fix e2e tests for "mount_rootless_test" 2022-08-03 17:01:18 +09:00
mount_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
namespace_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
negative_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
network_connect_disconnect_test.go all: stop using deprecated GenerateNonCryptoID 2022-09-13 16:26:26 -07:00
network_create_test.go all: stop using deprecated GenerateNonCryptoID 2022-09-13 16:26:26 -07:00
network_test.go fix "podman system prune networks" flake 2022-09-29 14:39:25 +02:00
pause_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
play_build_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
play_kube_test.go Create full path to a directory when DirectoryOrCreate is used with play kube 2022-10-18 13:29:06 -04:00
pod_clone_test.go [minor] fix duplicate test name 2022-07-07 11:23:17 -06:00
pod_create_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
pod_infra_container_test.go pod create --share none should not create infra 2022-07-25 13:11:06 -04:00
pod_initcontainers_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_inspect_test.go fix podman pod inspect to support multiple pods 2022-09-08 10:28:42 +02:00
pod_kill_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_pause_test.go Fix podman pod unpaue TODO 2022-07-05 10:32:49 -04:00
pod_pod_namespaces_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_prune_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_ps_test.go all: stop using deprecated GenerateNonCryptoID 2022-09-13 16:26:26 -07:00
pod_restart_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_rm_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
pod_start_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
pod_stats_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_stop_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
pod_top_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
port_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
prune_test.go fix "podman system prune networks" flake 2022-09-29 14:39:25 +02:00
ps_test.go docs: add missing options 2022-10-18 13:42:00 -04:00
pull_test.go Add ProgressWriter to PullOptions 2022-08-19 00:41:22 +03:00
push_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
rename_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
restart_test.go Fix typo about e2e tests name 2022-09-30 13:28:16 +09:00
rm_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
rmi_test.go remove image podman no prune 2022-08-04 14:55:03 -04:00
run_aardvark_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
run_apparmor_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
run_cgroup_parent_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
run_cleanup_test.go e2e: Add rootless mount cleanup test 2022-08-05 12:01:51 +09:00
run_cpu_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
run_device_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_dns_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_entrypoint_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_env_test.go Merge pull request #15434 from rhatdan/manifest1 2022-08-24 13:29:20 -04:00
run_exit_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_memory_test.go e2e: Add run --memory-swap test 2022-08-24 18:15:21 +09:00
run_networking_test.go all: stop using deprecated GenerateNonCryptoID 2022-09-13 16:26:26 -07:00
run_ns_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_passwd_test.go libpod: create /etc/passwd if missing 2022-07-21 17:58:16 +02:00
run_privileged_test.go Privileged containers can now restart if the host devices change 2022-06-06 14:14:22 -04:00
run_restart_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_seccomp_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_security_labels_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_selinux_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_signal_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_staticip_test.go all: stop using deprecated GenerateNonCryptoID 2022-09-13 16:26:26 -07:00
run_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
run_userns_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
run_volume_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
run_working_dir_test.go libpod: fix lookup for subpath in volumes 2022-09-14 17:09:04 +02:00
runlabel_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
save_test.go Merge pull request #15870 from idleroamer/podman-save 2022-09-22 15:18:41 +02:00
search_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
secret_test.go Add --pretty to podman secret inspect 2022-09-22 14:07:11 -04:00
start_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
stats_test.go Add podman stats --no-trunc option 2022-08-17 13:16:01 -04:00
stop_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
system_connection_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
system_df_test.go Merge pull request #14805 from jakecorrenti/df-format-output 2022-07-05 13:34:45 +00:00
system_dial_stdio_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
system_reset_test.go Only allow Rootless runs of Podman Machine 2022-06-29 09:19:09 -04:00
system_service_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
systemd_activate_test.go golangci-lint: update to v1.46.2 2022-06-15 19:58:30 +02:00
systemd_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
tag_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
toolbox_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
top_test.go vendor containers/psgo@v1.7.3 2022-08-24 17:13:58 +02:00
tree_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
trust_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
unshare_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
untag_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
update_test.go implement podman update 2022-09-01 13:02:01 -04:00
version_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
volume_create_test.go Add support for 'image' volume driver 2022-09-22 13:07:40 -04:00
volume_exists_test.go all: stop using deprecated GenerateNonCryptoID 2022-09-13 16:26:26 -07:00
volume_inspect_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
volume_ls_test.go podman volume ls: use report.Formatter over Template 2022-09-13 10:33:13 +02:00
volume_plugin_test.go Add support for 'image' volume driver 2022-09-22 13:07:40 -04:00
volume_prune_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
volume_rm_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
wait_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00