From d818f1484e591f3f3ec04a0bc4ae90eea886fb38 Mon Sep 17 00:00:00 2001 From: Jerry Flood Date: Mon, 11 Dec 2017 21:29:33 -0500 Subject: Complete the vFWCL closed loop test Issue-ID: TEST-72 Change-Id: Ia14c13b6fd4faf4cb5a3efb1cc26fc78f269ee0d Signed-off-by: Jerry Flood --- .../stack_validation/policy_check_vfw.robot | 29 +++++++++++++++------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'robot/resources/stack_validation/policy_check_vfw.robot') diff --git a/robot/resources/stack_validation/policy_check_vfw.robot b/robot/resources/stack_validation/policy_check_vfw.robot index 594b9146..a1daa878 100644 --- a/robot/resources/stack_validation/policy_check_vfw.robot +++ b/robot/resources/stack_validation/policy_check_vfw.robot @@ -18,27 +18,38 @@ Resource packet_generator_interface.robot Resource darkstat_interface.robot Resource validate_common.robot Resource ../../resources/test_templates/vnf_orchestration_test_template.robot +Resource ../../resources/policy_interface.robot +Resource ../../resources/demo_preload.robot *** Variables *** *** Keywords *** -Policy Check Firewall Stack +Policy Check FirewallCL Stack [Documentation] Executes the vFW policy closed loop test. - [Arguments] ${stack_name} ${policy_rate} + [Arguments] ${stacknamemap} ${policy_rate} Run Openstack Auth Request auth - ${stack_info}= Wait for Stack to Be Deployed auth ${stack_name} - ${stack_id}= Get From Dictionary ${stack_info} id + ${vsnk_stack_name}= Get From Dictionary ${stacknamemap} vFWSNK + ${vpkg_stack_name}= Get From Dictionary ${stacknamemap} vPKG + ${vsnk_stack_info}= Wait for Stack to Be Deployed auth ${vsnk_stack_name} + ${vpkg_stack_info}= Wait for Stack to Be Deployed auth ${vpkg_stack_name} ${server_list}= Get Openstack Servers auth Log ${server_list} - ${vpg_unprotected_ip}= Get From Dictionary ${stack_info} vpg_private_ip_0 - ${vsn_protected_ip}= Get From Dictionary ${stack_info} vsn_private_ip_0 - ${vpg_public_ip}= Get Server Ip ${server_list} ${stack_info} vpg_name_0 network_name=public - ${vsn_public_ip}= Get Server Ip ${server_list} ${stack_info} vsn_name_0 network_name=public + # WIth amsterdam, the generic-vnf-name = the vFW host name + ${vfw_name}= Get From Dictionary ${vsnk_stack_info} vfw_name_0 + ${status} ${generic_vnf}= Run Keyword And Ignore Error Get Service Instance ${vfw_name} + Run Keyword If '${status}' == 'FAIL' FAIL VNF Name: ${vfw_name} is not found. + ${invariantUUID} ${service} ${customer_id} ${service_instance_id}= Get Generic VNF Info ${generic_vnf} + Update vVFWCL Policy ${invariantUUID} + + ${vpg_unprotected_ip}= Get From Dictionary ${vpkg_stack_info} vpg_private_ip_0 + ${vsn_protected_ip}= Get From Dictionary ${vsnk_stack_info} vsn_private_ip_0 + ${vpg_public_ip}= Get Server Ip ${server_list} ${vpkg_stack_info} vpg_name_0 network_name=public + ${vsn_public_ip}= Get Server Ip ${server_list} ${vsnk_stack_info} vsn_name_0 network_name=public ${upper_bound}= Evaluate ${policy_rate}*2 Wait Until Keyword Succeeds 300s 1s Run VFW Policy Check ${vpg_public_ip} ${policy_rate} ${upper_bound} 1 -Policy Check FirewallCL Stack +Policy Check Firewall Stack [Documentation] Executes the vFW policy closed loop test. [Arguments] ${stack_name} ${policy_rate} Run Openstack Auth Request auth -- cgit 1.2.3-korg