kaniko/pkg
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
..
buildcontext use aws-sdk-go-v2 (#2550) 2023-06-07 14:54:30 -07:00
cache Add mTLS (client cert) registry authentication (#2180) 2023-05-18 14:20:51 -07:00
commands Fix multistage caching with COPY --from (#2559) 2023-06-16 10:56:05 -07:00
config Fix fs_util tests failing on systems with /tmp mountpoint (#2583) 2023-06-19 12:01:20 -07:00
constants Fix fs_util tests failing on systems with /tmp mountpoint (#2583) 2023-06-19 12:01:20 -07:00
creds Add GitLab CI credentials helper (#2040) 2022-04-11 13:13:47 -04:00
dockerfile Fix multistage caching with COPY --from (#2559) 2023-06-16 10:56:05 -07:00
executor Fix fs_util tests failing on systems with /tmp mountpoint (#2583) 2023-06-19 12:01:20 -07:00
fakes refactor cache.Warm and add tests 2020-01-10 12:29:17 -08:00
filesystem chore: remove duplicate word in comments (#2232) 2022-08-30 06:02:39 -04:00
image Add mTLS (client cert) registry authentication (#2180) 2023-05-18 14:20:51 -07:00
logging Add timestamp to logs 2020-04-23 13:40:47 +02:00
mocks/go-containerregistry/mockv1 rename mock pkg for lint 2020-01-17 14:59:14 -08:00
snapshot Fix Integration tests (#2425) 2023-03-21 12:30:54 -04:00
timing Fix Integration tests (#2425) 2023-03-21 12:30:54 -04:00
util Fix fs_util tests failing on systems with /tmp mountpoint (#2583) 2023-06-19 12:01:20 -07:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00