Fix redfishtool certificate test automation issues
Changes:
- Added fix for redfishtool certificate replacement automation test case
Tested:
- Ran the testcases with fix from sandbox successfully.
Change-Id: I2c0a6065311a9cde447705e4d9da3051b3392259
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/redfish/dmtf_tools/test_redfishtool_certificate.robot b/redfish/dmtf_tools/test_redfishtool_certificate.robot
index f458390..3a38313 100644
--- a/redfish/dmtf_tools/test_redfishtool_certificate.robot
+++ b/redfish/dmtf_tools/test_redfishtool_certificate.robot
@@ -381,13 +381,14 @@
${payload}= Set Variable '${string}'
${expected_resp}= Set Variable If '${expected_status}' == 'ok' ${HTTP_OK}
- ... '${expected_status}' == 'error' ${HTTP_NOT_FOUND}
+ ... '${expected_status}' == 'error' ${HTTP_NOT_FOUND}, ${HTTP_INTERNAL_SERVER_ERROR}
${response}= Redfishtool Post
... ${payload} /redfish/v1/CertificateService/Actions/CertificateService.ReplaceCertificate
... expected_error=${expected_resp}
${cert_file_content}= OperatingSystem.Get File ${cert_file_path}
+ Sleep 5s
${bmc_cert_content}= Redfishtool GetAttribute ${certificate_uri} CertificateString
Run Keyword If '${expected_status}' == 'ok'