3 Documentation AAF Cert Service API test case scenarios
4 Library RequestsLibrary
5 Resource ./resources/cert-service-keywords.robot
7 Suite Setup Create sessions
12 [Tags] AAF-CERT-SERVICE
13 [Documentation] Service is up and running
17 [Tags] AAF-CERT-SERVICE
18 [Documentation] Configuration was changed
19 Send Get Request And Validate Response /reload 200
21 Generate Certicicate For CA Name
22 [Tags] AAF-CERT-SERVICE
23 [Documentation] Send request to ${CERT_SERVICE_ENDPOINT}/${CA_NAME} endpoint and expect 200
24 Send Get Request with Header And Validate Response ${CERT_SERVICE_ENDPOINT}/${CA_NAME} ${VALID_CSR_FILE} ${VALID_PK_FILE} 200
26 Report Not Found Error When Path Is Not Valid
27 [Tags] AAF-CERT-SERVICE
28 [Documentation] Send request to ${CERT_SERVICE_ENDPOINT}/ endpoint and expect 404
29 Send Get Request with Header And Validate Response ${CERT_SERVICE_ENDPOINT}/ ${VALID_CSR_FILE} ${VALID_PK_FILE} 404
31 Report Bad Request Error When Header Is Missing
32 [Tags] AAF-CERT-SERVICE
33 [Documentation] Send request without header to ${CERT_SERVICE_ENDPOINT}/${CA_NAME} endpoint and expect 400
34 Send Get Request And Validate Response ${CERT_SERVICE_ENDPOINT}/${CA_NAME} 400
36 Report Bad Request Error When CSR Is Not Valid
37 [Tags] AAF-CERT-SERVICE
38 [Documentation] Send request to ${CERT_SERVICE_ENDPOINT}/${CA_NAME} endpoint and expect 400
39 Send Get Request with Header And Validate Response ${CERT_SERVICE_ENDPOINT}/${CA_NAME} ${INVALID_CSR_FILE} ${VALID_PK_FILE} 400
41 Report Bad Request Error When PK Is Not Valid
42 [Tags] AAF-CERT-SERVICE
43 [Documentation] Send request to ${CERT_SERVICE_ENDPOINT}/${CA_NAME} endpoint and expect 400
44 Send Get Request with Header And Validate Response ${CERT_SERVICE_ENDPOINT}/${CA_NAME} ${VALID_CSR_FILE} ${INVALID_PK_FILE} 400