Krzysztof Kuzmicki | 5e6967f | 2021-10-01 12:22:06 +0200 | [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 |
| 14 | Resource ../../resources/usecases/5gbulkpm_helm_interface.robot |
| 15 | Resource ../../resources/chart_museum.robot |
| 16 | Suite Setup Send File Ready Event to VES Collector and Deploy all DCAE Applications test org.3GPP.32.435#measCollec V10 |
| 17 | Suite Teardown Usecase Teardown |
| 18 | |
| 19 | *** Variables *** |
Krzysztof Kuzmicki | bae8d83 | 2021-11-24 12:00:45 +0100 | [diff] [blame] | 20 | ${DFC_ERROR_GREP_COMMAND_SANS} kubectl logs $(kubectl get pods -n onap | grep datafile-collector | awk '{print $1}' | grep -v NAME) --all-containers -n onap --since=15s | grep "Certificate for .* subject alternative names: .*wrong-sans-2" |
Krzysztof Kuzmicki | 5e6967f | 2021-10-01 12:22:06 +0200 | [diff] [blame] | 21 | |
| 22 | *** Test Cases *** |
| 23 | |
| 24 | SFTP Server based bulk PM test, no SFTP Server know host veryfication on DFC side |
Krzysztof Kuzmicki | bae8d83 | 2021-11-24 12:00:45 +0100 | [diff] [blame] | 25 | [Tags] 5gbulkpm 5gbulkpm_sftp |
Krzysztof Kuzmicki | 5e6967f | 2021-10-01 12:22:06 +0200 | [diff] [blame] | 26 | [Documentation] |
| 27 | ... This test case triggers successful bulk pm upload from SFTP server without SFTP server host verification in DFC known host file. |
| 28 | ... Known host verification is turned off on DFC |
| 29 | Uploading PM Files to xNF SFTP Server |
| 30 | Sending File Ready Event to VES Collector |
| 31 | Verifying 3GPP Perf VES Content On PERFORMANCE_MEASUREMENTS Topic |
Krzysztof Kuzmicki | bae8d83 | 2021-11-24 12:00:45 +0100 | [diff] [blame] | 32 | Get all logs from Data File Collector |
Krzysztof Kuzmicki | 5e6967f | 2021-10-01 12:22:06 +0200 | [diff] [blame] | 33 | |
Andreas Geissler | 4dcb36e | 2023-02-16 18:05:20 +0100 | [diff] [blame^] | 34 | #SFTP Server based bulk PM test, successful SFTP Server known host verification on DFC side |
| 35 | # [Tags] 5gbulkpm 5gbulkpm_sftp |
| 36 | # [Documentation] |
| 37 | # ... This test case triggers successful bulk pm upload from SFTP server with SFTP server host verification in DFC known host file. |
| 38 | # ... Known host verification is turned on DFC and to know host is added SFTP server entry |
| 39 | # Setting KNOWN_HOSTS_FILE_PATH Environment Variable in DFC |
| 40 | # Uploading PM Files to xNF SFTP Server |
| 41 | # Sending File Ready Event to VES Collector |
| 42 | # Verifying 3GPP Perf VES Content On PERFORMANCE_MEASUREMENTS Topic |
| 43 | # Checking DFC Logs After KNOWN_HOSTS_FILE_PATH Env Variable Added |
| 44 | # Get all logs from Data File Collector |
| 45 | # |
| 46 | #SFTP Server based bulk PM test, not successful SFTP Server know host verification on DFC side |
| 47 | # [Tags] 5gbulkpm 5gbulkpm_sftp |
| 48 | # [Documentation] |
| 49 | # ... This test case triggers unsuccessful bulk pm upload from SFTP server with SFTP server host verification in DFC known host file. |
| 50 | # ... Known host verification is turned on DFC and to know host is added wrong SFTP server entry |
| 51 | # Changing SFTP Server RSA Key in DFC |
| 52 | # Uploading PM Files to xNF SFTP Server |
| 53 | # Sending File Ready Event to VES Collector |
| 54 | # Checking DFC Logs After KNOWN_HOSTS_FILE_PATH Env Variable Added |
| 55 | # Get all logs from Data File Collector |
| 56 | # |
| 57 | #HTTPS Server based bulk PM test (correct server certificate - correct SANs), successful HTTPS server certificate verification on DFC side |
| 58 | # [Tags] 5gbulkpm 5gbulkpm_https |
| 59 | # [Documentation] |
| 60 | # ... This test case triggers successful bulk pm upload from HTTPS server using CMPv2 Certificate-based authentication |
| 61 | # ... Both HTTPS server and DFC have correct certs with correct SAN-s. |
| 62 | # ... DFC has turned on hostname verification option, verifies HTTPS server host name and downloads pm file from HTTPS server. |
| 63 | # Change DFC httpsHostnameVerify configuration in Consul true |
| 64 | # Uploading PM Files to xNF HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-correct-sans |
| 65 | # Sending File Ready Event to VES Collector for HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-correct-sans |
| 66 | # Verifying 3GPP Perf VES Content On PERFORMANCE_MEASUREMENTS Topic |
| 67 | # Get all logs from Data File Collector |
| 68 | # |
| 69 | #HTTPS Server based bulk PM test (wrong server certificate - wrong SANs), unsuccessful validation on DFC side due to turned on host checking |
| 70 | # [Tags] 5gbulkpm 5gbulkpm_https |
| 71 | # [Documentation] |
| 72 | # ... This test case triggers unsuccessful bulk pm upload from HTTPS server using CMPv2 Certificate-based authentication |
| 73 | # ... HTTPS server has incorrect cert with wrong correct SAN-s. DFC has turned on hostname verification option. |
| 74 | # ... DFC verifies HTTPS server host name against SAN-s and closes connection. |
| 75 | # Change DFC httpsHostnameVerify configuration in Consul true |
| 76 | # Uploading PM Files to xNF HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-wrong-sans |
| 77 | # Sending File Ready Event to VES Collector for HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-wrong-sans |
| 78 | # Wait Until Keyword Succeeds 120 sec 5 sec Check logs ${DFC_ERROR_GREP_COMMAND_SANS} |
| 79 | # Get all logs from Data File Collector |
| 80 | # |
| 81 | #HTTPS Server based bulk PM test (wrong server certificate - wrong SANs), successful validation on DFC side due to turned off host checking |
| 82 | # [Tags] 5gbulkpm_https |
| 83 | # [Documentation] |
| 84 | # ... This test case triggers successful bulk pm upload from HTTPS server using CMPv2 Certificate-based authentication |
| 85 | # ... HTTPS server has incorrect cert with wrong correct SAN-s. DFC has turned off hostname verification option. |
| 86 | # ... DFC does not verify HTTPS server host name against SAN-s and downloads pm file from HTTPS server. |
| 87 | # Change DFC httpsHostnameVerify configuration in Consul false |
| 88 | # Uploading PM Files to xNF HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-wrong-sans |
| 89 | # Sending File Ready Event to VES Collector for HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-wrong-sans |
| 90 | # Verifying 3GPP Perf VES Content On PERFORMANCE_MEASUREMENTS Topic |
| 91 | # Get all logs from Data File Collector |
Krzysztof Kuzmicki | bae8d83 | 2021-11-24 12:00:45 +0100 | [diff] [blame] | 92 | |
Krzysztof Kuzmicki | 5e6967f | 2021-10-01 12:22:06 +0200 | [diff] [blame] | 93 | |