diff options
author | Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> | 2020-04-10 17:31:43 +0200 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2020-04-13 10:10:46 +0000 |
commit | 80c61bf3c01ab00d23cdd0e7b96336d8d859b49e (patch) | |
tree | 6e6f2cfd6e809deb15ab8d46092dbed0fd00a231 /robot/resources/test_templates/pnf_registration_without_SO_template.robot | |
parent | 83a352f8c04a608f2b6acded0a091b7da00d4d08 (diff) |
Enhance PNF registration test cases in Frankfurt release
Issue-ID: INT-1525
Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>
Change-Id: I67ae25340a3480194910709ce06866c4fb0f0c37
Diffstat (limited to 'robot/resources/test_templates/pnf_registration_without_SO_template.robot')
-rw-r--r-- | robot/resources/test_templates/pnf_registration_without_SO_template.robot | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/robot/resources/test_templates/pnf_registration_without_SO_template.robot b/robot/resources/test_templates/pnf_registration_without_SO_template.robot index af9b4140..5d388266 100644 --- a/robot/resources/test_templates/pnf_registration_without_SO_template.robot +++ b/robot/resources/test_templates/pnf_registration_without_SO_template.robot @@ -22,11 +22,11 @@ Library ONAPLibrary.SO WITH NAME SO ${aai_so_registration_entry_template}= aai/add_pnf_registration_info.jinja ${pnf_ves_integration_request}= ves/pnf_registration_request.jinja ${DMAAP_MESSAGE_ROUTER_UNAUTHENTICATED_VES_PNFREG_OUTPUT_PATH} /events/unauthenticated.VES_PNFREG_OUTPUT/2/1 -${VES_ENDPOINT} ${GLOBAL_DCAE_VES_PROTOCOL}://${GLOBAL_INJECTED_DCAE_VES_HOST}:${GLOBAL_DCAE_VES_SERVER_PORT} +${VES_ENDPOINT} ${GLOBAL_DCAE_VES_HTTPS_PROTOCOL}://${GLOBAL_INJECTED_DCAE_VES_HOST}:${GLOBAL_DCAE_VES_HTTPS_SERVER_PORT} ${VES_data_path} /eventListener/v7 ${tenant_name} dummy_tenant_for_pnf ${tenant_id} dummy_tenant_id_for_pnf -${region} ${GLOBAL_INJECTED_REGION} +${region} RegionForPNF *** Keywords *** @@ -96,7 +96,8 @@ Run VES HTTP Post Request [Documentation] Runs a VES Post request [Arguments] ${data} Disable Warnings - ${session}= Create Session ves ${VES_ENDPOINT} + ${auth}= Create List ${GLOBAL_DCAE_VES_USERNAME} ${GLOBAL_DCAE_VES_PASSWORD} + ${session}= Create Session ves ${VES_ENDPOINT} auth=${auth} ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${post_resp}= Post Request ves ${VES_data_path} data=${data} headers=${headers} Log PNF integration request ${data} @@ -132,8 +133,8 @@ Instantiate PNF_macro service and succesfully registrate PNF template Load OwningEntity owningEntity OE-${customer_name} Load OwningEntity lineOfBusiness LOB-${customer_name} Load OwningEntity platform Platform-${customer_name} - ${service_instance_id} ${request_id} ${full_customer_name} Run Keyword If "${building_block_flow}"=='false' Orchestrate PNF Macro Flow ${customer_name} ${service} ${product_family} ${pnf_correlation_id} ${tenant_id} ${tenant_name} ${service_name} Project-${customer_name} OE-${customer_name} - ... ELSE Orchestrate PNF Building Block Flow ${service_model_name} ${customer_name} ${service} ${product_family} ${pnf_correlation_id} ${project_name}=Project-Demonstration ${owning_entity}=OE-Demonstration ${lineOfBusinessName}=LOB-Demonstration ${platformName}=Platform-Demonstration + ${service_instance_id} ${request_id} ${full_customer_name} Run Keyword If "${building_block_flow}"=='false' Orchestrate PNF Macro Flow ${customer_name} ${service} ${product_family} ${pnf_correlation_id} ${tenant_id} ${tenant_name} ${service_name} ${region} Project-${customer_name} OE-${customer_name} + ... ELSE Orchestrate PNF Building Block Flow ${catalog_service_name} ${customer_name} ${service} ${product_family} ${pnf_correlation_id} ${region} project_name=Project-${customer_name} owning_entity=OE-${customer_name} lineOfBusinessName=LOB-${customer_name} platformName=Platform-${customer_name} Wait Until Keyword Succeeds 120s 40s Send and verify VES integration request in SO and A&AI ${request_id} ${PNF_entry_dict} Run Keyword If "${building_block_flow}"=='true' Check PNF orchestration status in A&AI ${pnf_correlation_id} registered [Teardown] Instantiate PNF_macro service Teardown ${catalog_service_id} ${catalog_resource_ids} ${PNF_entry_dict} ${service_instance_id} ${service_recipe_id} ${building_block_flow} |