summaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorDR695H <dr695h@att.com>2019-05-14 11:48:20 -0400
committerDR695H <dr695h@att.com>2019-05-14 11:51:57 -0400
commit0ca56d1bc3ff43e8aca4c330283a01c6a422405a (patch)
treedf3c495769b59e93588557e2bb4e0746d3df3715 /robot/resources
parenta9107a734e443c257a114812fb830a3628808efb (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')
-rw-r--r--robot/resources/aai/network.robot1
-rw-r--r--robot/resources/aai/service_instance.robot1
-rw-r--r--robot/resources/aai/volume_group.robot1
-rw-r--r--robot/resources/asdc_interface.robot14
-rw-r--r--robot/resources/demo_preload.robot1
-rw-r--r--robot/resources/openstack/keystone_interface.robot4
-rw-r--r--robot/resources/ssh/files.robot1
-rw-r--r--robot/resources/ssh/processes.robot1
-rw-r--r--robot/resources/test_templates/closedloop_test_template.robot8
-rw-r--r--robot/resources/test_templates/hvves_template.robot19
10 files changed, 17 insertions, 34 deletions
diff --git a/robot/resources/aai/network.robot b/robot/resources/aai/network.robot
index 6bda4e27..51b0df47 100644
--- a/robot/resources/aai/network.robot
+++ b/robot/resources/aai/network.robot
@@ -8,7 +8,6 @@ Library Collections
Library OperatingSystem
Library RequestsLibrary
Library JSONUtils
-Library HttpLibrary.HTTP
Resource ../json_templater.robot
diff --git a/robot/resources/aai/service_instance.robot b/robot/resources/aai/service_instance.robot
index 31a4a610..bd399a2c 100644
--- a/robot/resources/aai/service_instance.robot
+++ b/robot/resources/aai/service_instance.robot
@@ -8,7 +8,6 @@ Library Collections
Library OperatingSystem
Library RequestsLibrary
Library JSONUtils
-Library HttpLibrary.HTTP
Library StringTemplater
Resource ../json_templater.robot
Resource ../stack_validation/validate_vlb.robot
diff --git a/robot/resources/aai/volume_group.robot b/robot/resources/aai/volume_group.robot
index 40674a5e..de3e28d3 100644
--- a/robot/resources/aai/volume_group.robot
+++ b/robot/resources/aai/volume_group.robot
@@ -8,7 +8,6 @@ Library Collections
Library OperatingSystem
Library RequestsLibrary
Library JSONUtils
-Library HttpLibrary.HTTP
Resource ../json_templater.robot
diff --git a/robot/resources/asdc_interface.robot b/robot/resources/asdc_interface.robot
index 6ffc17e1..35eab129 100644
--- a/robot/resources/asdc_interface.robot
+++ b/robot/resources/asdc_interface.robot
@@ -6,7 +6,6 @@ Library JSONUtils
Library OperatingSystem
Library Collections
Library SeleniumLibrary
-Library HttpLibrary.HTTP
Library String
Library StringTemplater
Library ArchiveLibrary
@@ -84,7 +83,6 @@ Distribute Model From ASDC
# Save the resource_id in a dictionary keyed byt the resource NAme in the zipfile name (vFWDT_vFWSNK.zip or vFWDT_vPKG.zip)
# Create the resources but dont immediately add resource
# Add Resource to Service in a separate FOR loop
- # TODO: CHECK vCPE models to make sure they aren't broken with the split
${resource_types}= Create Dictionary
:FOR ${zip} IN @{model_zip_path}
@@ -178,12 +176,12 @@ Distribute vCPEResCust Model From ASDC
# Create /tmp/vcpe_allotted_resource_data.json with demo vgmux and brgemu CSARs
Create Allotted Resource Data File
${vcpe_ar_data_file} OperatingSystem.Get File /tmp/vcpe_allotted_resource_data.json
- ${tunnelxconn_invariant_uuid} Get Json Value ${vcpe_ar_data_file} /tunnelxconn/invariantUUID
- ${tunnelxconn_uuid} Get Json Value ${vcpe_ar_data_file} /tunnelxconn/UUID
- ${tunnelxconn_node_type} Get Json Value ${vcpe_ar_data_file} /tunnelxconn/node_type
- ${brg_invariant_uuid} Get Json Value ${vcpe_ar_data_file} /brg/invariantUUID
- ${brg_uuid} Get Json Value ${vcpe_ar_data_file} /brg/UUID
- ${brg_node_type} Get Json Value ${vcpe_ar_data_file} /brg/node_type
+ ${tunnelxconn_invariant_uuid}= Catenate ${vcpe_ar_data_file.json()['tunnelxconn']['invariantUUID']}
+ ${tunnelxconn_uuid}= Catenate ${vcpe_ar_data_file.json()['tunnelxconn']['UUID']}
+ ${tunnelxconn_node_type}= Catenate ${vcpe_ar_data_file.json()['tunnelxconn']['node_type']}
+ ${brg_invariant_uuid}= Catenate ${vcpe_ar_data_file.json()['brg']['invariantUUID']}
+ ${brg_uuid}= Catenate ${vcpe_ar_data_file.json()['brg']['UUID']}
+ ${brg_node_type}= Catenate ${vcpe_ar_data_file.json()['brg']['node_type']}
${tunnelxconn_dict}= Create Dictionary invariantUUID=${tunnelxconn_invariant_uuid} UUID=${tunnelxconn_uuid} node_type=${tunnelxconn_node_type}
${brg_dict}= Create Dictionary invariantUUID=${brg_invariant_uuid} UUID=${brg_uuid} node_type=${brg_node_type}
${xoffset}= Set Variable ${100}
diff --git a/robot/resources/demo_preload.robot b/robot/resources/demo_preload.robot
index ef8bbabf..dd16bfcf 100644
--- a/robot/resources/demo_preload.robot
+++ b/robot/resources/demo_preload.robot
@@ -13,7 +13,6 @@ Resource aai/create_availability_zone.robot
Library UUID
Library Collections
Library OperatingSystem
-Library HttpLibrary.HTTP
Library SeleniumLibrary
Library RequestsLibrary
diff --git a/robot/resources/openstack/keystone_interface.robot b/robot/resources/openstack/keystone_interface.robot
index 03e94bb0..3fe13c71 100644
--- a/robot/resources/openstack/keystone_interface.robot
+++ b/robot/resources/openstack/keystone_interface.robot
@@ -7,7 +7,6 @@ Library UUID
Library Collections
Library OperatingSystem
Library String
-Library HttpLibrary.HTTP
Resource ../global_properties.robot
Resource ../json_templater.robot
Resource openstack_common.robot
@@ -54,8 +53,7 @@ Get KeystoneAPIVersion
${resp}= Get Request keystone / headers=${headers}
Log Received response from keystone ${resp.text}
Should Be Equal As Strings ${resp.status_code} 300
- ${json}= Parse Json ${resp.content}
- ${versions}= Get From Dictionary ${json} versions
+ ${versions}= Get From Dictionary ${resp.json()} versions
${values}= Get From Dictionary ${versions} values
:FOR ${value} IN @{values}
\ ${status}= Get Variable Value ${value["status"]}
diff --git a/robot/resources/ssh/files.robot b/robot/resources/ssh/files.robot
index fcfffbb3..9ccdd717 100644
--- a/robot/resources/ssh/files.robot
+++ b/robot/resources/ssh/files.robot
@@ -2,7 +2,6 @@
Documentation Some handy Keywords for accessing log files over SSH. Assumptions are that logs will belong to users other than the currently logged in user and that sudo will be required
Library OperatingSystem
Library SSHLibrary
-Library HttpLibrary.HTTP
Library String
Library Collections
diff --git a/robot/resources/ssh/processes.robot b/robot/resources/ssh/processes.robot
index 8b5cf157..44d82c86 100644
--- a/robot/resources/ssh/processes.robot
+++ b/robot/resources/ssh/processes.robot
@@ -2,7 +2,6 @@
Documentation Some handy Keywords for accessing log files over SSH. Assumptions are that logs will belong to users other than the currently logged in user and that sudo will be required
Library OperatingSystem
Library SSHLibrary 60 seconds
-Library HttpLibrary.HTTP
Library String
Library Collections
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
diff --git a/robot/resources/test_templates/hvves_template.robot b/robot/resources/test_templates/hvves_template.robot
index 622cacb0..74f04dc0 100644
--- a/robot/resources/test_templates/hvves_template.robot
+++ b/robot/resources/test_templates/hvves_template.robot
@@ -1,10 +1,10 @@
*** Settings ***
Documentation Template contains stuff for HV-VES use case.
Library OperatingSystem
+Library RequestsLibrary
Library Rammbock
Library BuiltIn
Library Collections
-Library HttpLibrary.HTTP
*** Variables ***
${hvves_message} 0x0a94020a0e73616d706c652d76657273696f6e12087065726633677070180120012a0a70657266334750503232321173616d706c652d6576656e742d6e616d653a1173616d706c652d6576656e742d7479706540f19afddd0548f19afddd05521573616d706c652d6e662d6e616d696e672d636f64655a1673616d706c652d6e66632d6e616d696e672d636f6465621573616d706c652d6e662d76656e646f722d6e616d656a1a73616d706c652d7265706f7274696e672d656e746974792d6964721c73616d706c652d7265706f7274696e672d656e746974792d6e616d657a1073616d706c652d736f757263652d696482010f73616d706c652d786e662d6e616d658a01095554432b30323a3030920105372e302e32120e7465737420746573742074657374
@@ -16,20 +16,17 @@ ${sasl_mechanisms} PLAIN
Check Message Router Api
[Documentation] Checks message via message router API.
[Arguments] ${message_router} ${message_router_port} ${topic}
- ${status} ${response}= Run Keyword And Ignore Error GET http://${message_router}:${message_router_port}/events/${topic}/1/1
- ${response_code}= Get Response Status
- ${response_body}= Get Response Body
- Run Keyword If '${status}'=='FAIL' Should Start With ${response_code} 404
- Run Keyword If '${status}'=='FAIL' Log Topic ${topic} does not exist.
- Run Keyword If '${status}'=='PASS' Should Start With ${response_code} 200
- Run Keyword If '${status}'=='PASS' Log Topic ${topic} exists.
+ ${session}= Create Session session http://${message_router}:${message_router_port}/events
+ ${resp}= Get Request session /${topic}/1/1
+ Run Keyword If 400 <= ${resp.status_code} < 500 Log Topic ${topic} does not exist.
+ Run Keyword If 200 <= ${resp.status_code} < 300 Log Topic ${topic} exists.
Check If Topic Exists
[Documentation] Checks if specific topic exists on kafka.
[Arguments] ${message_router} ${message_router_port} ${topic}
- ${response}= GET http://${message_router}:${message_router_port}/topics
- ${body}= Get Response Body
- ${value}= Get Json Value ${body} /topics
+ ${session}= Create Session session http://${message_router}:${message_router_port}/topics
+ ${resp}= Get Request session /
+ ${value}= Catenate ${resp.json()['topics']}
Should Contain ${value} ${topic}
Define WTP Protocol