From 0ca56d1bc3ff43e8aca4c330283a01c6a422405a Mon Sep 17 00:00:00 2001 From: DR695H Date: Tue, 14 May 2019 11:48:20 -0400 Subject: remove unneeded libraries httplibrary is replicated with requests so replacing the few places that use it with the requests. also removing kafkalibrary since it isnt used and we dont want to use it since its not python 3 compatible. Change-Id: I4acd09e4f0f776ebf99f386d17637712551b3243 Issue-ID: TEST-155 Signed-off-by: DR695H --- robot/resources/test_templates/closedloop_test_template.robot | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'robot/resources/test_templates/closedloop_test_template.robot') diff --git a/robot/resources/test_templates/closedloop_test_template.robot b/robot/resources/test_templates/closedloop_test_template.robot index 5853abf5..dcbb7e65 100644 --- a/robot/resources/test_templates/closedloop_test_template.robot +++ b/robot/resources/test_templates/closedloop_test_template.robot @@ -7,7 +7,6 @@ Resource ../stack_validation/packet_generator_interface.robot Resource vnf_orchestration_test_template.robot Library String -Library HttpLibrary.HTTP LIbrary Process *** Variables *** @@ -82,9 +81,7 @@ Get Configs VFW Policy ${output} = Fill JSON Template File ${GECONFIG_VFW_TEMPLATE} ${configpolicy_name} ${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output} Should Be Equal As Strings ${get_resp.status_code} 200 - - ${json}= Parse Json ${get_resp.content} - ${config}= Parse Json ${json[0]["config"]} + ${config}= Catenate ${get_resp.json()[0]["config"]} ${thresholds}= Get Variable Value ${config["content"]["tca_policy"]["metricsPerEventName"][0]["thresholds"]} # Extract object1 from Array @@ -104,8 +101,7 @@ Get Configs VDNS Policy ${output} = Fill JSON Template File ${GECONFIG_VFW_TEMPLATE} ${configpolicy_name} ${get_resp} = Run Policy Get Configs Request ${RESOURCE_PATH_GET_CONFIG} ${output} Should Be Equal As Strings ${get_resp.status_code} 200 - ${json}= Parse Json ${get_resp.content} - ${config}= Parse Json ${json[0]["config"]} + ${config}= Catenate ${get_resp.json()[0]["config"]} ${thresholds}= Get Variable Value ${config["content"]["tca_policy"]["metricsPerEventName"][0]["thresholds"]} # Extract object1 from Array -- cgit 1.2.3-korg