blob: cc72eb66e2e896e041a8d9fa670b13bd2a6825c9 [file] [log] [blame]
Aleksandra Maciaga6def5972020-02-20 09:42:03 +01001*** Settings ***
2
3Documentation Run healthcheck
4Library RequestsLibrary
5Resource ./resources/cert-service-keywords.robot
6
7Suite Setup Create sessions
8
9*** Test Cases ***
10
11AAF Cert Service API Health Check
12 [Tags] AAF-CERT-SERVICE
13 [Documentation] Run healthcheck
14 Run Healthcheck
15
16AAF Cert Service API Send Valid CSR and Valid PK
17 [Tags] AAF-CERT-SERVICE
18 [Documentation] Send request to /v1/certificate/test endpoint and expect 200
19 Send Request And Validate Response ${CERT_PATH} ${VALID_CSR_FILE} ${VALID_PK_FILE} 200
20
21AAF Cert Service API Send Invalid CSR and Valid PK
22 [Tags] AAF-CERT-SERVICE
23 [Documentation] Send request to /v1/certificate/test endpoint and expect 400
24 Send Request And Validate Response ${CERT_PATH} ${INVALID_CSR_FILE} ${VALID_PK_FILE} 400
25
26AAF Cert Service API Send Valid CSR and Invalid PK
27 [Tags] AAF-CERT-SERVICE
28 [Documentation] Send request to /v1/certificate/test endpoint and expect 400
29 Send Request And Validate Response ${CERT_PATH} ${VALID_CSR_FILE} ${INVALID_PK_FILE} 400