summaryrefslogtreecommitdiff
path: root/test/apiv2/60-auth.at
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2022-06-08 13:41:43 -0600
committerEd Santiago <santiago@redhat.com>2022-06-08 19:33:07 -0600
commitbce97a3b5dd1477c74232b49d246491aa289a995 (patch)
treec1258a578d6126df68210c1e3edb332ef63be22a /test/apiv2/60-auth.at
parent576c739e5ff01c760b383a258c62ed3ca7e1c30c (diff)
downloadpodman-bce97a3b5dd1477c74232b49d246491aa289a995.tar.gz
podman-bce97a3b5dd1477c74232b49d246491aa289a995.tar.bz2
podman-bce97a3b5dd1477c74232b49d246491aa289a995.zip
apiv2 tests: clean up
Mostly fix a bad design decision I made early on, re: registry. old: registry starts once, runs to the end new: registry is brought up on demand, then stopped Reason: there are times when we need a password-controlled registry, and times when we need it open. As long as I'm in here, I've also cleaned up some confusing code and fixed things so tests can run rootless again. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/apiv2/60-auth.at')
-rw-r--r--test/apiv2/60-auth.at4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/apiv2/60-auth.at b/test/apiv2/60-auth.at
index 1e087d12b..465b0a96d 100644
--- a/test/apiv2/60-auth.at
+++ b/test/apiv2/60-auth.at
@@ -3,7 +3,7 @@
# registry-related tests
#
-start_registry
+start_registry htpasswd
# Test unreachable
t POST /v1.40/auth username=$REGISTRY_USERNAME password=WrOnGPassWord serveraddress=does.not.exist.io:1234/ \
@@ -26,3 +26,5 @@ t POST /v1.40/auth username=$REGISTRY_USERNAME password=$REGISTRY_PASSWORD serve
200 \
.Status="Login Succeeded" \
.IdentityToken=""
+
+stop_registry