spiegel_podman/test/e2e
Paul Holzinger 74056bdfc2 podman stats: work with network connect/disconnect
Hardcoding the interface name is a bad idea. We have no control over the
actual interface name since the user can change it.

The correct thing is to read them from the network status. Since the
contianer can have more than one interface we have to add the RX/TX
values. The other values are currently not used.

For podman 5.0 we should change it so that the API can return the
statistics per interface and the client should sum the TX/RX for the
command output. This is what docker is doing.

Fixes #13824

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-06-14 16:12:10 -04:00
..
build Move secret-verify-leak containerfile into its own Directory 2022-03-08 10:05:42 -05:00
cdi Add support for CDI device configuration 2021-04-20 09:18:52 -04:00
config Fix network mode in play kube 2021-11-12 18:32:01 +01:00
sign save image remove signatures 2020-10-21 10:00:08 -04:00
testdata migrate Podman to containers/common/libimage 2021-05-05 11:30:12 +02:00
attach_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
benchmarks_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
build_test.go Make sure tests are cleaned up when they complete 2022-06-14 13:21:16 -04:00
checkpoint_image_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
checkpoint_test.go fix podman container restore without CreateNetNS 2022-06-14 14:38:23 -04:00
commit_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
common_test.go test: simplify cleanup code 2022-06-14 13:15:19 -04:00
config.go test: update fedora toolbox image 2022-06-14 13:16:21 -04:00
config_amd64.go replace golint with revive linter 2022-04-22 15:12:33 +02:00
config_ppc64le.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
container_clone_test.go pass networks to container clone 2022-05-05 16:02:00 -04:00
container_create_volume_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
container_inspect_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
containers_conf_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
cp_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
create_staticip_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
create_staticmac_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
create_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
diff_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
events_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
exec_test.go enable errcheck linter 2022-05-03 13:44:33 -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-05-03 13:44:33 -04:00
generate_kube_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
generate_systemd_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
healthcheck_run_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
history_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
image_scp_test.go Ginkgo: use HaveField() for better error checking 2022-05-03 13:38:21 -04:00
image_sign_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
images_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
import_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
info_test.go Report correct RemoteURI 2022-05-04 18:59:05 +00:00
init_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
inspect_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
kill_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
libpod_suite_remote_test.go fix broken hooks-dir test 2022-05-03 13:44:39 -04:00
libpod_suite_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
load_test.go enable gocritic linter 2022-04-26 18:12:22 +02:00
login_logout_test.go linter: enable unconvert linter 2022-06-14 13:47:42 -04:00
logs_test.go fix "tail 800 lines: journald" flake 2022-06-14 14:40:03 -04:00
manifest_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
mount_rootless_test.go enable errcheck linter 2022-05-03 13:44:33 -04: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-05-03 13:44:33 -04:00
negative_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
network_connect_disconnect_test.go podman stats: work with network connect/disconnect 2022-06-14 16:12:10 -04:00
network_create_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
network_test.go linter: enable unconvert linter 2022-06-14 13:47:42 -04:00
pause_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
play_build_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
play_kube_test.go fix broken CI test 2022-06-14 13:10:33 -04:00
pod_create_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_infra_container_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_initcontainers_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_inspect_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_kill_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_pause_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_pod_namespaces_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_prune_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_ps_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_restart_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_rm_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_start_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_stats_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_stop_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pod_top_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
port_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
prune_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
ps_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
pull_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
push_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
rename_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
restart_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
rm_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
rmi_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
run_aardvark_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_apparmor_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_cgroup_parent_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_cleanup_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_cpu_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_device_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_dns_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_entrypoint_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_env_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_exit_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_memory_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_networking_test.go fix f35 integration test network flake 2022-06-14 14:29:12 -04:00
run_ns_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_passwd_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_privileged_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_restart_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_seccomp_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_security_labels_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_selinux_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_signal_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_staticip_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_test.go fix broken hooks-dir test 2022-05-03 13:44:39 -04:00
run_userns_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_volume_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
run_working_dir_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
runlabel_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
save_test.go Make sure tests are cleaned up when they complete 2022-06-14 13:21:16 -04:00
search_test.go test: fix "podman search format json" 2022-05-09 18:04:39 +00:00
secret_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
start_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
stats_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
stop_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
system_connection_test.go Report correct RemoteURI 2022-05-04 18:59:05 +00:00
system_df_test.go linter: enable unconvert linter 2022-06-14 13:47:42 -04:00
system_dial_stdio_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
system_reset_test.go podman system reset removed machines incorrectly 2022-05-04 18:06:23 +00:00
system_service_test.go Report correct RemoteURI 2022-05-04 18:59:05 +00:00
systemd_activate_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
systemd_test.go enable errcheck linter 2022-05-03 13:44:33 -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-05-03 13:44:33 -04:00
top_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
tree_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
trust_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
unshare_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
untag_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
version_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
volume_create_test.go Make sure tests are cleaned up when they complete 2022-06-14 13:21:16 -04:00
volume_exists_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
volume_inspect_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
volume_ls_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
volume_plugin_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
volume_prune_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
volume_rm_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00
wait_test.go enable errcheck linter 2022-05-03 13:44:33 -04:00