ci: cram: add test for basic authentication with wrong password

Add a test to check signature server Basic authentication with
a wrong password.
This complements the existing tests that verify authentication
with a correct password.

References: PCF-2279, FEAT-300
Signed-off-by: Nabil BIZID <nabil.bizid@softathome.com>
This commit is contained in:
Nabil BIZID 2026-05-20 20:12:46 +02:00 committed by Hela Saadani
parent 9b943bbaab
commit 53c2297f54

View File

@ -85,7 +85,17 @@ Test that a custom User-Agent header value is sent in HTTP requests to the signa
[1]
Test container installation with Basic authentication on the signature server:
Test container installation with Basic authentication using a wrong password - expect authentication failure:
$ R "${S} && listen_dustatechange"
$ R "${S} && install_basic_container_no_wait --signature_user --signature_pwd wrongpass --signature https://signature.server1.local.com:6443/signature" > /dev/null
$ R "${S} && filtered_event"
FaultCode = 7036
FaultString = "Signature check for [*] failed [Authentication failed: * URL [*]]" (glob)
CurrentState = "Failed"
OperationPerformed = "Install"
Test container installation with Basic authentication using a correct password - expect success:
$ R "${S} && install_basic_container --signature_user --signature_pwd --signature https://signature.server1.local.com:6443/signature" > /dev/null
$ R "${S} && get_container_info --uuid"