"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/push.bats" between
buildah-1.10.1.tar.gz and buildah-1.11.0.tar.gz

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

push.bats  (buildah-1.10.1):push.bats  (buildah-1.11.0)
skipping to change at line 65 skipping to change at line 65
@test "push with imageid" { @test "push with imageid" {
cid=$(buildah from --pull --signature-policy ${TESTSDIR}/policy.json alpine) cid=$(buildah from --pull --signature-policy ${TESTSDIR}/policy.json alpine)
imageid=$(buildah images -q) imageid=$(buildah images -q)
run_buildah push --signature-policy ${TESTSDIR}/policy.json $imageid dir:my-di r run_buildah push --signature-policy ${TESTSDIR}/policy.json $imageid dir:my-di r
buildah rm "$cid" buildah rm "$cid"
buildah rmi alpine buildah rmi alpine
rm -rf my-dir rm -rf my-dir
} }
@test "push with imageid and digest file" {
cid=$(buildah from --pull --signature-policy ${TESTSDIR}/policy.json alpine)
imageid=$(buildah images -q)
run_buildah push --digestfile=${TESTDIR}/digest.txt --signature-policy ${TESTS
DIR}/policy.json $imageid dir:my-dir
cat ${TESTDIR}/digest.txt
test -s ${TESTDIR}/digest.txt
buildah rm "$cid"
buildah rmi alpine
rm -rf my-dir
}
@test "push without destination" { @test "push without destination" {
buildah pull --signature-policy ${TESTSDIR}/policy.json busybox buildah pull --signature-policy ${TESTSDIR}/policy.json busybox
run_buildah 1 push --signature-policy ${TESTSDIR}/policy.json busybox run_buildah 1 push --signature-policy ${TESTSDIR}/policy.json busybox
expect_output --substring "docker://busybox" expect_output --substring "docker://busybox"
buildah rmi busybox buildah rmi busybox
} }
@test "push-denied-by-registry-sources" {
export BUILD_REGISTRY_SOURCES='{"blockedRegistries": ["registry.example.com"]}
'
cid=$(buildah from --signature-policy ${TESTSDIR}/policy.json --quiet busybox)
run_buildah 1 commit --signature-policy ${TESTSDIR}/policy.json ${cid} docker:
//registry.example.com/busierbox
expect_output --substring 'commit to registry at "registry.example.com" denied
by policy: it is in the blocked registries list'
buildah pull --signature-policy ${TESTSDIR}/policy.json --quiet busybox
run_buildah 1 push --signature-policy ${TESTSDIR}/policy.json busybox docker:/
/registry.example.com/evenbusierbox
expect_output --substring 'push to registry at "registry.example.com" denied b
y policy: it is in the blocked registries list'
export BUILD_REGISTRY_SOURCES='{"allowedRegistries": ["some-other-registry.exa
mple.com"]}'
cid=$(buildah from --signature-policy ${TESTSDIR}/policy.json --quiet busybox)
run_buildah 1 commit --signature-policy ${TESTSDIR}/policy.json ${cid} docker:
//registry.example.com/busierbox
expect_output --substring 'commit to registry at "registry.example.com" denied
by policy: not in allowed registries list'
buildah pull --signature-policy ${TESTSDIR}/policy.json --quiet busybox
run_buildah 1 push --signature-policy ${TESTSDIR}/policy.json busybox docker:/
/registry.example.com/evenbusierbox
expect_output --substring 'push to registry at "registry.example.com" denied b
y policy: not in allowed registries list'
}
 End of changes. 2 change blocks. 
0 lines changed or deleted 12 lines changed or added

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