rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation 5G Bulk PM Usecase functionality |
| 3 | |
| 4 | Library RequestsLibrary |
| 5 | Library OperatingSystem |
| 6 | Library Collections |
| 7 | Library String |
| 8 | Library DateTime |
| 9 | Library SSHLibrary |
| 10 | Library JSONLibrary |
| 11 | Library Process |
| 12 | Library ONAPLibrary.JSON |
| 13 | Library ONAPLibrary.Utilities |
mrichomme | a717217 | 2020-05-15 14:42:12 +0200 | [diff] [blame] | 14 | Resource ../../resources/usecases/5gbulkpm_interface.robot |
| 15 | Resource ../../resources/mr_interface.robot |
| 16 | Resource ../../resources/dr_interface.robot |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 17 | Suite Setup Send File Ready Event to VES Collector test org.3GPP.32.435#measCollec V10 |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 18 | Suite Teardown Usecase Teardown |
| 19 | |
| 20 | *** Variables *** |
| 21 | ${INVENTORY_ENDPOINT} /dcae-service-types |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 22 | ${XNF_SFTP_BLUEPRINT_PATH} ${EXECDIR}/robot/assets/usecases/5gbulkpm/k8s-sftp.yaml |
| 23 | ${BLUEPRINT_TEMPLATE_PATH} ${EXECDIR}/robot/assets/usecases/5gbulkpm/blueprintTemplate.json |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 24 | ${DEPLOYMENT_ENDPOINT} dcae-deployments |
| 25 | ${MR_TOPIC_CHECK_PATH} /topics |
| 26 | ${DR_SUB_CHECK_PATH} /internal/prov |
| 27 | ${MR_TOPIC_URL_PATH} /events/org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS/CG1/C1 |
Krzysztof Kuzmicki | ae8615f | 2020-05-29 12:35:06 +0200 | [diff] [blame] | 28 | ${MR_TOPIC_URL_PATH_FOR_POST} /events/org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 29 | ${DMAAP_BC_MR_CLIENT_PATH} /webapi/mr_clients |
| 30 | ${DMAAP_BC_MR_CLUSTER_PATH} /webapi/mr_clusters |
| 31 | ${PMMAPPER_HEALTH_CHECK_PATH} /healthcheck |
| 32 | ${JSON_DATA_FILE} ${EXECDIR}/robot/assets/usecases/5gbulkpm/Notification.json |
| 33 | ${VES_LISTENER_PATH} /eventListener/v7 |
| 34 | ${PMMAPPER_SUB_ROLE_DATA} ${EXECDIR}/robot/assets/usecases/5gbulkpm/sub.json |
| 35 | ${PMMAPPER_MR_CLUSTER_DATA} ${EXECDIR}/robot/assets/usecases/5gbulkpm/mr_clusters.json |
Krzysztof Kuzmicki | 52a02b2 | 2020-04-08 12:02:05 +0200 | [diff] [blame] | 36 | ${NEXUS3} ${GLOBAL_INJECTED_NEXUS_DOCKER_REPO} |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 37 | ${SET_KNOWN_HOSTS_FILE_PATH} kubectl set env deployment/$(kubectl get deployment -n onap | grep datafile | awk '{print $1}') KNOWN_HOSTS_FILE_PATH=/home/datafile/.ssh/known_hosts -n onap |
| 38 | ${CHECK_ENV_SET} kubectl set env pod/$(kubectl get pod -n onap | grep datafile | awk '{print $1}') --list -n onap |
| 39 | ${GET_RSA_KEY} kubectl exec $(kubectl get pod -n onap | grep sftpserver | awk '{print $1}') -n onap -- ssh-keyscan -t rsa sftpserver > /tmp/known_hosts |
| 40 | ${COPY_RSA_KEY} kubectl cp /tmp/known_hosts $(kubectl get pod -n onap | grep datafile | awk '{print $1}'):/home/datafile/.ssh/known_hosts -n onap |
| 41 | ${CHECK_DFC_LOGS} kubectl logs $(kubectl get pod -n onap | grep datafile | awk '{print $1}') -n onap --tail=4 |
| 42 | ${EXPECTED_PRINT} StrictHostKeyChecking is enabled but environment variable KNOWN_HOSTS_FILE_PATH is not set or points to not existing file |
Krzysztof Kuzmicki | ae8615f | 2020-05-29 12:35:06 +0200 | [diff] [blame] | 43 | |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 44 | *** Test Cases *** |
| 45 | |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 46 | Setting Global Variables |
| 47 | [Documentation] |
| 48 | ... This test case checks suite if it is working in default or custom mode and sets proper variables depended on used mode. |
| 49 | ... Default mode is based on a previous version of 5gbulkpm test case which it test PM file available in robot image. |
| 50 | ... Custom mode is used only in xtesing. Can be executed only as k8s job described in https://gerrit.onap.org/r/gitweb?p=integration/xtesting.git;a=blob_plain;f=smoke-usecases-robot/README.md;hb=refs/heads/master |
| 51 | ... Custom mode is used to validate custom PM files. All details how to provide custom PM files are described in documentation above. |
| 52 | ... By default in custom mode all PM details are not logged to robot log files, so they are not send to community name: TEST_DB_URL http://testresults.opnfv.org/onap/api/v1/results |
| 53 | [Tags] 5gbulkpm 5gbulkpm_checking_sftp_rsa_key |
| 54 | ${env_variables} = Get Environment Variables |
| 55 | ${bulk_pm_mode}= Get Variable Value ${env_variables["BULK_PM_MODE"]} default |
| 56 | ${pm_log_level}= Get Variable Value ${env_variables["PM_LOG_LEVEL"]} NONE |
| 57 | ${test_variables} = Create Dictionary |
| 58 | Run Keyword If "${bulk_pm_mode}" == "custom" Set To Dictionary ${test_variables} FILE_FORMAT_TYPE=${env_variables["FILE_FORMAT_TYPE"]} |
| 59 | ... FILE_FORMAT_VERSION=${env_variables["FILE_FORMAT_VERSION"]} |
| 60 | ... PM_FILE_PATH=${env_variables["PM_FILE_PATH"]} |
| 61 | ... EXPECTED_PM_STR=${env_variables["EXPECTED_PM_STR"]} |
| 62 | ... EXPECTED_EVENT_JSON_PATH=${env_variables["EXPECTED_EVENT_JSON_PATH"]} |
| 63 | ... ELSE Set To Dictionary ${test_variables} FILE_FORMAT_TYPE=org.3GPP.32.435#measCollec |
| 64 | ... FILE_FORMAT_VERSION=V10 |
| 65 | ... PM_FILE_PATH=${EXECDIR}/robot/assets/usecases/5gbulkpm/pmfiles/A20181002.0000-1000-0015-1000_5G.xml.gz |
| 66 | ... EXPECTED_PM_STR=perf3gpp_RnNode-Ericsson_pmMeasResult |
| 67 | ... EXPECTED_EVENT_JSON_PATH=none |
| 68 | Set Global Variable ${GLOBAL_TEST_VARIABLES} ${test_variables} |
| 69 | Set Global Variable ${BULK_PM_MODE} ${bulk_pm_mode} |
| 70 | Set Global Variable ${PM_LOG_LEVEL} ${pm_log_level} |
| 71 | |
| 72 | |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 73 | Deploying Data File Collector |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 74 | [Tags] 5gbulkpm 5gbulkpm_checking_sftp_rsa_key |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 75 | ${headers}= Create Dictionary content-type=application/json |
| 76 | ${session}= Create Session dfc ${INVENTORY_SERVER} |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 77 | ${resp}= Get Request dfc ${INVENTORY_ENDPOINT}?typeName=k8s-datafile headers=${headers} |
Krzysztof Kuzmicki | 52a02b2 | 2020-04-08 12:02:05 +0200 | [diff] [blame] | 78 | ${json}= Set Variable ${resp.json()} |
| 79 | ${serviceTypeId-Dfc} Set Variable ${json['items'][0]['typeId']} |
| 80 | ${image} Get Regexp Matches ${json['items'][0]['blueprintTemplate']} nexus3(.)*?(?=\\") |
| 81 | ${image} Replace String ${image}[0] nexus3.onap.org:10001 ${NEXUS3} |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 82 | Set Global Variable ${serviceTypeId-Dfc} |
Krzysztof Kuzmicki | 52a02b2 | 2020-04-08 12:02:05 +0200 | [diff] [blame] | 83 | ${deployment_data}= Set Variable {"serviceTypeId": "${serviceTypeId-Dfc}", "inputs": {"tag_version": "${image}"}} |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 84 | ${session}= Create Session deployment-dfc ${DEPLOYMENT_SERVER} |
| 85 | ${resp}= Put Request deployment-dfc /${DEPLOYMENT_ENDPOINT}/datafile data=${deployment_data} headers=${headers} |
| 86 | ${operationLink} Set Variable ${resp.json().get('links').get('status')} |
| 87 | ${operationId} Fetch From Right ${operationLink} / |
Krzysztof Kuzmicki | 52a02b2 | 2020-04-08 12:02:05 +0200 | [diff] [blame] | 88 | Wait Until Keyword Succeeds 5 minute 20 sec Deployment Status ${DEPLOYMENT_SERVER} ${DEPLOYMENT_ENDPOINT} datafile ${operationId} |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 89 | |
| 90 | Deploying 3GPP PM Mapper |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 91 | [Tags] 5gbulkpm 5gbulkpm_checking_sftp_rsa_key |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 92 | ${clusterdata}= OperatingSystem.Get File ${PMMAPPER_MR_CLUSTER_DATA} |
| 93 | ${headers}= Create Dictionary content-type=application/json |
Krzysztof Kuzmicki | ae8615f | 2020-05-29 12:35:06 +0200 | [diff] [blame] | 94 | ${session}= Create Session dmaapbc ${DMAAP_BC_SERVER} |
| 95 | ${resp}= Post Request dmaapbc ${DMAAP_BC_MR_CLUSTER_PATH} data=${clusterdata} headers=${headers} |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 96 | ${session}= Create Session pmmapper ${INVENTORY_SERVER} |
Krzysztof Kuzmicki | 52a02b2 | 2020-04-08 12:02:05 +0200 | [diff] [blame] | 97 | ${resp}= Get Request pmmapper ${INVENTORY_ENDPOINT}?typeName=k8s-pm-mapper headers=${headers} |
| 98 | ${json}= Set Variable ${resp.json()} |
| 99 | ${serviceTypeId-Pmmapper} Set Variable ${json['items'][0]['typeId']} |
| 100 | ${image} Get Regexp Matches ${json['items'][0]['blueprintTemplate']} nexus3(.)*?(?=\') |
| 101 | ${image} Replace String ${image}[0] nexus3.onap.org:10001 ${NEXUS3} |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 102 | Set Global Variable ${serviceTypeId-Pmmapper} |
Krzysztof Kuzmicki | 52a02b2 | 2020-04-08 12:02:05 +0200 | [diff] [blame] | 103 | ${deployment_data}= Set Variable {"inputs":{"client_password": "${GLOBAL_DCAE_PASSWORD}", "tag_version": "${image}"},"serviceTypeId": "${serviceTypeId-Pmmapper}"} |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 104 | ${session}= Create Session deployment-pmmapper ${DEPLOYMENT_SERVER} |
| 105 | ${resp}= Put Request deployment-pmmapper /${DEPLOYMENT_ENDPOINT}/pmmapper data=${deployment_data} headers=${headers} |
| 106 | ${operationLink} Set Variable ${resp.json().get('links').get('status')} |
| 107 | ${operationId} Fetch From Right ${operationLink} / |
mrichomme | a717217 | 2020-05-15 14:42:12 +0200 | [diff] [blame] | 108 | Wait Until Keyword Succeeds 6 minute 10 sec Deployment Status ${DEPLOYMENT_SERVER} ${DEPLOYMENT_ENDPOINT} pmmapper ${operationId} |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 109 | |
| 110 | Deploying SFTP Server As xNF |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 111 | [Tags] 5gbulkpm 5gbulkpm_checking_sftp_rsa_key |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 112 | ${blueprint}= OperatingSystem.Get File ${XNF_SFTP_BLUEPRINT_PATH} |
| 113 | ${templatejson}= Load JSON From File ${BLUEPRINT_TEMPLATE_PATH} |
| 114 | ${templatejson}= Update Value To Json ${templatejson} blueprintTemplate ${blueprint} |
| 115 | ${templatejson}= Update Value To Json ${templatejson} typeName sftpserver |
| 116 | ${json_data} Convert JSON To String ${templatejson} |
| 117 | ${headers}= Create Dictionary content-type=application/json |
| 118 | ${session}= Create Session sftp ${INVENTORY_SERVER} |
| 119 | ${resp}= Post Request sftp ${INVENTORY_ENDPOINT} data=${json_data} headers=${headers} |
| 120 | ${serviceTypeId-Sftp}= Set Variable ${resp.json().get('typeId')} |
| 121 | Set Global Variable ${serviceTypeId-Sftp} |
Krzysztof Kuzmicki | 52a02b2 | 2020-04-08 12:02:05 +0200 | [diff] [blame] | 122 | ${deployment_data}= Set Variable {"serviceTypeId": "${serviceTypeId-Sftp}" } |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 123 | ${session}= Create Session deployment-sftpserver ${DEPLOYMENT_SERVER} |
| 124 | ${resp}= Put Request deployment-sftpserver /${DEPLOYMENT_ENDPOINT}/sftpserver data=${deployment_data} headers=${headers} |
| 125 | ${operationLink}= Set Variable ${resp.json().get('links').get('status')} |
| 126 | ${operationId} Fetch From Right ${operationLink} / |
Krzysztof Kuzmicki | 52a02b2 | 2020-04-08 12:02:05 +0200 | [diff] [blame] | 127 | Wait Until Keyword Succeeds 2 minute 5 sec Deployment Status ${DEPLOYMENT_SERVER} ${DEPLOYMENT_ENDPOINT} sftpserver ${operationId} |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 128 | |
| 129 | |
| 130 | Checking PERFORMANCE_MEASUREMENTS Topic In Message Router |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 131 | [Tags] 5gbulkpm 5gbulkpm_checking_sftp_rsa_key |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 132 | ${headers}= Create Dictionary content-type=application/json |
| 133 | ${subdata}= OperatingSystem.Get File ${PMMAPPER_SUB_ROLE_DATA} |
Krzysztof Kuzmicki | ae8615f | 2020-05-29 12:35:06 +0200 | [diff] [blame] | 134 | ${session}= Create Session dmaapbc ${DMAAP_BC_SERVER} |
| 135 | ${resp}= Post Request dmaapbc ${DMAAP_BC_MR_CLIENT_PATH} data=${subdata} headers=${headers} |
| 136 | Wait Until Keyword Succeeds 5 minute 5 sec Topic Validate success |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 137 | ${resp}= Run MR Get Request ${MR_TOPIC_CHECK_PATH} |
| 138 | Should Be Equal As Strings ${resp.status_code} 200 |
| 139 | ${topics}= Set Variable ${resp.json().get('topics')} |
| 140 | List Should Contain Value ${topics} org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS |
Krzysztof Kuzmicki | ae8615f | 2020-05-29 12:35:06 +0200 | [diff] [blame] | 141 | ${resp}= Run MR Auth Get Request ${MR_TOPIC_URL_PATH} ${GLOBAL_DCAE_USERNAME} ${GLOBAL_DCAE_PASSWORD} |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 142 | Should Be Equal As Strings ${resp.status_code} 200 |
| 143 | |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 144 | Uploading PM Files to xNF SFTP Server After Services Deployed |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 145 | [Tags] 5gbulkpm 5gbulkpm_checking_sftp_rsa_key |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 146 | ${pm_file}= Upload PM Files to xNF SFTP Server ${GLOBAL_TEST_VARIABLES["PM_FILE_PATH"]} ${BULK_PM_MODE} |
| 147 | Set Global Variable ${PM_FILE} ${pm_file} |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 148 | |
| 149 | DR Bulk PM Feed Check |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 150 | [Tags] 5gbulkpm 5gbulkpm_checking_sftp_rsa_key |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 151 | ${resp}= Run DR Get Request ${DR_SUB_CHECK_PATH} |
| 152 | Should Contain ${resp.text} bulk_pm_feed |
| 153 | |
| 154 | DR PM Mapper Subscriber Check |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 155 | [Tags] 5gbulkpm 5gbulkpm_checking_sftp_rsa_key |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 156 | ${resp}= Run DR Get Request ${DR_SUB_CHECK_PATH} |
| 157 | Should Contain ${resp.text} https://dcae-pm-mapper:8443/delivery |
| 158 | |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 159 | Sending File Ready Event to VES Collector After Services Deployed |
| 160 | [Tags] 5gbulkpm 5gbulkpm_checking_sftp_rsa_key |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 161 | Send File Ready Event to VES Collector ${PM_FILE} ${GLOBAL_TEST_VARIABLES["FILE_FORMAT_TYPE"]} ${GLOBAL_TEST_VARIABLES["FILE_FORMAT_VERSION"]} |
rajendrajaiswal | 9b723a8 | 2019-11-25 12:18:51 +0000 | [diff] [blame] | 162 | |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 163 | Verifying 3GPP Perf VES Content On PERFORMANCE_MEASUREMENTS Topic After Services Deployed |
| 164 | [Tags] 5gbulkpm 5gbulkpm_checking_sftp_rsa_key |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 165 | Wait Until Keyword Succeeds 2 min 5 sec xNF PM File Validate ${BULK_PM_MODE} ${GLOBAL_TEST_VARIABLES["EXPECTED_PM_STR"]} ${GLOBAL_TEST_VARIABLES["EXPECTED_EVENT_JSON_PATH"]} |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 166 | |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 167 | |
| 168 | Setting KNOWN_HOSTS_FILE_PATH Environment Variable |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 169 | [Tags] 5gbulkpm_checking_sftp_rsa_key |
| 170 | ${rc}= Run and Return RC ${SET_KNOWN_HOSTS_FILE_PATH} |
| 171 | Should Be Equal As Integers ${rc} 0 |
| 172 | Wait Until Keyword Succeeds 5 min 10s Check Known Hosts In Env ${CHECK_ENV_SET} |
| 173 | ${rc}= Run and Return RC ${GET_RSA_KEY} |
| 174 | Should Be Equal As Integers ${rc} 0 |
| 175 | ${rc}= Run and Return RC ${COPY_RSA_KEY} |
| 176 | Should Be Equal As Integers ${rc} 0 |
| 177 | |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 178 | Uploading PM Files to xNF SFTP Server After KNOWN_HOSTS_FILE_PATH Env Variable Added |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 179 | [Tags] 5gbulkpm_checking_sftp_rsa_key |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 180 | ${pm_file}= Upload PM Files to xNF SFTP Server ${GLOBAL_TEST_VARIABLES["PM_FILE_PATH"]} ${BULK_PM_MODE} |
| 181 | Set Global Variable ${PM_FILE} ${pm_file} |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 182 | |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 183 | Sending File Ready Event to VES Collector After KNOWN_HOSTS_FILE_PATH Env Variable Added |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 184 | [Tags] 5gbulkpm_checking_sftp_rsa_key |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 185 | Send File Ready Event to VES Collector ${PM_FILE} ${GLOBAL_TEST_VARIABLES["FILE_FORMAT_TYPE"]} ${GLOBAL_TEST_VARIABLES["FILE_FORMAT_VERSION"]} |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 186 | |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 187 | Verifying 3GPP Perf VES Content On PERFORMANCE_MEASUREMENTS Topic After KNOWN_HOSTS_FILE_PATH Env Variable Added |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 188 | [Tags] 5gbulkpm_checking_sftp_rsa_key |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 189 | Wait Until Keyword Succeeds 2 min 5 sec xNF PM File Validate ${BULK_PM_MODE} ${GLOBAL_TEST_VARIABLES["EXPECTED_PM_STR"]} ${GLOBAL_TEST_VARIABLES["EXPECTED_EVENT_JSON_PATH"]} |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 190 | |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 191 | Checking DFC Logs After KNOWN_HOSTS_FILE_PATH Env Variable Added |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 192 | [Tags] 5gbulkpm_checking_sftp_rsa_key |
| 193 | ${dfc_logs}= Run Given Command On DFC Container ${CHECK_DFC_LOGS} |
| 194 | Should Not Contain ${dfc_logs} ${EXPECTED_PRINT} |
| 195 | |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 196 | Changing SFTP Server RSA Key |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 197 | [Tags] 5gbulkpm_checking_sftp_rsa_key |
| 198 | ${get_known_hosts_file}= OperatingSystem.Get File /tmp/known_hosts |
| 199 | ${change_rsa_key}= Replace String ${get_known_hosts_file} A a |
| 200 | Create File /tmp/known_hosts ${change_rsa_key} |
| 201 | ${rc}= Run and Return RC ${COPY_RSA_KEY} |
| 202 | Should Be Equal As Integers ${rc} 0 |
| 203 | |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 204 | Uploading PM Files to xNF SFTP Server After SFTP Server RSA Key Changed |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 205 | [Tags] 5gbulkpm_checking_sftp_rsa_key |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 206 | ${pm_file}= Upload PM Files to xNF SFTP Server ${GLOBAL_TEST_VARIABLES["PM_FILE_PATH"]} ${BULK_PM_MODE} |
| 207 | Set Global Variable ${PM_FILE} ${pm_file} |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 208 | |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 209 | Sending File Ready Event to VES Collector After SFTP Server RSA Key Changed |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 210 | [Tags] 5gbulkpm_checking_sftp_rsa_key |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 211 | Send File Ready Event to VES Collector ${PM_FILE} ${GLOBAL_TEST_VARIABLES["FILE_FORMAT_TYPE"]} ${GLOBAL_TEST_VARIABLES["FILE_FORMAT_VERSION"]} |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 212 | |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 213 | Checking DFC Logs After SFTP Server RSA Key Changed |
Katarzyna Wasiel | 7ebd4b3 | 2020-12-02 13:39:45 +0100 | [diff] [blame] | 214 | [Tags] 5gbulkpm_checking_sftp_rsa_key |
Krzysztof Kuzmicki | 8c40ac6 | 2021-01-21 09:34:42 +0100 | [diff] [blame] | 215 | Wait Until Keyword Succeeds 5 min 30 sec Check Given Print In DFC LOG ${CHECK_DFC_LOGS} |