Robot Framework 7.0 changes
Update robot code syntax overall in the repo
Changes:
- Update the requirement.txt package version for robot
- The '[Return]' setting is deprecated.
Use the 'RETURN' statement instead.
- Singular section headers like '*** Test Case ***'
are deprecated. Use plural format like
'*** Test Cases ***' instead.
- Singular section headers like '*** Variable ***'
are deprecated
Tested:
- Ran from sandbox with the version
$ robot --version
Robot Framework 7.0 (Python 3.10.12 on linux)
and also tested on latest python version
Robot Framework 7.0 (Python 3.11.9 on linux)
Change-Id: I54e85f9d799556c63b9a39f79483f83e9b980768
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/external_intf/vmi_utils.robot b/lib/external_intf/vmi_utils.robot
index 7532b3d..f0c6e86 100644
--- a/lib/external_intf/vmi_utils.robot
+++ b/lib/external_intf/vmi_utils.robot
@@ -145,7 +145,7 @@
... IPv4_Address=${ip_resp["IPv4Addresses"]} Name=${ip_resp["Name"]}
... InterfaceEnabled=${${ip_resp["InterfaceEnabled"]}}
- [Return] &{vmi_ip}
+ RETURN &{vmi_ip}
Get VMI Interfaces
@@ -168,7 +168,7 @@
Append To List ${interface_list} ${interface_value}
END
- [Return] @{interface_list}
+ RETURN @{interface_list}
Verify VMI EthernetInterfaces
@@ -208,4 +208,4 @@
Set Static IPv4 Address To VMI And Verify ${vmi_ip} ${bmc_ip_data[0]['Gateway']}
... ${bmc_ip_data[0]['SubnetMask']} ${valid_status_code} ${interface}
- [Return] ${vmi_ip} ${bmc_ip_data}
+ RETURN ${vmi_ip} ${bmc_ip_data}