test: remove skips for rootless users

Signed-off-by: Aditya R <arajan@redhat.com>
This commit is contained in:
Aditya R 2022-03-09 02:30:10 +05:30
parent 5fcaff63b0
commit 0b8c6ca49f
No known key found for this signature in database
GPG Key ID: 8E5A8A19DF7C8673
10 changed files with 0 additions and 67 deletions

View File

@ -14,7 +14,6 @@ load helpers
} }
@test "add-local-plain" { @test "add-local-plain" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
createrandom ${TESTDIR}/other-randomfile createrandom ${TESTDIR}/other-randomfile
@ -60,7 +59,6 @@ load helpers
} }
@test "add-local-archive" { @test "add-local-archive" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
createrandom ${TESTDIR}/other-randomfile createrandom ${TESTDIR}/other-randomfile
@ -203,7 +201,6 @@ load helpers
} }
@test "add --ignorefile" { @test "add --ignorefile" {
skip_if_rootless_environment
mytest=${TESTDIR}/mytest mytest=${TESTDIR}/mytest
mkdir -p ${mytest} mkdir -p ${mytest}
touch ${mytest}/mystuff touch ${mytest}/mystuff
@ -237,7 +234,6 @@ stuff/mystuff"
} }
@test "add quietly" { @test "add quietly" {
skip_if_rootless_environment
_prefetch busybox _prefetch busybox
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox
@ -250,7 +246,6 @@ stuff/mystuff"
} }
@test "add from container" { @test "add from container" {
skip_if_rootless_environment
_prefetch busybox _prefetch busybox
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox
@ -270,7 +265,6 @@ stuff/mystuff"
} }
@test "add from image" { @test "add from image" {
skip_if_rootless_environment
_prefetch busybox _prefetch busybox
run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox
cid=$output cid=$output

View File

@ -36,7 +36,6 @@ load helpers
} }
@test "mount" { @test "mount" {
skip_if_rootless_environment
run_buildah from --signature-policy ${TESTSDIR}/policy.json scratch run_buildah from --signature-policy ${TESTSDIR}/policy.json scratch
cid=$output cid=$output
run_buildah mount $cid run_buildah mount $cid
@ -50,7 +49,6 @@ load helpers
} }
@test "by-name" { @test "by-name" {
skip_if_rootless_environment
run_buildah from --signature-policy ${TESTSDIR}/policy.json --name scratch-working-image-for-test scratch run_buildah from --signature-policy ${TESTSDIR}/policy.json --name scratch-working-image-for-test scratch
cid=$output cid=$output
run_buildah mount scratch-working-image-for-test run_buildah mount scratch-working-image-for-test
@ -60,7 +58,6 @@ load helpers
} }
@test "commit" { @test "commit" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
createrandom ${TESTDIR}/other-randomfile createrandom ${TESTDIR}/other-randomfile

View File

@ -60,7 +60,6 @@ load helpers
} }
@test "bud with .dockerignore - unmatched" { @test "bud with .dockerignore - unmatched" {
skip_if_rootless_environment
# Here .dockerignore contains 'unmatched', which will not match anything. # Here .dockerignore contains 'unmatched', which will not match anything.
# Therefore everything in the subdirectory should be copied into the image. # Therefore everything in the subdirectory should be copied into the image.
# #
@ -261,7 +260,6 @@ _EOF
} }
@test "bud with --layers, multistage, and COPY with --from" { @test "bud with --layers, multistage, and COPY with --from" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
cp -a ${TESTSDIR}/bud/use-layers ${TESTDIR}/use-layers cp -a ${TESTSDIR}/bud/use-layers ${TESTDIR}/use-layers
@ -351,7 +349,6 @@ _EOF
} }
@test "bud-multistage-cache" { @test "bud-multistage-cache" {
skip_if_rootless_environment
_prefetch alpine busybox _prefetch alpine busybox
target=foo target=foo
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/multi-stage-builds/Dockerfile.extended ${TESTSDIR}/bud/multi-stage-builds run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/multi-stage-builds/Dockerfile.extended ${TESTSDIR}/bud/multi-stage-builds
@ -636,7 +633,6 @@ _EOF
} }
@test "bud-from-multiple-files-one-from" { @test "bud-from-multiple-files-one-from" {
skip_if_rootless_environment
target=scratch-image target=scratch-image
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/from-multiple-files/Dockerfile1.scratch -f ${TESTSDIR}/bud/from-multiple-files/Dockerfile2.nofrom ${TESTSDIR}/bud/from-multiple-files run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/from-multiple-files/Dockerfile1.scratch -f ${TESTSDIR}/bud/from-multiple-files/Dockerfile2.nofrom ${TESTSDIR}/bud/from-multiple-files
run_buildah from --quiet ${target} run_buildah from --quiet ${target}
@ -662,7 +658,6 @@ _EOF
} }
@test "bud-from-multiple-files-two-froms" { @test "bud-from-multiple-files-two-froms" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
target=scratch-image target=scratch-image
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Dockerfile1.scratch -f Dockerfile2.withfrom ${TESTSDIR}/bud/from-multiple-files run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Dockerfile1.scratch -f Dockerfile2.withfrom ${TESTSDIR}/bud/from-multiple-files
@ -689,7 +684,6 @@ _EOF
} }
@test "bud-multi-stage-builds" { @test "bud-multi-stage-builds" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
target=multi-stage-index target=multi-stage-index
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/multi-stage-builds/Dockerfile.index ${TESTSDIR}/bud/multi-stage-builds run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/multi-stage-builds/Dockerfile.index ${TESTSDIR}/bud/multi-stage-builds
@ -726,7 +720,6 @@ _EOF
} }
@test "bud-multi-stage-builds-small-as" { @test "bud-multi-stage-builds-small-as" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
target=multi-stage-index target=multi-stage-index
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/multi-stage-builds-small-as/Dockerfile.index ${TESTSDIR}/bud/multi-stage-builds-small-as run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/multi-stage-builds-small-as/Dockerfile.index ${TESTSDIR}/bud/multi-stage-builds-small-as
@ -763,7 +756,6 @@ _EOF
} }
@test "bud-preserve-subvolumes" { @test "bud-preserve-subvolumes" {
skip_if_rootless_environment
# This Dockerfile needs us to be able to handle a working RUN instruction. # This Dockerfile needs us to be able to handle a working RUN instruction.
skip_if_no_runtime skip_if_no_runtime
@ -906,7 +898,6 @@ function _test_http() {
} }
@test "bud-volume-perms" { @test "bud-volume-perms" {
skip_if_rootless_environment
# This Dockerfile needs us to be able to handle a working RUN instruction. # This Dockerfile needs us to be able to handle a working RUN instruction.
skip_if_no_runtime skip_if_no_runtime
@ -957,7 +948,6 @@ function _test_http() {
} }
@test "bud-from-glob" { @test "bud-from-glob" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
target=alpine-image target=alpine-image
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Dockerfile2.glob ${TESTSDIR}/bud/from-multiple-files run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Dockerfile2.glob ${TESTSDIR}/bud/from-multiple-files
@ -1028,7 +1018,6 @@ function _test_http() {
} }
@test "bud with symlinks" { @test "bud with symlinks" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
target=alpine-image target=alpine-image
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} ${TESTSDIR}/bud/symlink run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} ${TESTSDIR}/bud/symlink
@ -1048,7 +1037,6 @@ function _test_http() {
} }
@test "bud with symlinks to relative path" { @test "bud with symlinks to relative path" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
target=alpine-image target=alpine-image
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Dockerfile.relative-symlink ${TESTSDIR}/bud/symlink run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Dockerfile.relative-symlink ${TESTSDIR}/bud/symlink
@ -1067,7 +1055,6 @@ function _test_http() {
} }
@test "bud with multiple symlinks in a path" { @test "bud with multiple symlinks in a path" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
target=alpine-image target=alpine-image
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/symlink/Dockerfile.multiple-symlinks ${TESTSDIR}/bud/symlink run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/symlink/Dockerfile.multiple-symlinks ${TESTSDIR}/bud/symlink
@ -1100,7 +1087,6 @@ function _test_http() {
} }
@test "bud multi-stage with symlink to absolute path" { @test "bud multi-stage with symlink to absolute path" {
skip_if_rootless_environment
_prefetch ubuntu _prefetch ubuntu
target=ubuntu-image target=ubuntu-image
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Dockerfile.absolute-symlink ${TESTSDIR}/bud/symlink run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Dockerfile.absolute-symlink ${TESTSDIR}/bud/symlink
@ -1118,7 +1104,6 @@ function _test_http() {
} }
@test "bud multi-stage with dir symlink to absolute path" { @test "bud multi-stage with dir symlink to absolute path" {
skip_if_rootless_environment
_prefetch ubuntu _prefetch ubuntu
target=ubuntu-image target=ubuntu-image
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Dockerfile.absolute-dir-symlink ${TESTSDIR}/bud/symlink run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Dockerfile.absolute-dir-symlink ${TESTSDIR}/bud/symlink
@ -1276,7 +1261,6 @@ function _test_http() {
} }
@test "bud-onbuild" { @test "bud-onbuild" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
target=onbuild target=onbuild
run_buildah build --format docker --signature-policy ${TESTSDIR}/policy.json -t ${target} ${TESTSDIR}/bud/onbuild run_buildah build --format docker --signature-policy ${TESTSDIR}/policy.json -t ${target} ${TESTSDIR}/bud/onbuild
@ -1359,7 +1343,6 @@ function _test_http() {
} }
@test "bud-from-stdin" { @test "bud-from-stdin" {
skip_if_rootless_environment
target=scratch-image target=scratch-image
cat ${TESTSDIR}/bud/from-multiple-files/Dockerfile1.scratch | run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f - ${TESTSDIR}/bud/from-multiple-files cat ${TESTSDIR}/bud/from-multiple-files/Dockerfile1.scratch | run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f - ${TESTSDIR}/bud/from-multiple-files
run_buildah from --quiet ${target} run_buildah from --quiet ${target}
@ -1630,7 +1613,6 @@ function _test_http() {
} }
@test "bud with FROM AS skip FROM construct" { @test "bud with FROM AS skip FROM construct" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t test1 -f ${TESTSDIR}/bud/from-as/Dockerfile.skip ${TESTSDIR}/bud/from-as run_buildah build --signature-policy ${TESTSDIR}/policy.json -t test1 -f ${TESTSDIR}/bud/from-as/Dockerfile.skip ${TESTSDIR}/bud/from-as
expect_output --substring "LOCAL=/1" expect_output --substring "LOCAL=/1"
@ -1719,7 +1701,6 @@ function _test_http() {
} }
@test "bud with copy-from in Dockerfile no prior FROM" { @test "bud with copy-from in Dockerfile no prior FROM" {
skip_if_rootless_environment
_prefetch busybox quay.io/libpod/testimage:20210610 _prefetch busybox quay.io/libpod/testimage:20210610
target=no-prior-from target=no-prior-from
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/copy-from ${TESTSDIR}/bud/copy-from run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} -f ${TESTSDIR}/bud/copy-from ${TESTSDIR}/bud/copy-from
@ -1742,7 +1723,6 @@ function _test_http() {
} }
@test "bud with copy-from referencing the base image" { @test "bud with copy-from referencing the base image" {
skip_if_rootless_environment
_prefetch busybox _prefetch busybox
target=busybox-derived target=busybox-derived
target_mt=busybox-mt-derived target_mt=busybox-mt-derived
@ -1774,7 +1754,6 @@ function _test_http() {
} }
@test "bud-target" { @test "bud-target" {
skip_if_rootless_environment
_prefetch alpine ubuntu _prefetch alpine ubuntu
target=target target=target
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} --target mytarget ${TESTSDIR}/bud/target run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} --target mytarget ${TESTSDIR}/bud/target
@ -2029,7 +2008,6 @@ _EOF
} }
@test "bud-copy-workdir" { @test "bud-copy-workdir" {
skip_if_rootless_environment
target=testimage target=testimage
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} ${TESTSDIR}/bud/copy-workdir run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} ${TESTSDIR}/bud/copy-workdir
run_buildah from ${target} run_buildah from ${target}
@ -2043,7 +2021,6 @@ _EOF
# regression test for https://github.com/containers/podman/issues/10671 # regression test for https://github.com/containers/podman/issues/10671
@test "bud-copy-workdir --layers" { @test "bud-copy-workdir --layers" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
target=testimage target=testimage
@ -2125,7 +2102,6 @@ _EOF
} }
@test "bud-copy-dockerignore-hardlinks" { @test "bud-copy-dockerignore-hardlinks" {
skip_if_rootless_environment
target=image target=image
mkdir -p ${TESTDIR}/hardlinks/subdir mkdir -p ${TESTDIR}/hardlinks/subdir
cp ${TESTSDIR}/bud/recurse/Dockerfile ${TESTDIR}/hardlinks cp ${TESTSDIR}/bud/recurse/Dockerfile ${TESTDIR}/hardlinks
@ -2303,7 +2279,6 @@ _EOF
} }
@test "bud with Dockerfile from stdin" { @test "bud with Dockerfile from stdin" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
target=df-stdin target=df-stdin
run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} - < ${TESTSDIR}/bud/context-from-stdin/Dockerfile run_buildah build --signature-policy ${TESTSDIR}/policy.json -t ${target} - < ${TESTSDIR}/bud/context-from-stdin/Dockerfile
@ -2321,7 +2296,6 @@ _EOF
} }
@test "bud with Dockerfile from stdin tar" { @test "bud with Dockerfile from stdin tar" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
target=df-stdin target=df-stdin
# 'cmd1 < <(cmd2)' == 'cmd2 | cmd1' but runs cmd1 in this shell, not sub. # 'cmd1 < <(cmd2)' == 'cmd2 | cmd1' but runs cmd1 in this shell, not sub.

View File

@ -14,7 +14,6 @@ load helpers
} }
@test "copy-local-multiple" { @test "copy-local-multiple" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
createrandom ${TESTDIR}/other-randomfile createrandom ${TESTDIR}/other-randomfile
createrandom ${TESTDIR}/third-randomfile createrandom ${TESTDIR}/third-randomfile
@ -54,7 +53,6 @@ load helpers
} }
@test "copy-local-plain" { @test "copy-local-plain" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
createrandom ${TESTDIR}/other-randomfile createrandom ${TESTDIR}/other-randomfile
createrandom ${TESTDIR}/third-randomfile createrandom ${TESTDIR}/third-randomfile
@ -81,7 +79,6 @@ load helpers
} }
@test "copy-local-subdirectory" { @test "copy-local-subdirectory" {
skip_if_rootless_environment
mkdir -p ${TESTDIR}/subdir mkdir -p ${TESTDIR}/subdir
createrandom ${TESTDIR}/subdir/randomfile createrandom ${TESTDIR}/subdir/randomfile
createrandom ${TESTDIR}/subdir/other-randomfile createrandom ${TESTDIR}/subdir/other-randomfile
@ -104,7 +101,6 @@ load helpers
} }
@test "copy-local-force-directory" { @test "copy-local-force-directory" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
run_buildah from --signature-policy ${TESTSDIR}/policy.json scratch run_buildah from --signature-policy ${TESTSDIR}/policy.json scratch
@ -128,7 +124,6 @@ load helpers
} }
@test "copy-url-mtime" { @test "copy-url-mtime" {
skip_if_rootless_environment
# Create a file with random content and a non-now timestamp (so we can # Create a file with random content and a non-now timestamp (so we can
# can trust that buildah correctly set mtime on copy) # can trust that buildah correctly set mtime on copy)
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
@ -242,7 +237,6 @@ load helpers
} }
@test "copy-symlink" { @test "copy-symlink" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
ln -s ${TESTDIR}/randomfile ${TESTDIR}/link-randomfile ln -s ${TESTDIR}/randomfile ${TESTDIR}/link-randomfile
@ -266,7 +260,6 @@ load helpers
} }
@test "ignore-socket" { @test "ignore-socket" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
# This seems to be the least-worst way to create a socket: run and kill nc # This seems to be the least-worst way to create a socket: run and kill nc
nc -lkU ${TESTDIR}/test.socket & nc -lkU ${TESTDIR}/test.socket &
@ -300,7 +293,6 @@ load helpers
} }
@test "copy-symlink-archive-suffix" { @test "copy-symlink-archive-suffix" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile.tar.gz createrandom ${TESTDIR}/randomfile.tar.gz
ln -s ${TESTDIR}/randomfile.tar.gz ${TESTDIR}/link-randomfile.tar.gz ln -s ${TESTDIR}/randomfile.tar.gz ${TESTDIR}/link-randomfile.tar.gz
@ -335,7 +327,6 @@ load helpers
} }
@test "copy --ignorefile" { @test "copy --ignorefile" {
skip_if_rootless_environment
mytest=${TESTDIR}/mytest mytest=${TESTDIR}/mytest
mkdir -p ${mytest} mkdir -p ${mytest}
touch ${mytest}/mystuff touch ${mytest}/mystuff
@ -369,7 +360,6 @@ stuff/mystuff"
} }
@test "copy-quiet" { @test "copy-quiet" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
_prefetch alpine _prefetch alpine
run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine
@ -384,7 +374,6 @@ stuff/mystuff"
} }
@test "copy-from-container" { @test "copy-from-container" {
skip_if_rootless_environment
_prefetch busybox _prefetch busybox
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox
@ -404,7 +393,6 @@ stuff/mystuff"
} }
@test "copy-container-root" { @test "copy-container-root" {
skip_if_rootless_environment
_prefetch busybox _prefetch busybox
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox
@ -422,7 +410,6 @@ stuff/mystuff"
} }
@test "add-from-image" { @test "add-from-image" {
skip_if_rootless_environment
_prefetch busybox _prefetch busybox
run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox run_buildah from --quiet --signature-policy ${TESTSDIR}/policy.json busybox
cid=$output cid=$output

View File

@ -3,7 +3,6 @@
load helpers load helpers
@test "mount-flags-order-verification" { @test "mount-flags-order-verification" {
skip_if_rootless_environment
run_buildah 125 mount cnt1 --notruncate path1 run_buildah 125 mount cnt1 --notruncate path1
check_options_flag_err "--notruncate" check_options_flag_err "--notruncate"
@ -15,7 +14,6 @@ load helpers
} }
@test "mount one container" { @test "mount one container" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine
cid=$output cid=$output
@ -23,12 +21,10 @@ load helpers
} }
@test "mount bad container" { @test "mount bad container" {
skip_if_rootless_environment
run_buildah 125 mount badcontainer run_buildah 125 mount badcontainer
} }
@test "mount multi images" { @test "mount multi images" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine
cid1=$output cid1=$output
@ -40,7 +36,6 @@ load helpers
} }
@test "mount multi images one bad" { @test "mount multi images one bad" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine
cid1=$output cid1=$output
@ -52,7 +47,6 @@ load helpers
} }
@test "list currently mounted containers" { @test "list currently mounted containers" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine
cid1=$output cid1=$output

View File

@ -408,7 +408,6 @@ _EOF
@test "combination-namespaces" { @test "combination-namespaces" {
skip_if_chroot skip_if_chroot
skip_if_rootless skip_if_rootless
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
# mnt is always per-container, cgroup isn't a thing OCI runtime lets us configure # mnt is always per-container, cgroup isn't a thing OCI runtime lets us configure
@ -464,7 +463,6 @@ _EOF
} }
@test "invalid userns-uid-map userns-gid-map" { @test "invalid userns-uid-map userns-gid-map" {
skip_if_rootless_environment
run_buildah 125 from --userns-uid-map 16 --userns-gid-map 0:48:16 scratch run_buildah 125 from --userns-uid-map 16 --userns-gid-map 0:48:16 scratch
expect_output 'error initializing ID mappings: userns-uid-map setting is malformed expected ["uint32:uint32:uint32"]: ["16"]' expect_output 'error initializing ID mappings: userns-uid-map setting is malformed expected ["uint32:uint32:uint32"]: ["16"]'

View File

@ -74,7 +74,6 @@ load helpers
} }
@test "use prune to remove dangling images" { @test "use prune to remove dangling images" {
skip_if_rootless_environment
_prefetch busybox _prefetch busybox
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
@ -115,7 +114,6 @@ load helpers
} }
@test "use prune to remove dangling images with parent" { @test "use prune to remove dangling images with parent" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
createrandom ${TESTDIR}/other-randomfile createrandom ${TESTDIR}/other-randomfile

View File

@ -3,7 +3,6 @@
load helpers load helpers
@test "run" { @test "run" {
skip_if_rootless_environment
skip_if_no_runtime skip_if_no_runtime
_prefetch alpine _prefetch alpine
@ -182,7 +181,6 @@ function configure_and_check_user() {
} }
@test "run-user" { @test "run-user" {
skip_if_rootless_environment
skip_if_no_runtime skip_if_no_runtime
eval $(go env) eval $(go env)
@ -490,7 +488,6 @@ function configure_and_check_user() {
} }
@test "run-builtin-volume-omitted" { @test "run-builtin-volume-omitted" {
skip_if_rootless_environment
# This image is known to include a volume, but not include the mountpoint # This image is known to include a volume, but not include the mountpoint
# in the image. # in the image.
run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json quay.io/libpod/registry:volume_omitted run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json quay.io/libpod/registry:volume_omitted

View File

@ -17,7 +17,6 @@ function check_lengths() {
} }
@test "squash" { @test "squash" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
run_buildah from scratch run_buildah from scratch
cid=$output cid=$output
@ -57,7 +56,6 @@ function check_lengths() {
} }
@test "squash-using-dockerfile" { @test "squash-using-dockerfile" {
skip_if_rootless_environment
createrandom ${TESTDIR}/randomfile createrandom ${TESTDIR}/randomfile
image=stage0 image=stage0
from=scratch from=scratch

View File

@ -14,7 +14,6 @@ load helpers
} }
@test "umount one image" { @test "umount one image" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine
cid=$output cid=$output
@ -27,7 +26,6 @@ load helpers
} }
@test "umount multi images" { @test "umount multi images" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine
cid1=$output cid1=$output
@ -42,7 +40,6 @@ load helpers
} }
@test "umount all images" { @test "umount all images" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine
cid1=$output cid1=$output
@ -57,7 +54,6 @@ load helpers
} }
@test "umount multi images one bad" { @test "umount multi images one bad" {
skip_if_rootless_environment
_prefetch alpine _prefetch alpine
run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine run_buildah from --quiet --pull=false --signature-policy ${TESTSDIR}/policy.json alpine
cid1=$output cid1=$output