E2E Integration Test for NETCONF/TLS Configuration in SDNC.
[integration/csit.git] / tests / sdnc / sdnc_netconf_tls_post_deploy / sdnc_post_deploy_cert_check.robot
1 *** Settings ***
2
3 Documentation     SDNC, Netconf-Pnp-Simulator E2E Test Case Scenarios
4
5 Library               RequestsLibrary
6 Resource          ./resources/sdnc-keywords.robot
7
8 Suite Setup       Create sessions
9
10 *** Test Cases ***
11
12 Health Check AAF CertService
13     [Tags]      AAF-CERT-SERVICE
14     [Documentation]   Service is Up and Running
15     Run health check
16
17 Reload AAF CertService Configuration
18     [Tags]      AAF-CERT-SERVICE
19     [Documentation]   Configuration is Reloaded
20     Send Get Request And Validate Response  /reload  200
21
22 Check AAF CertService Container Is Ready
23     [Tags]      AAF-CERT-SERVICE
24     [Documentation]   Send Request to /ready Endpoint and Expect 200
25     Send Get Request And Validate Response  /ready  200
26
27 Check SDNC Keystore For Netopeer2 Certificates
28     [Tags]      SDNC-NETOPEER2-CERT-DEPLOYMENT
29     [Documentation]    Checking Keystore after SDNC istallation
30     Send Get Request And Validate Response Sdnc  ${SDNC_KEYSTORE_CONFIG_PATH}  200
31
32 Check SDNC And PNF TLS Connection Over Netopeer2 Certificates
33     [Tags]      SDNC-PNF-TLS-CONNECTION-CHECK
34     [Documentation]    Checking PNF Mount after SDNC Installation
35     Send Get Request And Validate TLS Connection Response  ${SDNC_MOUNT_PATH}  200
36
37 Check PNF Delete And Remove Netopeer2 Certificates From Keystore
38     [Tags]      SDNC-PNF-MOUNT-DELETE-CLEAR-KEYSTORE
39     [Documentation]    Checking PNF Mount Delete from SDNC
40     Send Delete Request And Validate PNF Mount Deleted  ${SDNC_MOUNT_PATH}  200
41
42 Check AAF-CertService Successfully Creates Certificates for SDNC
43     [Tags]      AAF-CERT-SERVICE-SDNC
44     [Documentation]  Run with SDNC CSR and Expected Exit Code 0
45     Run Cert Service Client And Validate JKS File Creation And Client Exit Code  ${SDNC_CSR_FILE}  ${SDNC_CONTAINER_NAME}  0
46
47 Check SDNC-ODL Certificates Installation In Keystore And Truststore
48     [Tags]      SDNC-ODL-CERTIFICATE-KEYSTORE-VALIDATE
49     [Documentation]  Validate Certificates Got Installed in SDNC-ODL Keystore
50     Send Get Request And Validate Response Sdnc  ${SDNC_KEYSTORE_CONFIG_PATH}  200
51
52 Check AAF-CertService Successfully Creates Certificates for Netconf-Pnp-Simulator
53     [Tags]      AAF-CERT-SERVICE-NETCONF_PNP_SIMULATOR
54     [Documentation]  Run with NETCONF-PNP-SIMULATOR CSR and Expect Exit Code 0
55     Run Cert Service Client And Validate JKS File Creation And Client Exit Code  ${NETCONF_PNP_SIM_CSR_FILE}  ${NETCONF_PNP_SIM_CONTAINER_NAME}  0
56
57 Check SDNC-ODL Netconf-Pnp-Simulatore TLS Connection Establishment
58     [Tags]      SDNC-ODL-NETCONF-PNP_SIMULATION-TLS-CONNECTION
59     [Documentation]  Validate SDNC-ODL and Netconf-Pnp-Simulation TLS Connection Establishment
60     Send Get Request And Validate TLS Connection Response  ${SDNC_MOUNT_PATH}  200