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/snmp/redfish_snmp_utils.robot b/lib/snmp/redfish_snmp_utils.robot
index 57424aa..9045143 100644
--- a/lib/snmp/redfish_snmp_utils.robot
+++ b/lib/snmp/redfish_snmp_utils.robot
@@ -60,7 +60,7 @@
Append To List ${snmp_mgr_list} ${snmp_mgr}
END
- [Return] ${snmp_mgr_list}
+ RETURN ${snmp_mgr_list}
Configure SNMP Manager Via Redfish
@@ -139,7 +139,7 @@
# Get the list of child URIs.
@{snmp_mgr_uris}= Redfish.Get Members List ${subscription_uri} filter=snmp
- [Return] ${snmp_mgr_uris}
+ RETURN ${snmp_mgr_uris}
Delete SNMP Manager Via Redfish
@@ -228,7 +228,7 @@
Verify SNMP Trap ${snmp_trap} ${expected_error}
- [Return] ${snmp_trap}
+ RETURN ${snmp_trap}
Verify SNMP Trap
@@ -299,7 +299,7 @@
Verify SNMP Trap ${snmp_trap} ${expected_error}
- [Return] ${snmp_trap}
+ RETURN ${snmp_trap}
Start SNMP Manager On Specific Port
@@ -355,5 +355,5 @@
Verify SNMP Trap ${snmp_trap} ${expected_error}
- [Return] ${snmp_trap}
+ RETURN ${snmp_trap}
diff --git a/lib/snmp/snmp_utils.robot b/lib/snmp/snmp_utils.robot
index d78122d..d94cb8f 100644
--- a/lib/snmp/snmp_utils.robot
+++ b/lib/snmp/snmp_utils.robot
@@ -17,7 +17,7 @@
@{snmp_uri_list}= Read Properties ${SNMP_MANAGER_URI}
- [Return] @{snmp_uri_list}
+ RETURN @{snmp_uri_list}
Configure SNMP Manager On BMC
[Documentation] Configure SNMP manager on BMC.
@@ -64,7 +64,7 @@
Append To List ${ip_and_port_list} ${ip} ${port}
END
- [Return] @{ip_and_port_list}
+ RETURN @{ip_and_port_list}
Verify SNMP Manager