buildah/tests
bors[bot] 7fb1282932
Merge #2659
2659: add: preserve ownerships and permissions on ADDed archives r=vrothberg a=nalind

#### What type of PR is this?

/kind bug

#### What this PR does / why we need it:

When extracting archives that are added using ADD, don't override permissions and ownership information.  We regressed on this when we switched to using the copier package to handle them.

#### How to verify it

Added a new conformance test for it.

#### Which issue(s) this PR fixes:

Fixes #2657.

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```
Permissions and ownership information on the contents of archives added using the ADD instruction or "buildah add" on the command line should be preserved again.
```

Co-authored-by: Nalin Dahyabhai <nalin@redhat.com>
2020-09-30 11:05:28 +00:00
..
bud copier.Get(): hard link targets shouldn't be relative paths 2020-09-08 18:09:15 -04:00
conformance add: preserve ownerships and permissions on ADDed archives 2020-09-29 16:25:31 -04:00
digest image with dup layers: we now have one on quay 2020-03-25 15:21:29 -06:00
e2e Add nix derivation for static builds 2020-06-18 19:19:21 +08:00
imgtype imgtype: reset storage opts if driver overridden 2019-12-06 17:11:45 +00:00
serve Simple changes to allow buildah to pass make validate 2018-04-20 09:57:35 +00:00
testreport Fix compilation of tests/testreport/testreport 2020-07-20 23:33:44 -04:00
tools tools: update git-validation to the latest commit 2020-09-17 15:14:54 +02:00
validate Validate: reference HEAD 2020-09-16 06:51:25 -04:00
add.bats Add(): fix handling of relative paths with no ContextDir 2020-09-16 14:19:10 -04:00
authenticate.bats tests: add auth tests 2020-07-08 09:24:07 -06:00
basic.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
blobcache.bats BATS major cleanup: blobcache.bats: refactor 2019-12-17 18:16:45 +00:00
bud.bats Fix up code based on codespell 2020-09-15 16:49:18 -04:00
bud_overlay_leaks.bats Shutdown storage on failures 2020-08-10 16:01:52 -04:00
byid.bats Flake handling: cache and prefetch images 2020-02-06 08:16:02 -07:00
commit.bats Use --timestamp rather then --omit-timestamp 2020-08-28 05:23:41 -04:00
config.bats Avoid feeding run_buildah to pipe 2020-08-11 15:01:26 -06:00
containers.bats Flake handling: cache and prefetch images 2020-02-06 08:16:02 -07:00
containers.conf Update to containers/common v0.4.1 2020-02-21 17:20:20 -05:00
containers_conf.bats Run(): ignore containers.conf's environment configuration 2020-09-17 14:43:37 -04:00
copy.bats add: preserve ownerships and permissions on ADDed archives 2020-09-29 16:25:31 -04:00
deny.json commit/push: use an everything-allowed policy 2019-05-10 18:09:37 +00:00
digest.bats image with dup layers: we now have one on quay 2020-03-25 15:21:29 -06:00
docker.json commit/push: use an everything-allowed policy 2019-05-10 18:09:37 +00:00
formats.bats BATS major cleanup, part 2: use more run_buildah 2019-12-17 18:16:45 +00:00
from.bats tests: Add some tests 2020-09-07 22:50:34 +08:00
helpers.bash integration tests: make sure tests run in ${topdir}/tests 2020-09-18 10:16:46 -04:00
history.bats Avoid feeding run_buildah to pipe 2020-08-11 15:01:26 -06:00
images.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
info.bats info test: deal with random key order 2020-01-31 07:23:18 +00:00
inspect.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
lists.bats fix bug manifest inspct 2020-08-06 10:46:33 -04:00
loglevel.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
mount.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
namespaces.bats Change namespace handling flags to better match podman commands 2020-08-12 16:04:57 -04:00
overlay.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
policy.json Add some integration tests 2017-03-06 18:47:51 -05:00
pull.bats tests: Add some tests 2020-09-07 22:50:34 +08:00
push.bats Add a few tests of push command 2020-09-17 19:45:45 +09:00
registries.bats BATS tests: make more robust 2020-07-16 14:59:32 -06:00
registries.conf Stop using fedorproject registry 2020-02-06 16:22:44 -05:00
registries.conf.block Enforce "blocked" for registries for the "docker" transport 2018-10-05 15:30:11 +00:00
registries.conf.hub pull/commit/push: pay attention to $BUILD_REGISTRY_SOURCES 2019-08-29 18:42:16 +00:00
rename.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
rm.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
rmi.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
run.bats Don't bind /etc/host and /etc/resolv.conf if network is not present 2020-08-01 17:34:22 -04:00
secrets.bats Flake handling: cache and prefetch images 2020-02-06 08:16:02 -07:00
selinux.bats Flake handling: cache and prefetch images 2020-02-06 08:16:02 -07:00
sign.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
squash.bats BATS major cleanup: part 4: manual stuff 2019-12-17 18:16:45 +00:00
tag.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
test_buildah_authentication.sh Ran buildah through codespell 2019-11-20 17:38:41 +00:00
test_buildah_baseline.sh Update shebangs to take env into consideration 2019-08-20 11:26:57 +00:00
test_buildah_build_rpm.sh Add `--log-level` command line option and deprecate `--debug` 2019-08-29 12:49:11 +00:00
test_buildah_rpm.sh Don't force tests to use runc 2020-04-27 16:01:06 -04:00
test_runner.sh integration tests: default to /var/tmp 2017-11-09 20:27:57 +00:00
umount.bats Return exit code from failed containers 2020-04-20 11:24:52 -04:00
version.bats BATS major cleanup: part 4: manual stuff 2019-12-17 18:16:45 +00:00