automation-tests/common/pkg/config
Paul Holzinger 32003de258 pkg/config: fix verify getDefaultEnv test flake
Do not use Default() in unit tests, that caches the config in a global
var so it conflicts with other tests also calling it.

Now only the Reload test should test that. The Default() call got broken
by commit c2dee68766 because now the test only unsets the env after the
last Reload() call which should already use the actual default.

Fixes: c2dee68766 ("*_test.go: use t.TempDir, t.Setenv")

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-23 13:58:24 +02:00
..
testdata Allow Podman to send the container's hostname to Netavark 2024-11-28 13:35:36 -07:00
config.go pkg/config: make Capabilities() a no-op stub on non-linux platforms 2025-02-17 14:32:11 +00:00
config_bsd.go Use gofmt -s on sources 2024-08-09 17:25:59 -07:00
config_darwin.go Merge pull request #1826 from Luap99/connections 2024-01-30 13:55:29 +00:00
config_linux.go pkg/config: make Capabilities() a no-op stub on non-linux platforms 2025-02-17 14:32:11 +00:00
config_local.go pkg/config: do not use regexp in validateUmask 2025-03-04 12:34:07 -08:00
config_local_test.go pkg/config: fix verify getDefaultEnv test flake 2025-04-23 13:58:24 +02:00
config_remote.go New global option interface_name in containers.conf 2024-01-25 07:11:33 -08:00
config_remote_test.go Use t.TempDir for tests 2025-04-14 11:16:55 -07:00
config_suite_test.go pkg/config: tests: do not load default config before each test 2023-08-14 09:40:27 +02:00
config_test.go pkg/config: fix verify getDefaultEnv test flake 2025-04-23 13:58:24 +02:00
config_unix.go Support system-wide containers config folder on windows 2024-04-29 16:49:54 +02:00
config_unsupported.go pkg/config: make Capabilities() a no-op stub on non-linux platforms 2025-02-17 14:32:11 +00:00
config_windows.go fix windows config path regression 2024-05-30 17:47:45 +02:00
connections.go pkg/config: make EditConnectionConfig race free 2024-03-04 16:30:29 +01:00
connections_test.go Use t.Setenv in tests 2025-04-14 11:16:55 -07:00
containers.conf docs: update network description 2025-03-03 18:31:37 +01:00
containers.conf-freebsd docs: update network description 2025-03-03 18:31:37 +01:00
db_backend.go pkg/config: use empty default for db_backend 2023-10-10 15:57:52 +02:00
db_backend_test.go pkg/config: use empty default for db_backend 2023-10-10 15:57:52 +02:00
default.go config: drop SetDefaultConfigFilePath($CONTAINERS_STORAGE_CONF) 2025-04-14 10:16:58 +02:00
default_bsd.go Use gofmt -s on sources 2024-08-09 17:25:59 -07:00
default_common.go Add netbsd on list of OSes alongside freebsd 2024-06-01 08:43:58 -04:00
default_darwin.go containers.conf: add new `compose_providers` option 2023-07-24 15:53:17 +02:00
default_linux.go config: do not set the default nproc to the max available 2024-10-11 16:40:18 +02:00
default_linux_test.go config: mask thermal interrupt info paths 2025-03-20 19:22:29 +01:00
default_test.go fix issues reported by usetesting 2025-02-14 11:50:50 +01:00
default_unsupported.go chore: remove outdated build constraints 2024-01-03 22:56:00 +02:00
default_windows.go Use the WSL convention for the windows machines default volumes 2024-07-30 19:34:12 +02:00
default_windows_test.go Use the WSL convention for the windows machines default volumes 2024-07-30 19:34:12 +02:00
modules.go pkg/config: use fileutils.(Le|E)xists 2024-04-10 12:23:07 +02:00
modules_test.go Use t.Setenv in tests 2025-04-14 11:16:55 -07:00
new.go Support system-wide containers config folder on windows 2024-04-29 16:49:54 +02:00
nosystemd.go chore: remove outdated build constraints 2024-01-03 22:56:00 +02:00
pod_exit_policy.go containers.conf: add pod_exit_policy 2022-04-29 12:17:16 +02:00
pod_exit_policy_test.go containers.conf: add pod_exit_policy 2022-04-29 12:17:16 +02:00
pull_policy.go Simplify PullPolicy handling 2024-03-21 08:00:57 +01:00
systemd.go chore: remove outdated build constraints 2024-01-03 22:56:00 +02:00