spiegel_podman/test/e2e
Aditya R 9b8298c6f7
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>

Cherry-picked from commit 06241077cc

Signed-off-by: Chris Evich <cevich@redhat.com>
2026-03-30 15:13:41 -04:00
..
build test,manifest-run: declare TARGETPLATFORM before using it 2022-07-26 13:04:47 -04:00
cdi build(deps): bump CDI spec version to 0.3.0 2026-03-30 15:13:34 -04:00
config Add support for containers.conf volume timeouts 2022-10-06 15:07:10 -04:00
sign Add support for creating sigstore signatures, and providing passphrases 2022-08-02 16:52:56 +02:00
testdata Add support for creating sigstore signatures, and providing passphrases 2022-08-02 16:52:56 +02:00
attach_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
benchmarks_test.go benchmarks: fix create test 2022-07-26 14:43:08 -04:00
build_test.go test/e2e: exclude build_test from remote testing 2026-03-30 15:13:35 -04:00
checkpoint_image_test.go test: disable all checkpoint tests 2026-03-30 15:13:36 -04:00
checkpoint_test.go test: disable all checkpoint tests 2026-03-30 15:13:36 -04:00
commit_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
common_test.go test/e2e: fix "Too many RemoteSocket collisions" panic 2026-03-30 15:13:35 -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-08-02 16:52:56 +02:00
config_ppc64le.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06: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 e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
containers_conf_test.go e2e: fix some tests on remote 2026-03-30 15:13:37 -04:00
cp_test.go test/e2e: close and remove temp file before cp in cp_test 2026-03-30 15:13:37 -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 [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05:00
create_test.go [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05:00
diff_test.go [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05:00
events_test.go [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05: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 e2e tests: fix incorrect os.User.Name 2026-03-30 15:13:37 -04:00
generate_systemd_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
healthcheck_run_test.go test/e2e: skip healthcheck test for remote 2026-03-30 15:13:36 -04:00
history_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
image_scp_test.go podman image scp remote support & podman image scp tagging 2022-06-28 08:54:19 -04:00
image_sign_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
images_test.go test/e2e: skip "podman builder prune" for remote 2026-03-30 15:13:36 -04: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 e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
kill_test.go First batch of resolutions to FIXMEs 2022-05-25 13:28:04 -04:00
libpod_suite_remote_test.go integration test: fix network backend option with remote 2022-07-26 14:42:48 -04:00
libpod_suite_test.go manifest_test: safer registry setup and teardown 2022-07-07 14:03:42 -06:00
load_test.go test/e2e: fix "podman load localhost registry from dir" test 2026-03-30 15:13:35 -04:00
login_logout_test.go Use existing REGISTRY_IMAGE variables in more places 2022-08-02 16:52:56 +02:00
logs_test.go [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05:00
manifest_test.go tests: fix "Storing signatures" check 2026-03-30 15:13:33 -04:00
mount_rootless_test.go Cirrus: Fix e2e tests for "mount_rootless_test" 2022-08-10 16:46:05 -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-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 [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05:00
network_create_test.go [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05:00
network_test.go test/e2e: fix network ID test 2026-03-30 15:13:34 -04:00
pause_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
play_build_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
play_kube_test.go [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05:00
pod_clone_test.go [minor] fix duplicate test name 2022-07-07 11:23:17 -06:00
pod_create_test.go test/e2e: skip pod userns=auto test in remote mode 2026-03-30 15:13:38 -04:00
pod_infra_container_test.go pod create --share none should not create infra 2022-07-26 14:46:12 -04: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 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 [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05: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 test/e2e: skip "podman image prune dangling images" for remote 2026-03-30 15:13:35 -04:00
ps_test.go [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05:00
pull_test.go Fix OCI directory pull tests for vendored libimage behavior 2026-03-30 15:13:34 -04:00
push_test.go tests: fix "Storing signatures" check 2026-03-30 15:13:33 -04: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 test/e2e: skip "podman rmi with cached images" for remote 2026-03-30 15:13:35 -04:00
run_aardvark_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
run_apparmor_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
run_cgroup_parent_test.go test/e2e: skip cgroup parent test for rootless cgroupfs 2026-03-30 15:13:37 -04:00
run_cleanup_test.go e2e: Add rootless mount cleanup test 2022-08-10 16:46:05 -04:00
run_cpu_test.go Docker uses "-c" to mean "--cpu-shares" in create and run 2022-07-26 13:05:59 -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 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 libpod,netavark: correctly populate /etc/resolv.conf with custom dns server 2026-03-30 15:13:41 -04: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-26 13:58:18 -04: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 [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05:00
run_test.go test/e2e: skip "podman run from manifest list" for remote 2026-03-30 15:13:36 -04:00
run_userns_test.go test/e2e: skip build userns=auto test in remote mode 2026-03-30 15:13:40 -04:00
run_volume_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06: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 e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
search_test.go test/e2e: skip search insecure registry test in remote mode 2026-03-30 15:13:37 -04:00
secret_test.go test/e2e: fix secret bad name validation test 2026-03-30 15:13:34 -04:00
start_test.go start filter flag changes 2022-08-10 16:46:05 -04:00
stats_test.go Non-running containers now report statistics via the podman stats 2022-06-13 15:03:22 -04:00
stop_test.go Podman stop --filter flag 2022-07-26 13:25:36 -04:00
system_connection_test.go fix system connection and scp testing 2022-06-23 11:26:19 -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 Report correct RemoteURI 2022-05-04 12:11:32 -04:00
systemd_activate_test.go golangci-lint: update to v1.46.2 2022-06-15 19:58:30 +02:00
systemd_test.go test/e2e: skip cgroup path check for rootless cgroupfs in systemd test 2026-03-30 15:13:37 -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 enable errcheck linter 2022-04-29 14:06:38 +02:00
tree_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
trust_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
unshare_test.go e2e: fix some tests on remote 2026-03-30 15:13:37 -04:00
untag_test.go e2e tests: cleanup: capitalize CONSTANTS 2022-07-05 15:36:08 -06:00
version_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
volume_create_test.go Add support for containers.conf volume timeouts 2022-10-06 15:07:10 -04:00
volume_exists_test.go [v4.2.0-rhel] all: stop using deprecated GenerateNonCryptoID 2023-02-01 16:35:50 -05:00
volume_inspect_test.go enable errcheck linter 2022-04-29 14:06:38 +02:00
volume_ls_test.go Use Regexp in volume ls --filter name 2022-06-27 21:34:39 +03:00
volume_plugin_test.go test/e2e: add delay after WaitForFile for volume plugin sockets 2026-03-30 15:13:35 -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