"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/bud.bats" between
buildah-1.11.2.tar.gz and buildah-1.11.3.tar.gz

About: Buildah is a tool that facilitates building Open Container Initiative (OCI) container images.

bud.bats  (buildah-1.11.2):bud.bats  (buildah-1.11.3)
skipping to change at line 1694 skipping to change at line 1694
} }
@test "bud with additional device" { @test "bud with additional device" {
target=alpine-image target=alpine-image
run_buildah bud --signature-policy ${TESTSDIR}/policy.json --device /dev/fuse -t ${target} -f ${TESTSDIR}/bud/device/Dockerfile ${TESTSDIR}/bud/device run_buildah bud --signature-policy ${TESTSDIR}/policy.json --device /dev/fuse -t ${target} -f ${TESTSDIR}/bud/device/Dockerfile ${TESTSDIR}/bud/device
[ "${status}" -eq 0 ] [ "${status}" -eq 0 ]
expect_output --substring "/dev/fuse" expect_output --substring "/dev/fuse"
buildah rmi ${target} buildah rmi ${target}
} }
@test "bud with Containerfile" {
target=alpine-image
run_buildah bud --signature-policy ${TESTSDIR}/policy.json -t ${target} ${TEST
SDIR}/bud/containerfile
[ "${status}" -eq 0 ]
expect_output --substring "FROM alpine"
buildah rmi ${target}
}
@test "bud with Dockerfile" {
target=alpine-image
run_buildah bud --signature-policy ${TESTSDIR}/policy.json -t ${target} ${TEST
SDIR}/bud/dockerfile
[ "${status}" -eq 0 ]
expect_output --substring "FROM alpine"
buildah rmi ${target}
}
@test "bud with Containerfile and Dockerfile" {
target=alpine-image
run_buildah bud --signature-policy ${TESTSDIR}/policy.json -t ${target} ${TEST
SDIR}/bud/containeranddockerfile
[ "${status}" -eq 0 ]
expect_output --substring "FROM alpine"
buildah rmi ${target}
}
@test "bud-http-context-with-Containerfile" {
starthttpd ${TESTSDIR}/bud/http-context-containerfile
target=scratch-image
buildah bud --signature-policy ${TESTSDIR}/policy.json -t ${target} http://0.0
.0.0:${HTTP_SERVER_PORT}/context.tar
stophttpd
cid=$(buildah from ${target})
buildah rm ${cid}
buildah rmi $(buildah --log-level=error images -q)
run_buildah --log-level=error images -q
expect_output ""
}
@test "bud with Dockerfile from stdin" {
target=df-stdin
cat ${TESTSDIR}/bud/context-from-stdin/Dockerfile | buildah bud --signature-po
licy ${TESTSDIR}/policy.json -t ${target} -
[ "$?" -eq 0 ]
cid=$(buildah from ${target})
root=$(buildah mount ${cid})
run test -s $root/etc/alpine-release
echo "$output"
buildah rm ${cid}
buildah rmi $(buildah --log-level=error images -q)
run_buildah --log-level=error images -q
expect_output ""
}
@test "bud with Dockerfile from stdin tar" {
target=df-stdin
tar -c -C ${TESTSDIR}/bud/context-from-stdin . | buildah bud --signature-polic
y ${TESTSDIR}/policy.json -t ${target} -
[ "$?" -eq 0 ]
cid=$(buildah from ${target})
root=$(buildah mount ${cid})
run test -s $root/etc/alpine-release
echo "$output"
buildah rm ${cid}
buildah rmi $(buildah --log-level=error images -q)
run_buildah --log-level=error images -q
expect_output ""
}
@test "bud containerfile with args" {
target=use-args
touch ${TESTSDIR}/bud/use-args/abc.txt
run_buildah bud --signature-policy ${TESTSDIR}/policy.json -t ${target} --buil
d-arg=abc.txt ${TESTSDIR}/bud/use-args
echo "$output"
expect_output --substring "COMMIT use-args"
ctrID=$(buildah from ${target})
run_buildah run $ctrID ls abc.txt
echo "$output"
expect_output --substring "abc.txt"
run_buildah bud --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Con
tainerfile.destination --build-arg=testArg=abc.txt --build-arg=destination=/tmp
${TESTSDIR}/bud/use-args
echo "$output"
expect_output --substring "COMMIT use-args"
ctrID=$(buildah from ${target})
run_buildah run $ctrID ls /tmp/abc.txt
echo "$output"
expect_output --substring "abc.txt"
run_buildah bud --signature-policy ${TESTSDIR}/policy.json -t ${target} -f Con
tainerfile.dest_nobrace --build-arg=testArg=abc.txt --build-arg=destination=/tmp
${TESTSDIR}/bud/use-args
echo "$output"
expect_output --substring "COMMIT use-args"
ctrID=$(buildah from ${target})
run_buildah run $ctrID ls /tmp/abc.txt
echo "$output"
expect_output --substring "abc.txt"
rm ${TESTSDIR}/bud/use-args/abc.txt
buildah rm --all
buildah rmi --all --force
}
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)