67039d87bab7acdae4dff8b065900edd25b1241f
[testsuite.git] / robot / testsuites / usecases / 5gbulkpm_helm.robot
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 ***
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-cert"
21
22 *** Test Cases ***
23
24 SFTP Server based bulk PM test, no SFTP Server know host veryfication on DFC side
25     [Tags]                              5gbulkpm                           5gbulkpm_sftp              5gbulkpm_cust_pm_validate
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
32
33 SFTP Server based bulk PM test, successful SFTP Server known host verification on DFC side
34     [Tags]                              5gbulkpm                           5gbulkpm_sftp
35     [Documentation]
36     ...  This test case triggers successful bulk pm upload from SFTP server with SFTP server host verification in DFC known host file.
37     ...  Known host verification is turned on DFC and to know host is added SFTP server entry
38     Setting KNOWN_HOSTS_FILE_PATH Environment Variable in DFC
39     Uploading PM Files to xNF SFTP Server
40     Sending File Ready Event to VES Collector
41     Verifying 3GPP Perf VES Content On PERFORMANCE_MEASUREMENTS Topic
42     Checking DFC Logs After KNOWN_HOSTS_FILE_PATH Env Variable Added
43
44 SFTP Server based bulk PM test, not successful SFTP Server know host verification on DFC side
45     [Tags]                              5gbulkpm                           5gbulkpm_sftp
46     [Documentation]
47     ...  This test case triggers unsuccessful bulk pm upload from SFTP server with SFTP server host verification in DFC known host file.
48     ...  Known host verification is turned on DFC and to know host is added wrong SFTP server entry
49     Changing SFTP Server RSA Key in DFC
50     Uploading PM Files to xNF SFTP Server
51     Sending File Ready Event to VES Collector
52     Checking DFC Logs After KNOWN_HOSTS_FILE_PATH Env Variable Added
53