blob: daaa07ca46bf2a61a98f726780d98a6fe35c8718 [file] [log] [blame]
Aleksandra Maciaga6def5972020-02-20 09:42:03 +01001*** Settings ***
2
Bogumil Zebek78bc8f32020-02-27 07:39:38 +01003Documentation AAF test case scenarios
Aleksandra Maciaga6def5972020-02-20 09:42:03 +01004Library 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
Bogumil Zebek78bc8f32020-02-27 07:39:38 +010023 [Documentation] Send request to ${CERT_PATH} 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
Bogumil Zebek78bc8f32020-02-27 07:39:38 +010033 [Documentation] Send request without header to ${CERT_PATH} endpoint and expect 400
Aleksandra Maciaga8d762b12020-02-24 14:24:42 +010034 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
Bogumil Zebek78bc8f32020-02-27 07:39:38 +010038 [Documentation] Send request to ${CERT_PATH} 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
Bogumil Zebek78bc8f32020-02-27 07:39:38 +010043 [Documentation] Send request to ${CERT_PATH} endpoint and expect 400
44 Send Get Request with Header And Validate Response ${CERT_PATH} ${VALID_CSR_FILE} ${INVALID_PK_FILE} 400