aboutsummaryrefslogtreecommitdiffstats
path: root/robot/testsuites
diff options
context:
space:
mode:
authorKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2021-11-24 12:00:45 +0100
committerMorgan Richomme <morgan.richomme@orange.com>2021-12-13 17:01:24 +0000
commitbae8d839893d1ce5c1e9dfa670fbe536520093a0 (patch)
tree02feb907365859d03498ee9db10cf517a05804d1 /robot/testsuites
parent2a2c4c30c423a528e1969eaa8fb1176ba3250689 (diff)
[ROBOT] ADD HTTPS based BULKPM test cases that use helm based componentsrefactoring
Add https server based test cases Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> Issue-ID: INT-1895 Change-Id: I74f7102398a08e1629b50f510ef179d35c8761bd
Diffstat (limited to 'robot/testsuites')
-rw-r--r--robot/testsuites/usecases/5gbulkpm_helm.robot44
1 files changed, 42 insertions, 2 deletions
diff --git a/robot/testsuites/usecases/5gbulkpm_helm.robot b/robot/testsuites/usecases/5gbulkpm_helm.robot
index 67039d87..6d805e37 100644
--- a/robot/testsuites/usecases/5gbulkpm_helm.robot
+++ b/robot/testsuites/usecases/5gbulkpm_helm.robot
@@ -17,18 +17,19 @@ Suite Setup Send File Ready Event to VES Collector and Deploy all DCAE App
Suite Teardown Usecase Teardown
*** Variables ***
-${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-cert"
+${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"
*** Test Cases ***
SFTP Server based bulk PM test, no SFTP Server know host veryfication on DFC side
- [Tags] 5gbulkpm 5gbulkpm_sftp 5gbulkpm_cust_pm_validate
+ [Tags] 5gbulkpm 5gbulkpm_sftp
[Documentation]
... This test case triggers successful bulk pm upload from SFTP server without SFTP server host verification in DFC known host file.
... Known host verification is turned off on DFC
Uploading PM Files to xNF SFTP Server
Sending File Ready Event to VES Collector
Verifying 3GPP Perf VES Content On PERFORMANCE_MEASUREMENTS Topic
+ Get all logs from Data File Collector
SFTP Server based bulk PM test, successful SFTP Server known host verification on DFC side
[Tags] 5gbulkpm 5gbulkpm_sftp
@@ -40,6 +41,7 @@ SFTP Server based bulk PM test, successful SFTP Server known host verification o
Sending File Ready Event to VES Collector
Verifying 3GPP Perf VES Content On PERFORMANCE_MEASUREMENTS Topic
Checking DFC Logs After KNOWN_HOSTS_FILE_PATH Env Variable Added
+ Get all logs from Data File Collector
SFTP Server based bulk PM test, not successful SFTP Server know host verification on DFC side
[Tags] 5gbulkpm 5gbulkpm_sftp
@@ -50,4 +52,42 @@ SFTP Server based bulk PM test, not successful SFTP Server know host verificatio
Uploading PM Files to xNF SFTP Server
Sending File Ready Event to VES Collector
Checking DFC Logs After KNOWN_HOSTS_FILE_PATH Env Variable Added
+ Get all logs from Data File Collector
+
+HTTPS Server based bulk PM test (correct server certificate - correct SANs), successful HTTPS server certificate verification on DFC side
+ [Tags] 5gbulkpm 5gbulkpm_https
+ [Documentation]
+ ... This test case triggers successful bulk pm upload from HTTPS server using CMPv2 Certificate-based authentication
+ ... Both HTTPS server and DFC have correct certs with correct SAN-s.
+ ... DFC has turned on hostname verification option, verifies HTTPS server host name and downloads pm file from HTTPS server.
+ Change DFC httpsHostnameVerify configuration in Consul true
+ Uploading PM Files to xNF HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-correct-sans
+ Sending File Ready Event to VES Collector for HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-correct-sans
+ Verifying 3GPP Perf VES Content On PERFORMANCE_MEASUREMENTS Topic
+ Get all logs from Data File Collector
+
+HTTPS Server based bulk PM test (wrong server certificate - wrong SANs), unsuccessful validation on DFC side due to turned on host checking
+ [Tags] 5gbulkpm 5gbulkpm_https
+ [Documentation]
+ ... This test case triggers unsuccessful bulk pm upload from HTTPS server using CMPv2 Certificate-based authentication
+ ... HTTPS server has incorrect cert with wrong correct SAN-s. DFC has turned on hostname verification option.
+ ... DFC verifies HTTPS server host name against SAN-s and closes connection.
+ Change DFC httpsHostnameVerify configuration in Consul true
+ Uploading PM Files to xNF HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-wrong-sans
+ Sending File Ready Event to VES Collector for HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-wrong-sans
+ Wait Until Keyword Succeeds 120 sec 5 sec Check logs ${DFC_ERROR_GREP_COMMAND_SANS}
+ Get all logs from Data File Collector
+
+HTTPS Server based bulk PM test (wrong server certificate - wrong SANs), successful validation on DFC side due to turned off host checking
+ [Tags] 5gbulkpm 5gbulkpm_https
+ [Documentation]
+ ... This test case triggers successful bulk pm upload from HTTPS server using CMPv2 Certificate-based authentication
+ ... HTTPS server has incorrect cert with wrong correct SAN-s. DFC has turned off hostname verification option.
+ ... DFC does not verify HTTPS server host name against SAN-s and downloads pm file from HTTPS server.
+ Change DFC httpsHostnameVerify configuration in Consul false
+ Uploading PM Files to xNF HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-wrong-sans
+ Sending File Ready Event to VES Collector for HTTPS Server ${ONAP_HELM_RELEASE}-pm-https-server-wrong-sans
+ Verifying 3GPP Perf VES Content On PERFORMANCE_MEASUREMENTS Topic
+ Get all logs from Data File Collector
+