kaniko/pkg/executor
Andreas Fleig 01763bce5b
Fix fs_util tests failing on systems with /tmp mountpoint (#2583)
* Rename IgnoreListPath to MountInfoPath in config & constants

The string points to /proc/self/mountinfo

* fs_util_test.go: fix tests failing when /tmp mountpoint present

The tests

* Test_GetFSFromLayers_ignorelist
* Test_GetFSFromLayers_with_whiteouts_include_whiteout_disabled
* Test_GetFSFromLayers_with_whiteouts_include_whiteout_enabled

were failing on systems with a /tmp mountpoint:

fs_util.InitIgnoreList() adds all mountpoints to the ignore list,
but the tests were expecting file operations in a /tmp subdirectory.

This change provides an empty mountinfo list for the affected tests.

Fixes #1779
2023-06-19 12:01:20 -07:00
..
build.go Fix multistage caching with COPY --from (#2559) 2023-06-16 10:56:05 -07:00
build_test.go Fix multistage caching with COPY --from (#2559) 2023-06-16 10:56:05 -07:00
composite_cache.go Fix .dockerignore for build context copies in later stages (#1447) 2020-10-08 12:47:14 -07:00
composite_cache_test.go test: use `T.TempDir` to create temporary test directory (#1918) 2022-02-07 13:27:34 -05:00
copy_multistage_test.go Fix fs_util tests failing on systems with /tmp mountpoint (#2583) 2023-06-19 12:01:20 -07:00
fakes.go Fix multistage caching with COPY --from (#2559) 2023-06-16 10:56:05 -07:00
push.go Add mTLS (client cert) registry authentication (#2180) 2023-05-18 14:20:51 -07:00
push_test.go Fix Integration tests (#2425) 2023-03-21 12:30:54 -04:00