automation-tests/test/e2e
Paul Holzinger 205c8c071e
fix podman container restore without CreateNetNS
When a container does not use the default podman netns, for example
--network none or --network ns:/path a restore would fail because the
specgen check validates that c.config.StaticMAC is nil but the
unmarshaller sets it to an empty slice.

While we could make the check use len() > 0 I feel like it is more
common to check with != nil for ip and mac addresses.
Adding omitempty tag makes the json marshal/unmarshal work correctly.
This should not cause any issues.

Fixes #14389

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-05-31 16:49:40 +02: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-04-29 14:06:38 +02:00
benchmarks_test.go benchmarks: push/pull 2022-05-04 12:15:45 +02:00
build_test.go build: allow using cache explicitly with --squash-all using --layers 2022-05-26 21:01:18 +05:30
checkpoint_image_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
checkpoint_test.go fix podman container restore without CreateNetNS 2022-05-31 16:49:40 +02:00
commit_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
common_test.go test: simplify cleanup code 2022-05-10 20:11:16 +02:00
config.go test: update fedora toolbox image 2022-05-11 20:44:37 +02: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 Merge pull request #14059 from cdoern/clone 2022-05-05 05:51:19 -04:00
container_create_volume_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
container_inspect_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
containers_conf_test.go Vendor in latest containers/common 2022-05-12 17:36:44 -04:00
cp_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
create_staticip_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
create_staticmac_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
create_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
diff_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
events_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
exec_test.go enable errcheck linter 2022-04-29 14:06:38 +02: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 enable errcheck linter 2022-04-29 14:06:38 +02:00
generate_systemd_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
healthcheck_run_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
history_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
image_scp_test.go Ginkgo: use HaveField() for better error checking 2022-04-28 05:41:53 -06:00
image_sign_test.go enable errcheck linter 2022-04-29 14:06:38 +02: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 Report correct RemoteURI 2022-05-04 12:11:32 -04:00
init_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
inspect_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
kill_test.go First batch of resolutions to FIXMEs 2022-05-25 13:28:04 -04:00
libpod_suite_remote_test.go fix broken hooks-dir test 2022-04-29 14:06:54 +02:00
libpod_suite_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
load_test.go enable gocritic linter 2022-04-26 18:12:22 +02:00
login_logout_test.go linter: enable unconvert linter 2022-05-19 13:59:15 +02:00
logs_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
manifest_test.go e2e: manifest_test: use cached registry 2022-05-05 11:03:14 +02:00
mount_rootless_test.go enable errcheck linter 2022-04-29 14:06:38 +02: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 Modify /etc/resolv.conf when connecting/disconnecting 2022-02-10 09:44:00 -05:00
network_create_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
network_test.go linter: enable unconvert linter 2022-05-19 13:59:15 +02:00
pause_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
play_build_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
play_kube_test.go fix tests by randomize the device folder name 2022-05-23 10:33:12 +02:00
pod_create_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_infra_container_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_initcontainers_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_inspect_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_kill_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_pause_test.go enable errcheck linter 2022-04-29 14:06:38 +02: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 enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_restart_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_rm_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_start_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_stats_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_stop_test.go enable errcheck linter 2022-04-29 14:06:38 +02: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 enable errcheck linter 2022-04-29 14:06:38 +02:00
ps_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pull_test.go e2e: pull_test: speed up --all-tags 2022-05-05 13:00:47 +02:00
push_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
rename_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
restart_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
rm_test.go enable errcheck linter 2022-04-29 14:06:38 +02: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-04-29 14:06:38 +02:00
run_apparmor_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_cgroup_parent_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_cleanup_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_cpu_test.go enable errcheck linter 2022-04-29 14:06:38 +02: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 enable errcheck linter 2022-04-29 14:06:38 +02:00
run_exit_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_memory_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_networking_test.go fix f35 integration test network flake 2022-05-25 15:46:15 +02:00
run_ns_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_passwd_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_privileged_test.go enable errcheck linter 2022-04-29 14:06:38 +02: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 enable errcheck linter 2022-04-29 14:06:38 +02:00
run_test.go fix --init with /dev bind mount 2022-05-23 13:59:05 +02:00
run_userns_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_volume_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_working_dir_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
runlabel_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
save_test.go Make sure tests are cleaned up when they complete 2022-05-12 16:31:13 -04:00
search_test.go test/e2e/search_test.go: re-enable registry.redhat.io test 2022-05-24 16:07:39 +02:00
secret_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
start_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
stats_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
stop_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
system_connection_test.go Report correct RemoteURI 2022-05-04 12:11:32 -04:00
system_df_test.go linter: enable unconvert linter 2022-05-19 13:59:15 +02:00
system_dial_stdio_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
system_reset_test.go podman system reset removed machines incorrectly 2022-05-04 10:31:42 -04:00
system_service_test.go Report correct RemoteURI 2022-05-04 12:11:32 -04:00
systemd_activate_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
systemd_test.go enable errcheck linter 2022-04-29 14:06:38 +02: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 enable errcheck linter 2022-04-29 14:06:38 +02:00
tree_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
trust_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
unshare_test.go enable errcheck linter 2022-04-29 14:06:38 +02: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-04-29 14:06:38 +02:00
volume_create_test.go podman volume export/import: give better error 2022-05-30 18:10:28 +02:00
volume_exists_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
volume_inspect_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
volume_ls_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
volume_plugin_test.go enable errcheck linter 2022-04-29 14:06:38 +02: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