Aleksandra Maciaga | 6def597 | 2020-02-20 09:42:03 +0100 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
Bogumil Zebek | 78bc8f3 | 2020-02-27 07:39:38 +0100 | [diff] [blame] | 3 | Documentation AAF test case scenarios |
Aleksandra Maciaga | 6def597 | 2020-02-20 09:42:03 +0100 | [diff] [blame] | 4 | Library RequestsLibrary |
| 5 | Resource ./resources/cert-service-keywords.robot |
| 6 | |
| 7 | Suite Setup Create sessions |
| 8 | |
| 9 | *** Test Cases *** |
| 10 | |
| 11 | AAF Cert Service API Health Check |
| 12 | [Tags] AAF-CERT-SERVICE |
| 13 | [Documentation] Run healthcheck |
| 14 | Run Healthcheck |
| 15 | |
Aleksandra Maciaga | 8d762b1 | 2020-02-24 14:24:42 +0100 | [diff] [blame] | 16 | AAF 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 Maciaga | 6def597 | 2020-02-20 09:42:03 +0100 | [diff] [blame] | 21 | AAF Cert Service API Send Valid CSR and Valid PK |
| 22 | [Tags] AAF-CERT-SERVICE |
Bogumil Zebek | 78bc8f3 | 2020-02-27 07:39:38 +0100 | [diff] [blame] | 23 | [Documentation] Send request to ${CERT_PATH} endpoint and expect 200 |
Aleksandra Maciaga | 8d762b1 | 2020-02-24 14:24:42 +0100 | [diff] [blame] | 24 | Send Get Request with Header And Validate Response ${CERT_PATH} ${VALID_CSR_FILE} ${VALID_PK_FILE} 200 |
| 25 | |
| 26 | AAF 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 | |
| 31 | AAF Cert Service API Send Request without Header |
| 32 | [Tags] AAF-CERT-SERVICE |
Bogumil Zebek | 78bc8f3 | 2020-02-27 07:39:38 +0100 | [diff] [blame] | 33 | [Documentation] Send request without header to ${CERT_PATH} endpoint and expect 400 |
Aleksandra Maciaga | 8d762b1 | 2020-02-24 14:24:42 +0100 | [diff] [blame] | 34 | Send Get Request And Validate Response ${CERT_PATH} 400 |
Aleksandra Maciaga | 6def597 | 2020-02-20 09:42:03 +0100 | [diff] [blame] | 35 | |
| 36 | AAF Cert Service API Send Invalid CSR and Valid PK |
| 37 | [Tags] AAF-CERT-SERVICE |
Bogumil Zebek | 78bc8f3 | 2020-02-27 07:39:38 +0100 | [diff] [blame] | 38 | [Documentation] Send request to ${CERT_PATH} endpoint and expect 400 |
Aleksandra Maciaga | 8d762b1 | 2020-02-24 14:24:42 +0100 | [diff] [blame] | 39 | Send Get Request with Header And Validate Response ${CERT_PATH} ${INVALID_CSR_FILE} ${VALID_PK_FILE} 400 |
Aleksandra Maciaga | 6def597 | 2020-02-20 09:42:03 +0100 | [diff] [blame] | 40 | |
| 41 | AAF Cert Service API Send Valid CSR and Invalid PK |
| 42 | [Tags] AAF-CERT-SERVICE |
Bogumil Zebek | 78bc8f3 | 2020-02-27 07:39:38 +0100 | [diff] [blame] | 43 | [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 |