Skip to content

Commit

Permalink
test: add more docker compat tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Oct 29, 2024
1 parent 709883b commit 2196932
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/config-ui.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"distSpecVersion": "1.1.0",
"storage": {
"rootDirectory": "/tmp/zot"
"rootDirectory": "/data/hdd/rchincha/tmp/zot"
},
"http": {
"address": "0.0.0.0",
"port": "8080"
"port": "8080",
"compat": ["docker2s2"]
},
"log": {
"level": "debug"
Expand Down
12 changes: 12 additions & 0 deletions test/blackbox/docker_compat.bats
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,16 @@ EOF
[ $(cat ${zot_root_dir}/test/index.json | jq .manifests[0].mediaType) = '"application/vnd.docker.distribution.manifest.v2+json"' ]
run docker pull localhost:${zot_port}/test
[ "$status" -eq 0 ]
# inspect and trigger a CVE scan
skopeo inspect --tls-verify=false docker://localhost:${zot_port}/test
[ "$status" -eq 0 ]
# delete
skopeo delete --tls-verify=false docker://localhost:${zot_port}/test
skopeo inspect --tls-verify=false docker://localhost:${zot_port}/test
[ "$status" -ne 0 ]
# re-push
run docker push localhost:${zot_port}/test
[ "$status" -eq 0 ]
skopeo inspect --tls-verify=false docker://localhost:${zot_port}/test
[ "$status" -eq 0 ]
}

0 comments on commit 2196932

Please sign in to comment.