diff options
author | DR695H <dr695h@att.com> | 2019-05-14 11:48:20 -0400 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2019-05-14 11:51:57 -0400 |
commit | 0ca56d1bc3ff43e8aca4c330283a01c6a422405a (patch) | |
tree | df3c495769b59e93588557e2bb4e0746d3df3715 /robot/resources/test_templates/closedloop_test_template.robot | |
parent | a9107a734e443c257a114812fb830a3628808efb (diff) |
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 <dr695h@att.com>
Diffstat (limited to 'robot/resources/test_templates/closedloop_test_template.robot')
-rw-r--r-- | robot/resources/test_templates/closedloop_test_template.robot | 8 |
1 files changed, 2 insertions, 6 deletions
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 |