From 3886524d536e5c255831bc25cab186ca4c0228ab Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 26 Apr 2021 17:22:01 +0200 Subject: libpod/image: unit tests: don't use system's registries.conf.d This should make the unit tests pass on updated CI images. Signed-off-by: Valentin Rothberg --- libpod/image/pull_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libpod/image') diff --git a/libpod/image/pull_test.go b/libpod/image/pull_test.go index 2e1464ad3..d2930451c 100644 --- a/libpod/image/pull_test.go +++ b/libpod/image/pull_test.go @@ -308,6 +308,12 @@ func TestPullGoalFromPossiblyUnqualifiedName(t *testing.T) { sc.UserShortNameAliasConfPath = aliasesConf.Name() sc.SystemRegistriesConfPath = registriesConf.Name() + // Make sure to not sure the system's registries.conf.d + dir, err := ioutil.TempDir("", "example") + require.NoError(t, err) + sc.SystemRegistriesConfDirPath = dir + defer os.RemoveAll(dir) // clean up + for _, c := range []struct { input string expected []pullRefStrings -- cgit v1.2.3-54-g00ecf