diff options
author | Matej Vasek <mvasek@redhat.com> | 2021-09-15 19:12:31 +0200 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-09-22 15:39:01 -0400 |
commit | 1a25a90a4ec01fb254b617a8350683cbf28c6ca5 (patch) | |
tree | ce379c915cf9322251e7e91878177944edf19ba3 /test/apiv2 | |
parent | c8fd65ea6aa8f8e252a52b1c2cc32dae2a9434d5 (diff) | |
download | podman-1a25a90a4ec01fb254b617a8350683cbf28c6ca5.tar.gz podman-1a25a90a4ec01fb254b617a8350683cbf28c6ca5.tar.bz2 podman-1a25a90a4ec01fb254b617a8350683cbf28c6ca5.zip |
Fix /auth compat endpoint
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r-- | test/apiv2/60-auth.at | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/apiv2/60-auth.at b/test/apiv2/60-auth.at index cfde519c1..1e087d12b 100644 --- a/test/apiv2/60-auth.at +++ b/test/apiv2/60-auth.at @@ -5,10 +5,15 @@ start_registry +# Test unreachable +t POST /v1.40/auth username=$REGISTRY_USERNAME password=WrOnGPassWord serveraddress=does.not.exist.io:1234/ \ + 500 \ + .message~'.*no such host.*' + # Test with wrong password. Confirm bad status and appropriate error message t POST /v1.40/auth username=$REGISTRY_USERNAME password=WrOnGPassWord serveraddress=localhost:$REGISTRY_PORT/ \ - 400 \ - .Status~'.* invalid username/password' + 500 \ + .message~'.* 401 Unauthorized' # Test with the right password. Confirm status message t POST /v1.40/auth username=$REGISTRY_USERNAME password=$REGISTRY_PASSWORD serveraddress=localhost:$REGISTRY_PORT/ \ |