summaryrefslogtreecommitdiff
path: root/test/apiv2/15-manifest.at
diff options
context:
space:
mode:
authorVladimir Kochnev <hashtable@yandex.ru>2022-07-25 16:00:23 +0300
committerMatthew Heon <matthew.heon@pm.me>2022-07-26 14:44:05 -0400
commite6ebfbd1e0106d8ddcf19a1ec3f97052592f49ad (patch)
tree18ee57abaae057fdd78a836ee61dd70a670fa8e8 /test/apiv2/15-manifest.at
parent64bc2ee97f2dbcada22cff4364416abb81a3272a (diff)
downloadpodman-e6ebfbd1e0106d8ddcf19a1ec3f97052592f49ad.tar.gz
podman-e6ebfbd1e0106d8ddcf19a1ec3f97052592f49ad.tar.bz2
podman-e6ebfbd1e0106d8ddcf19a1ec3f97052592f49ad.zip
Set TLSVerify=true by default for API endpoints
Option defaults in API must be the same as in CLI. ``` % podman image push --help % podman image pull --help % podman manifest push --help % podman image search --help ``` All of these CLI commands them have --tls-verify=true by default: ``` --tls-verify require HTTPS and verify certificates when accessing the registry (default true) ``` As for `podman image build`, it doesn't have any means to control `tlsVerify` parameter but it must be true by default. Signed-off-by: Vladimir Kochnev <hashtable@yandex.ru>
Diffstat (limited to 'test/apiv2/15-manifest.at')
-rw-r--r--test/apiv2/15-manifest.at2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/apiv2/15-manifest.at b/test/apiv2/15-manifest.at
index 970bed5a8..6584ea8e4 100644
--- a/test/apiv2/15-manifest.at
+++ b/test/apiv2/15-manifest.at
@@ -31,6 +31,8 @@ t POST /v3.4.0/libpod/manifests/$id_abc/add images="[\"containers-storage:$id_ab
t PUT /v4.0.0/libpod/manifests/$id_xyz operation='update' images="[\"containers-storage:$id_xyz_image\"]" 200
t POST "/v3.4.0/libpod/manifests/abc:latest/push?destination=localhost:$REGISTRY_PORT%2Fabc:latest&tlsVerify=false&all=true" 200
+t POST "/v4.0.0/libpod/manifests/xyz:latest/registry/localhost:$REGISTRY_PORT%2Fxyz:latest?all=true" 400 \
+ .cause='x509: certificate signed by unknown authority'
t POST "/v4.0.0/libpod/manifests/xyz:latest/registry/localhost:$REGISTRY_PORT%2Fxyz:latest?tlsVerify=false&all=true" 200
# /v3.x cannot delete a manifest list