Aleksandra Maciaga | 6def597 | 2020-02-20 09:42:03 +0100 | [diff] [blame^] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Run healthcheck |
| 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 | |
| 16 | AAF 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 | |
| 21 | AAF 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 | |
| 26 | AAF 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 |