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/management_console_utils.robot b/lib/external_intf/management_console_utils.robot
index 5b1c0ac..f7ab82b 100644
--- a/lib/external_intf/management_console_utils.robot
+++ b/lib/external_intf/management_console_utils.robot
@@ -59,7 +59,7 @@
Set To Dictionary ${session_info} SessionToken ${XAUTH_TOKEN}
Set To Dictionary ${session_info} SessionResp ${session_resp}
- [Return] ${session_info}
+ RETURN ${session_info}
Create Session With List Of ClientID
@@ -78,7 +78,7 @@
Append To List ${session_dict_list} ${session_dict}
END
- [Return] ${session_dict_list}
+ RETURN ${session_dict_list}
Verify A Session Created With ClientID
@@ -126,5 +126,5 @@
... json.load(open('${code_base_dir_path}data/resource_lock_table.json')) modules=json
Rprint Vars resource_lock_json
- [Return] ${resource_lock_json}
+ RETURN ${resource_lock_json}