aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2023-02-16 18:05:20 +0100
committerAndreas Geissler <andreas-geissler@telekom.de>2023-02-16 18:05:16 +0000
commit4dcb36ec53fea68e012bdb4bad8373b0001b38a4 (patch)
tree961acf1d807726c02f05bcb10fd1004b87fe2c1d /robot/resources
parente37a0bd9b7699af816bd539b8ba44520da4c5dd2 (diff)
[5GBULKPM] Make Test compatible with nonTLS setup
Simplify the test to test the DFC an pm-mapper. This test now requires DFC and pm-mapper to be deployed Issue-ID: OOM-3100 Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de> Change-Id: I2fe3b3b10e5fc68fe13e0d6c9455d48964e0d7e1
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/usecases/5gbulkpm_helm_interface.robot108
1 files changed, 55 insertions, 53 deletions
diff --git a/robot/resources/usecases/5gbulkpm_helm_interface.robot b/robot/resources/usecases/5gbulkpm_helm_interface.robot
index 12e876cd..0419ef43 100644
--- a/robot/resources/usecases/5gbulkpm_helm_interface.robot
+++ b/robot/resources/usecases/5gbulkpm_helm_interface.robot
@@ -35,9 +35,9 @@ ${PMMAPPER_SUB_ROLE_DATA} ${EXECDIR}/robot/assets/usec
${PMMAPPER_MR_CLUSTER_DATA} ${EXECDIR}/robot/assets/usecases/5gbulkpm/mr_clusters.json
${NEXUS3} ${GLOBAL_INJECTED_NEXUS_DOCKER_REPO}
${SET_KNOWN_HOSTS_FILE_PATH} kubectl set env deployment/$(kubectl get deployment -n onap | grep datafile | awk '{print $1}') KNOWN_HOSTS_FILE_PATH=/home/datafile/.ssh/known_hosts -n onap
-${CHECK_ENV_SET} kubectl set env pod/$(kubectl get pod -n onap | grep datafile | awk '{print $1}') --list -n onap
-${COPY_RSA_KEY} kubectl cp /tmp/known_hosts $(kubectl get pod -n onap | grep datafile | awk '{print $1}'):/home/datafile/.ssh/known_hosts -n onap
-${CHECK_DFC_LOGS} kubectl logs $(kubectl get pod -n onap | grep datafile | awk '{print $1}') -n onap --tail=10
+${CHECK_ENV_SET} kubectl set env pod/$(kubectl get pod -n onap | grep datafile | awk '{print $1}') -c dcae-datafile-collector --list -n onap
+${COPY_RSA_KEY} kubectl cp /tmp/known_hosts $(kubectl get pod -n onap | grep datafile | awk '{print $1}'):/home/datafile/.ssh/known_hosts -c dcae-datafile-collector -n onap
+${CHECK_DFC_LOGS} kubectl logs $(kubectl get pod -n onap | grep datafile | awk '{print $1}') -c dcae-datafile-collector -n onap --tail=10
${CHECK_ALL_DFC_LOGS} kubectl logs $(kubectl get pod -n onap | grep datafile | awk '{print $1}') -n onap --all-containers
${CHECK_ALL_PMMAPPER_LOGS} kubectl logs $(kubectl get pod -n onap | grep pm-mapper | awk '{print $1}') -n onap --all-containers
${EXPECTED_PRINT} StrictHostKeyChecking is enabled but environment variable KNOWN_HOSTS_FILE_PATH is not set or points to not existing file
@@ -60,7 +60,8 @@ xNF PM File Validate
... This keyword gathers all events from message router topic and validates if in recived data is present an expected string: "${expected_pm_str}" .
[Arguments] ${expected_pm_str}
${timestamp}= Get Time epoch
- ${resp}= Run MR Auth Get Request ${MR_TOPIC_URL_PATH} ${GLOBAL_DCAE_USERNAME} ${GLOBAL_DCAE_PASSWORD}
+ #${resp}= Run MR Auth Get Request ${MR_TOPIC_URL_PATH} ${GLOBAL_DCAE_USERNAME} ${GLOBAL_DCAE_PASSWORD}
+ ${resp}= Run MR Get Request ${MR_TOPIC_URL_PATH}
Should Contain ${resp.text} ${expected_pm_str}
Topic Validate
@@ -71,7 +72,8 @@ Topic Validate
${data}= Templating.Apply Template mr ${MR_PUBLISH_TEMPLATE} ${dict}
${resp}= Run MR Auth Post Request (User And Pass) ${MR_TOPIC_URL_PATH_FOR_POST} ${GLOBAL_DCAE_USERNAME} ${GLOBAL_DCAE_PASSWORD} ${data}
Should Be Equal As Strings ${resp.status_code} 200
- ${resp}= Run MR Auth Get Request ${MR_TOPIC_URL_PATH} ${GLOBAL_DCAE_USERNAME} ${GLOBAL_DCAE_PASSWORD}
+ #${resp}= Run MR Auth Get Request ${MR_TOPIC_URL_PATH} ${GLOBAL_DCAE_USERNAME} ${GLOBAL_DCAE_PASSWORD}
+ ${resp}= Run MR Get Request ${MR_TOPIC_URL_PATH}
Should Contain ${resp.text} ${value}
Send File Ready Event to VES Collector and Deploy all DCAE Applications
@@ -80,16 +82,16 @@ Send File Ready Event to VES Collector and Deploy all DCAE Applications
Setting Global Variables
Send File Ready Event to VES Collector ${pm_file} ${file_format_type} ${file_format_version}
Add chart repository chart-museum http://chart-museum:80 onapinitializer demo123456!
- Log To Console Deploying Data File Collector
- Deploying Data File Collector
- Log To Console Deploying 3GPP PM Mapper
- Deploying 3GPP PM Mapper
+# Log To Console Deploying Data File Collector
+# Deploying Data File Collector
+# Log To Console Deploying 3GPP PM Mapper
+# Deploying 3GPP PM Mapper
Log To Console Deploying SFTP Server As xNF
Deploying SFTP Server As xNF
- Log To Console Deploying HTTPS Server with correct CMPv2 certificates as xNF
- Deploying HTTPS server with correct certificates
- Log To Console Deploying HTTPS Server with wrong subject alternatives in CMPv2 certificates as xNF
- Deploying HTTPS server with wrong certificates - wrong SAN-s
+# Log To Console Deploying HTTPS Server with correct CMPv2 certificates as xNF
+# Deploying HTTPS server with correct certificates
+# Log To Console Deploying HTTPS Server with wrong subject alternatives in CMPv2 certificates as xNF
+# Deploying HTTPS server with wrong certificates - wrong SAN-s
DR Bulk PM Feed Check
DR PM Mapper Subscriber Check
@@ -97,11 +99,11 @@ Usecase Teardown
Disable Warnings
Get all logs from PM Mapper
Get all logs from Data File Collector
- Uninstall helm charts ${ONAP_HELM_RELEASE}-dcae-datafile-collector
- Uninstall helm charts ${ONAP_HELM_RELEASE}-dcae-pm-mapper
+# Uninstall helm charts ${ONAP_HELM_RELEASE}-dcae-datafile-collector
+# Uninstall helm charts ${ONAP_HELM_RELEASE}-dcae-pm-mapper
Uninstall helm charts ${ONAP_HELM_RELEASE}-sftp
- Uninstall helm charts ${ONAP_HELM_RELEASE}-pm-https-server-correct-sans
- Uninstall helm charts ${ONAP_HELM_RELEASE}-pm-https-server-wrong-sans
+# Uninstall helm charts ${ONAP_HELM_RELEASE}-pm-https-server-correct-sans
+# Uninstall helm charts ${ONAP_HELM_RELEASE}-pm-https-server-wrong-sans
Setting Global Variables
${test_variables} = Create Dictionary
@@ -261,39 +263,39 @@ Change DFC httpsHostnameVerify configuration in Consul
Should Be Equal As Integers ${rc} 0
Wait Until Keyword Succeeds 360 sec 15 sec Check logs kubectl logs -n onap $(kubectl get pods -n onap | grep datafile-collector | awk '{print $1}' | grep -v NAME) ${container_name}-datafile-collector
-Sending File Ready Event to VES Collector for HTTPS Server
- [Arguments] ${https-server_host}
- Send File Ready Event to VES Collector for HTTPS Server ${PM_FILE} ${GLOBAL_TEST_VARIABLES["FILE_FORMAT_TYPE"]} ${GLOBAL_TEST_VARIABLES["FILE_FORMAT_VERSION"]} ${https-server_host}
-
-Send File Ready Event to VES Collector for HTTPS Server
- [Arguments] ${pm_file} ${file_format_type} ${file_format_version} ${https_server_host}
- Disable Warnings
- ${pm_event} Create Dictionary https_server_host=${https_server_host} pm_file=${pm_file} fileFormatType=${file_format_type} fileFormatVersion=${file_format_version}
- Templating.Create Environment pm ${GLOBAL_TEMPLATE_FOLDER}
- ${VES_FILE_READY_NOTIFICATION}= Templating.Apply Template pm ${pm_notification_event} ${pm_event}
- ${headers}= Create Dictionary content-type=application/json
- ${auth}= Create List ${GLOBAL_DCAE_VES_USERNAME} ${GLOBAL_DCAE_VES_PASSWORD}
- ${session}= Create Session ves ${VES_HEALTH_CHECK_PATH} auth=${auth}
- ${resp}= Post Request ves ${VES_LISTENER_PATH} data=${VES_FILE_READY_NOTIFICATION} headers=${headers}
- Should Be Equal As Strings ${resp.status_code} 202
-
-
-Uploading PM Files to xNF HTTPS Server
- [Arguments] ${https-server_host}
- ${pm_file}= Upload PM Files to xNF HTTPS Server ${GLOBAL_TEST_VARIABLES["PM_FILE_PATH"]} ${https-server_host}
- Set Global Variable ${PM_FILE} ${pm_file}
-
-Upload PM Files to xNF HTTPS Server
- [Arguments] ${pm_file_path} ${https_server}
- ${epoch}= Get Current Date result_format=epoch
- ${pm_file} = Set Variable A${epoch}.xml.gz
- Copy File ${pm_file_path} tmp/${pm_file}
- ${fileData}= Get Binary File tmp/${pm_file}
- ${file_part}= Create List ${pm_file} ${fileData} application/octet-stream
- ${fileParts}= Create Dictionary
- Set to Dictionary ${fileParts} uploaded_file=${file_part}
- ${auth}= Create List demo demo123456!
- ${session}= Create Session https http://${https_server}:80 auth=${auth}
- ${resp}= Post Request https /upload.php files=${fileParts}
- Should Be Equal As Strings ${resp.status_code} 200
- [Return] ${pm_file}
+#Sending File Ready Event to VES Collector for HTTPS Server
+# [Arguments] ${https-server_host}
+# Send File Ready Event to VES Collector for HTTPS Server ${PM_FILE} ${GLOBAL_TEST_VARIABLES["FILE_FORMAT_TYPE"]} ${GLOBAL_TEST_VARIABLES["FILE_FORMAT_VERSION"]} ${https-server_host}
+
+#Send File Ready Event to VES Collector for HTTPS Server
+# [Arguments] ${pm_file} ${file_format_type} ${file_format_version} ${https_server_host}
+# Disable Warnings
+# ${pm_event} Create Dictionary https_server_host=${https_server_host} pm_file=${pm_file} fileFormatType=${file_format_type} fileFormatVersion=${file_format_version}
+# Templating.Create Environment pm ${GLOBAL_TEMPLATE_FOLDER}
+# ${VES_FILE_READY_NOTIFICATION}= Templating.Apply Template pm ${pm_notification_event} ${pm_event}
+# ${headers}= Create Dictionary content-type=application/json
+# ${auth}= Create List ${GLOBAL_DCAE_VES_USERNAME} ${GLOBAL_DCAE_VES_PASSWORD}
+# ${session}= Create Session ves ${VES_HEALTH_CHECK_PATH} auth=${auth}
+# ${resp}= Post Request ves ${VES_LISTENER_PATH} data=${VES_FILE_READY_NOTIFICATION} headers=${headers}
+# Should Be Equal As Strings ${resp.status_code} 202
+
+
+#Uploading PM Files to xNF HTTPS Server
+# [Arguments] ${https-server_host}
+# ${pm_file}= Upload PM Files to xNF HTTPS Server ${GLOBAL_TEST_VARIABLES["PM_FILE_PATH"]} ${https-server_host}
+# Set Global Variable ${PM_FILE} ${pm_file}
+
+#Upload PM Files to xNF HTTPS Server
+# [Arguments] ${pm_file_path} ${https_server}
+# ${epoch}= Get Current Date result_format=epoch
+# ${pm_file} = Set Variable A${epoch}.xml.gz
+# Copy File ${pm_file_path} tmp/${pm_file}
+# ${fileData}= Get Binary File tmp/${pm_file}
+# ${file_part}= Create List ${pm_file} ${fileData} application/octet-stream
+# ${fileParts}= Create Dictionary
+# Set to Dictionary ${fileParts} uploaded_file=${file_part}
+# ${auth}= Create List demo demo123456!
+# ${session}= Create Session https http://${https_server}:80 auth=${auth}
+# ${resp}= Post Request https /upload.php files=${fileParts}
+# Should Be Equal As Strings ${resp.status_code} 200
+# [Return] ${pm_file}