spiegel_podman/test/e2e
Paul Holzinger d10bc9f045 fix pod creation with "new:" syntax followup + allow hostname
Fixes: 4c75fe3f70 ("fix pod creation with "new:" syntax")

Commit 4c75fe3f70 passes all net options to the pod but forgot
to unset the options for the container creation. This leads to
erros when using flags like `--ip` since we tried setting
the ip on the pod and container which obviously fails.

I didn't notice the bug because we don't throw an error when
specifing port bindings on a container which joins the pods
network namespace. (#7373)

Also allow the use of `--hostname` and pass that option to the
pod and unset it for the container. The container has to use
the pods hostname anyway. This would error otherwise.

Added tests to prevent regression.

Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
2020-08-20 16:28:45 +02:00
..
build fix podman cp can create an extra directory level 2020-06-15 23:56:45 +08:00
config Add --umask flag for create, run 2020-07-21 14:22:30 -04:00
hooks Add hooks support to podman 2018-04-05 14:13:49 +00:00
sign fix bug podman sign storage path 2020-08-04 15:10:47 -04:00
attach_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
build_test.go e2e tests: use actual temp dirs, not "/tmp/dir" 2020-08-18 09:12:09 -06:00
checkpoint_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
commit_test.go e2e tests: use actual temp dirs, not "/tmp/dir" 2020-08-18 09:12:09 -06:00
common_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04: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 Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
containers_conf_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
cp_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
create_staticip_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
create_staticmac_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
create_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
diff_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
events_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
exec_test.go Ensure that exec errors write exit codes to the DB 2020-08-05 14:30:48 -04:00
exists_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
export_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
generate_kube_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
generate_systemd_test.go generate systemd: fix error handling 2020-08-10 16:29:55 +02:00
healthcheck_run_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
history_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
image_sign_test.go fix bug podman sign storage path 2020-08-04 15:10:47 -04:00
images_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
import_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
info_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
init_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
inspect_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
kill_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
libpod_suite_remote_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
libpod_suite_test.go Turn on a bunch more remote tests 2020-07-22 13:13:28 -04:00
libpod_suite_varlink_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
load_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
login_logout_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
logs_test.go fix podman logs --tail when log is bigger than pagesize 2020-08-06 20:56:30 +02:00
manifest_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
mount_rootless_test.go Add podman image mount 2020-07-28 10:27:44 -04:00
mount_test.go Add podman image mount 2020-07-28 10:27:44 -04:00
namespace_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
negative_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
network_create_test.go podman support for IPv6 networks 2020-08-15 12:11:01 +02:00
network_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pause_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
play_kube_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_create_test.go e2e tests: use actual temp dirs, not "/tmp/dir" 2020-08-18 09:12:09 -06:00
pod_infra_container_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_inspect_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_kill_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_pause_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_pod_namespaces.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_prune_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_ps_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_restart_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_rm_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_start_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_stats_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_stop_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_top_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
port_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
prune_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
ps_test.go Add the Status field in the ps --format=json 2020-08-11 13:47:54 +08:00
pull_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
push_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
restart_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
rm_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
rmi_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_apparmor_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_cgroup_parent_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_cleanup_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_cpu_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_device_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_dns_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_entrypoint_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_env_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_exit_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_memory_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_networking_test.go fix pod creation with "new:" syntax followup + allow hostname 2020-08-20 16:28:45 +02:00
run_ns_test.go Specifying --ipc=host --pid=host is broken 2020-07-28 14:53:54 -04:00
run_passwd_test.go Merge pull request #6991 from mheon/change_passwd_ondisk 2020-07-29 14:27:50 -04:00
run_privileged_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_restart_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_seccomp.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_security_labels.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_selinux_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_signal_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_staticip_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
run_test.go fix pod creation with "new:" syntax followup + allow hostname 2020-08-20 16:28:45 +02:00
run_userns_test.go Merge pull request #6991 from mheon/change_passwd_ondisk 2020-07-29 14:27:50 -04:00
run_volume_test.go Remove some unnecessary []byte to string conversions 2020-08-03 09:13:04 +02:00
run_working_dir.go Fix handling of working dir 2020-08-10 12:46:05 -04:00
runlabel_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
save_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
search_test.go Remove some unnecessary []byte to string conversions 2020-08-03 09:13:04 +02:00
start_test.go implement the exitcode when start a container with attach 2020-08-03 21:40:06 +08:00
stats_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
stop_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
system_connection_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
system_df_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
system_reset_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
systemd_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
tag_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
test.yaml Add support for RunAsUser and RunAsGroup 2019-11-06 10:35:37 -05:00
top_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
tree_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
trust_test.go flake fix: podman image trust 2020-08-18 09:12:36 -06:00
unshare_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
untag_test.go Add podman image mount 2020-07-28 10:27:44 -04:00
version_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
volume_create_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
volume_inspect_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
volume_ls_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
volume_prune_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
volume_rm_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
wait_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00