2 Documentation 5G Bulk PM Usecase functionality
4 Library RequestsLibrary
5 Library OperatingSystem
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
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"
24 SFTP Server based bulk PM test, no SFTP Server know host veryfication on DFC side
25 [Tags] 5gbulkpm 5gbulkpm_sftp
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
32 Get all logs from Data File Collector
34 SFTP Server based bulk PM test, successful SFTP Server known host verification on DFC side
35 [Tags] 5gbulkpm 5gbulkpm_sftp
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
46 SFTP Server based bulk PM test, not successful SFTP Server know host verification on DFC side
47 [Tags] 5gbulkpm 5gbulkpm_sftp
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
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
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
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
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
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 5gbulkpm_https
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