upgrade to python3 libraries
basing the code off of robot framework 3.1.1 instead of 3.0, replacing
selenium2lib with selnium lib and selenium3, replacing extendedselenium
with angularjs lib. Fixing most warnings and all errors from these moves
Change-Id: Ifed68c5b8cd28c7bbdc80ee7245860914bdee5b4
Issue-ID: TEST-151
Signed-off-by: DR695H <dr695h@att.com>
diff --git a/robot/resources/openstack/keystone_interface.robot b/robot/resources/openstack/keystone_interface.robot
index fa37733..03e94bb 100644
--- a/robot/resources/openstack/keystone_interface.robot
+++ b/robot/resources/openstack/keystone_interface.robot
@@ -57,7 +57,7 @@
${json}= Parse Json ${resp.content}
${versions}= Get From Dictionary ${json} versions
${values}= Get From Dictionary ${versions} values
- : FOR ${value} IN @{values}
+ :FOR ${value} IN @{values}
\ ${status}= Get Variable Value ${value["status"]}
\ Run Keyword If '${status}'=='stable' Exit For Loop
${href}= Set Variable ${value["links"][0]["href"]}
diff --git a/robot/resources/openstack/neutron_interface.robot b/robot/resources/openstack/neutron_interface.robot
index bdb64b9..9356389 100644
--- a/robot/resources/openstack/neutron_interface.robot
+++ b/robot/resources/openstack/neutron_interface.robot
@@ -88,7 +88,7 @@
${resp}= Get Openstack Subnets ${alias}
@{list}= Get From Dictionary ${resp} subnets
${returnnet}= Set Variable
- :for ${net} in @{list}
+ :FOR ${net} IN @{list}
\ ${name}= Get From Dictionary ${net} name
\ ${cidr}= Get From Dictionary ${net} cidr
\ ${returnnet}= Set Variable ${net}
@@ -100,7 +100,7 @@
[Arguments] ${alias} ${network_name} ${cidr} ${ip}
${ports}= Get Openstack Ports For Subnet ${alias} ${network_name} ${cidr}
Log ${ports}
- :for ${port} in @{ports}
+ :FOR ${port} IN @{ports}
\ Return From Keyword If '${port['fixed_ips'][0]['ip_address']}' == '${ip}' ${port}
[Return] None
@@ -109,7 +109,7 @@
${net}= Get Openstack Subnet By Name ${alias} ${network_name} ${cidr}
${ports}= Get Openstack Ports ${alias}
${net_ports}= Create List
- :for ${port} in @{ports['ports']}
+ :FOR ${port} IN @{ports['ports']}
\ Run Keyword If '${net['network_id']}' == '${port['network_id']}' Append To List ${net_ports} ${port}
[Return] ${net_ports}
diff --git a/robot/resources/openstack/nova_interface.robot b/robot/resources/openstack/nova_interface.robot
index 2c9ec4c..8b64bb9 100644
--- a/robot/resources/openstack/nova_interface.robot
+++ b/robot/resources/openstack/nova_interface.robot
@@ -142,7 +142,7 @@
Get Id For Name
[Arguments] ${list} ${name}
- :for ${item} in @{list}
+ :FOR ${item} IN @{list}
\ ${id}= Get From Dictionary ${item} id
\ ${n}= Get From Dictionary ${item} name
\ Return from Keyword If '${n}' == '${name}' ${id}