summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2021-04-12 11:47:19 +0200
committerKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2021-04-12 17:29:42 +0200
commit0fa522a59e55d57deb5e827cfae997ee71b0d0de (patch)
tree49ddcaabcecac36f0ac2ab790dd5846a682690b7 /robot/resources
parent8f25be8f8f2ba6401b70c4d06d59fbc7b9c5abfc (diff)
[ROBOT] Add new E2E test for 5G BulkPM usecase from HTTP server to ONAP gating
Fix of failng test cases Issue-ID: INT-1815 Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> Change-Id: Id6f0c1ecfcf0cf7d4211aa614eeed08e72762b3e
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/usecases/5gbulkpm_interface.robot40
1 files changed, 24 insertions, 16 deletions
diff --git a/robot/resources/usecases/5gbulkpm_interface.robot b/robot/resources/usecases/5gbulkpm_interface.robot
index db01f91a..00d73065 100644
--- a/robot/resources/usecases/5gbulkpm_interface.robot
+++ b/robot/resources/usecases/5gbulkpm_interface.robot
@@ -42,6 +42,8 @@ ${CHECK_DFC_LOGS} kubectl logs $(kubectl get p
${EXPECTED_PRINT} StrictHostKeyChecking is enabled but environment variable KNOWN_HOSTS_FILE_PATH is not set or points to not existing file
${MONGO_BLUEPRINT_PATH} ${EXECDIR}/robot/assets/cmpv2/k8s-mongo.yaml
${PNF_SIMULATOR_BLUEPRINT_PATH} ${EXECDIR}/robot/assets/cmpv2/k8s-pnf-simulator.yaml
+${MONGO_VES_CLIENT_BLUEPRINT_PATH} ${EXECDIR}/robot/assets/cmpv2/k8s-mongo-ves-client.yaml
+${VES_CLIENT_BLUEPRINT_PATH} ${EXECDIR}/robot/assets/cmpv2/k8s-ves-client.yaml
${VES_INPUTS} deployment/VesTlsCmpv2Inputs.jinja
${pm_notification_event} dfc/notification.jinja
${consul_change_event} dfc/consul.jinja
@@ -139,19 +141,26 @@ Send File Ready Event to VES Collector and Deploy all DCAE Applications
Usecase Teardown
Disable Warnings
- Undeploy Service sftpserver
- Undeploy Service ${serviceTypeId-Sftp}
- Undeploy Service datafile
- Undeploy Service pmmapper
- Undeploy Service mongo-dep-5gbulkpm
- Undeploy Service ves-rest-client-dep
- Undeploy Service ves-collector-for-bulkpm-over-https
- Delete Blueprint From Inventory ${serviceTypeIdMongo}
- Delete Blueprint From Inventory ${serviceTypeIdVesClient}
- Undeploy Service https-server-dep
+ Wait Until Keyword Succeeds 2 min 20 sec Undeploy Service With Check datafile
+ Wait Until Keyword Succeeds 2 min 20 sec Undeploy Service With Check pmmapper
+ Wait Until Keyword Succeeds 2 min 20 sec Undeploy Service With Check sftpserver
+ Delete Blueprint From Inventory ${serviceTypeId-Sftp}
+ Wait Until Keyword Succeeds 2 min 20 sec Undeploy Service With Check ves-collector-for-bulkpm-over-https
+ Wait Until Keyword Succeeds 2 min 20 sec Undeploy Service With Check https-server-dep
Delete Blueprint From Inventory ${serviceTypeId-Https}
- Undeploy Service https-server-wrong-sans-dep
+ Wait Until Keyword Succeeds 2 min 20 sec Undeploy Service With Check https-server-wrong-sans-dep
Delete Blueprint From Inventory ${serviceTypeId-Https-wrong-sans}
+ Wait Until Keyword Succeeds 2 min 20 sec Undeploy Service With Check mongo-dep-5gbulkpm
+ Wait Until Keyword Succeeds 2 min 20 sec Undeploy Service With Check ves-rest-client-dep
+ Delete Blueprint From Inventory ${serviceTypeIdMongo}
+ Delete Blueprint From Inventory ${serviceTypeIdVesClient}
+
+
+Undeploy Service With Check
+ [Arguments] ${deployment_name}
+ ${resp} Undeploy Service ${deployment_name}
+ Should Not Be Equal As Strings ${resp.status_code} 400
+
Setting Global Variables
[Documentation]
@@ -316,12 +325,12 @@ Deploying HTTPS server with wrong certificates - wrong SAN-s
Set Global Variable ${httpsServerWrongSansOperationId}
Deploying VES Client with correct certificates
- ${serviceTypeIdMongo} Load Blueprint To Inventory ${MONGO_BLUEPRINT_PATH} mongo-5g-bulk-pm
- ${serviceTypeIdVesClient} Load Blueprint To Inventory ${PNF_SIMULATOR_BLUEPRINT_PATH} ves-rest-client
+ ${serviceTypeIdMongo} Load Blueprint To Inventory ${MONGO_VES_CLIENT_BLUEPRINT_PATH} mongo-5g-bulk-pm
+ ${serviceTypeIdVesClient} Load Blueprint To Inventory ${VES_CLIENT_BLUEPRINT_PATH} ves-rest-client
Set Suite Variable ${serviceTypeIdMongo}
Set Suite Variable ${serviceTypeIdVesClient}
- ${deployment_data}= Set Variable {"serviceTypeId": "${serviceTypeIdMongo}"}
- Deploy Service ${deployment_data} mongo-dep-5gbulkpm 2 minutes
+ ${deployment_data}= Set Variable {"serviceTypeId": "${serviceTypeIdMongo}", "inputs": {"service_component_type": "mongo-ves-client", "service_component_name_override": "mongo-ves-client"}}
+ Deploy Service ${deployment_data} mongo-dep-5gbulkpm 2 minutes
${resp}= Get Blueprint From Inventory ves-rest-client
${json}= Set Variable ${resp.json()}
${image} Get Regexp Matches ${json['items'][0]['blueprintTemplate']} nexus3(.)*?(?=\')
@@ -443,4 +452,3 @@ Change DFC httpsHostnameVerify configuration in Consul
Should Be Equal As Integers ${rc} 0
Wait Until Keyword Succeeds 60 sec 5 sec Check DFC logs kubectl logs -n onap $(kubectl get pods -n onap | grep datafile-collector | awk '{print $1}' | grep -v NAME) ${container_name}-datafile-collector
-