blob: aa2691a73dd357ff0ce7ef556bf9075fb9fcbba6 [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
Aleksandra Maciaga8d762b12020-02-24 14:24:42 +010016AAF Cert Service API Reload Configuration
17 [Tags] AAF-CERT-SERVICE
18 [Documentation] Reload configuration
19 Send Post Request And Validate Response /actuator/refresh 200
20
Aleksandra Maciaga6def5972020-02-20 09:42:03 +010021AAF Cert Service API Send Valid CSR and Valid PK
22 [Tags] AAF-CERT-SERVICE
23 [Documentation] Send request to /v1/certificate/test endpoint and expect 200
Aleksandra Maciaga8d762b12020-02-24 14:24:42 +010024 Send Get Request with Header And Validate Response ${CERT_PATH} ${VALID_CSR_FILE} ${VALID_PK_FILE} 200
25
26AAF Cert Service API Send Valid CSR and Valid PK to Wrong Path
27 [Tags] AAF-CERT-SERVICE
28 [Documentation] Send request to /v1/certificate/ endpoint and expect 404
29 Send Get Request with Header And Validate Response /v1/certificate/ ${VALID_CSR_FILE} ${VALID_PK_FILE} 404
30
31AAF Cert Service API Send Request without Header
32 [Tags] AAF-CERT-SERVICE
33 [Documentation] Send request to /v1/certificate/ endpoint and expect 400
34 Send Get Request And Validate Response ${CERT_PATH} 400
Aleksandra Maciaga6def5972020-02-20 09:42:03 +010035
36AAF Cert Service API Send Invalid CSR and Valid PK
37 [Tags] AAF-CERT-SERVICE
38 [Documentation] Send request to /v1/certificate/test endpoint and expect 400
Aleksandra Maciaga8d762b12020-02-24 14:24:42 +010039 Send Get Request with Header And Validate Response ${CERT_PATH} ${INVALID_CSR_FILE} ${VALID_PK_FILE} 400
Aleksandra Maciaga6def5972020-02-20 09:42:03 +010040
41AAF Cert Service API Send Valid CSR and Invalid PK
42 [Tags] AAF-CERT-SERVICE
43 [Documentation] Send request to /v1/certificate/test endpoint and expect 400
Aleksandra Maciaga8d762b12020-02-24 14:24:42 +010044 Send Get Request with Header And Validate Response ${CERT_PATH} ${VALID_CSR_FILE} ${INVALID_PK_FILE} 400