spiegel_podman/test/e2e
Aditya R 06241077cc
libpod,netavark: correctly populate /etc/resolv.conf with custom dns server
After https://github.com/containers/netavark/pull/452 `netavark` is
incharge of deciding `custom_dns_servers` if any so lets honor that and
libpod should not set these manually.

This also ensures docker parity
Podman populates container's `/etc/resolv.conf` with custom DNS servers ( specified via `--dns` or `dns_server` in containers.conf )
even when container is connected to a network where `dns_enabled` is `true`.

Current behavior does not matches with docker, hence following commit ensures that podman only populates custom DNS server when container is not connected to any network where DNS is enabled and for the cases where `dns_enabled` is `true`
the resolution for custom DNS server will happen via ( `aardvark-dns` or `dnsname` ).

Reference: https://docs.docker.com/config/containers/container-networking/#dns-services
Closes: containers#16172

Signed-off-by: Aditya R <arajan@redhat.com>
2023-01-22 12:48:55 +05:30
..
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 Vendor in latest containers/common with default capabilities 2022-12-15 14:28:30 -05:00
quadlet Quadlet Kube - add support for PublishPort key 2023-01-12 10:19:14 +02: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 ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
benchmarks_test.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
build_test.go e2e tests: reenable long-skipped build test 2023-01-18 17:31:03 -07:00
checkpoint_image_test.go test: podman run with checkpoint image 2022-12-02 14:39:33 +00:00
checkpoint_test.go Let's see if #14653 is fixed or not 2023-01-19 12:20:56 -07:00
cleanup_test.go Output messages display rawInput 2022-08-02 18:28:37 +09:00
commit_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
common_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
config.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
config_amd64.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
config_arm64.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07: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 ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
container_inspect_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
containers_conf_test.go e2e: fix containers_conf_test 2022-12-27 18:20:42 +09:00
cp_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
create_staticip_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
create_staticmac_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
create_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
diff_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
events_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
exec_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
exists_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
export_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
generate_kube_test.go Remove ReservedAnnotations from kube generate specification 2023-01-18 08:46:24 -05: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 ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
healthcheck_run_test.go Add support for startup healthchecks 2022-11-28 13:30:29 -05:00
history_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
image_scp_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
image_sign_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
images_test.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
import_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
info_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
init_test.go Output messages display rawInput 2022-08-02 18:28:37 +09:00
inspect_test.go Add container error message to ContainerState 2023-01-03 13:21:24 -05:00
kill_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
libpod_suite_remote_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
libpod_suite_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
load_test.go enable gocritic linter 2022-04-26 18:12:22 +02:00
login_logout_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
logs_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
manifest_test.go Merge pull request #16549 from sstosh/remote-manifest-annotation 2022-12-12 09:29:06 -05: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 network create: do not allow default as name 2023-01-20 14:52:07 +01:00
network_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
pause_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
play_build_test.go Vendor in latest containers/common with default capabilities 2022-12-15 14:28:30 -05:00
play_kube_test.go Merge pull request #17168 from danishprakash/add-host-pid 2023-01-20 11:57:14 -05:00
pod_clone_test.go [minor] fix duplicate test name 2022-07-07 11:23:17 -06:00
pod_create_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
pod_infra_container_test.go Vendor in latest containers/common with default capabilities 2022-12-15 14:28:30 -05:00
pod_initcontainers_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_inspect_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01: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 ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
pod_restart_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_rm_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
pod_start_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
pod_stats_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
pod_stop_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01: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 ginkgo tests: apply ginkgolinter fixes 2022-12-20 16:47:17 +01:00
ps_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
pull_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
push_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
quadlet_test.go Quadlet Kube - add support for PublishPort key 2023-01-12 10:19:14 +02:00
rename_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
restart_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
rm_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
rmi_test.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
run_aardvark_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
run_apparmor_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
run_cgroup_parent_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01: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 ginkgo tests: apply ginkgolinter fixes 2022-12-20 16:47:17 +01: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 remote: allow --http-proxy for remote clients 2022-12-08 17:08:37 +01: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 libpod,netavark: correctly populate /etc/resolv.conf with custom dns server 2023-01-22 12:48:55 +05:30
run_ns_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
run_passwd_test.go libpod: create /etc/passwd if missing 2022-07-21 17:58:16 +02:00
run_privileged_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01: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 Vendor in latest containers/common with default capabilities 2022-12-15 14:28:30 -05:00
run_selinux_test.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
run_signal_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
run_staticip_test.go all: stop using deprecated GenerateNonCryptoID 2022-09-13 16:26:26 -07:00
run_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
run_transient_test.go Describe copy volume options 2023-01-04 14:58:51 -05:00
run_userns_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
run_volume_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
run_working_dir_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
runlabel_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
save_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
search_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
secret_test.go Unify --noheading and -n to be consistent on all commands 2022-12-19 13:18:43 -05:00
start_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
stats_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
stop_test.go ginkgo tests: apply ginkgolinter fixes 2022-11-25 14:41:43 +01:00
system_connection_test.go fix port issues for CONTAINER_HOST 2022-11-16 11:01:30 -05:00
system_df_test.go fix --format {{json .}} output to match docker 2022-11-09 17:59:05 +01:00
system_dial_stdio_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
system_reset_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
system_service_test.go Replace deprecated ioutil 2022-09-20 15:34:27 -04:00
systemd_activate_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
systemd_test.go e2e tests: stop using UBI images 2023-01-06 08:21:50 -07:00
tag_test.go bump go module to version 4 2022-01-18 12:47:07 +01:00
toolbox_test.go e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
top_test.go vendor containers/psgo@v1.8.0 2022-10-14 17:28:15 +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 e2e: use isRootless() instead of rootless.IsRootless() 2023-01-18 10:34:51 +09:00
untag_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
update_test.go Fixed podman update --pids-limit 2022-12-31 18:42:47 -05:00
version_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
volume_create_test.go Add podman volume create --ignore 2022-10-24 17:30:31 +02: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