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/openpower/ext_interfaces/test_vmicert_management.robot b/openpower/ext_interfaces/test_vmicert_management.robot
index 05de1d2..b5927ae 100644
--- a/openpower/ext_interfaces/test_vmicert_management.robot
+++ b/openpower/ext_interfaces/test_vmicert_management.robot
@@ -590,7 +590,7 @@
${output}= Run ${ssl_cmd} ${ssl_sub}
${csr}= OperatingSystem.Get File ${CSR_FILE}
- [Return] ${csr}
+ RETURN ${csr}
Send CSR To VMI And Get Signed
@@ -619,7 +619,7 @@
... timeout=${read_timeout} expected_status=any
Log to console ${resp.content}
- [Return] ${resp}
+ RETURN ${resp}
Get Root Certificate
@@ -669,7 +669,7 @@
... ELSE
... Run openssl x509 -in ${file_name} -text -noout | grep Subject:
- [Return] ${subject}
+ RETURN ${subject}
Get Public Key
@@ -683,7 +683,7 @@
${PublicKey}= Run Keyword If ${is_csr_file} Run openssl req -in ${file_name} -noout -pubkey
... ELSE Run openssl x509 -in ${file_name} -noout -pubkey
- [Return] ${PublicKey}
+ RETURN ${PublicKey}
Get Certificate Signed By VMI