blob: befd364042e2a97a2a07bcfb4e7c211f76aa593e [file] [log] [blame]
Krzysztof Kuzmicki5e6967f2021-10-01 12:22:06 +02001*** Settings ***
2Documentation 5G Bulk PM Usecase functionality
3
4Library RequestsLibrary
5Library OperatingSystem
6Library Collections
7Library String
8Library DateTime
9Library SSHLibrary
10Library JSONLibrary
11Library Process
12Library ONAPLibrary.JSON
13Library ONAPLibrary.Utilities
14Resource ../../resources/usecases/5gbulkpm_helm_interface.robot
15Resource ../../resources/chart_museum.robot
16Suite Setup Send File Ready Event to VES Collector and Deploy all DCAE Applications test org.3GPP.32.435#measCollec V10
17Suite Teardown Usecase Teardown
18
19*** Variables ***
Krzysztof Kuzmickibae8d832021-11-24 12:00:45 +010020${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 Kuzmicki5e6967f2021-10-01 12:22:06 +020021
22*** Test Cases ***
23
24SFTP Server based bulk PM test, no SFTP Server know host veryfication on DFC side
Krzysztof Kuzmickibae8d832021-11-24 12:00:45 +010025 [Tags] 5gbulkpm 5gbulkpm_sftp
Krzysztof Kuzmicki5e6967f2021-10-01 12:22:06 +020026 [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 Kuzmickibae8d832021-11-24 12:00:45 +010032 Get all logs from Data File Collector
Krzysztof Kuzmicki5e6967f2021-10-01 12:22:06 +020033
Andreas Geissler4dcb36e2023-02-16 18:05:20 +010034#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 Kuzmickibae8d832021-11-24 12:00:45 +010092
Krzysztof Kuzmicki5e6967f2021-10-01 12:22:06 +020093