Removing keyword to install certificate using REST
Change-Id: I7b5e7869af19e64cbbb18d2ececfd9b3fa9f6c15
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/extended/code_update/bmc_code_update.robot b/extended/code_update/bmc_code_update.robot
index 23293e092..4227fe2 100644
--- a/extended/code_update/bmc_code_update.robot
+++ b/extended/code_update/bmc_code_update.robot
@@ -204,10 +204,15 @@
${file_data}= OperatingSystem.Get Binary File ${cert_file_path}
${cert_file_content}= OperatingSystem.Get File ${cert_file_path}
- Install Certificate File On BMC ${CLIENT_CERTIFICATE_URI}
- ... data=${file_data}
+ Redfish.Login
+ ${cert_id}= Install Certificate File On BMC ${REDFISH_CA_CERTIFICATE_URI} ok data=${file_data}
+ Logging Installed certificate id: ${cert_id}
- ${bmc_cert_content}= Get Certificate File Content From BMC Client
+ # Adding delay after certificate installation.
+ Sleep 30s
+
+ ${bmc_cert_content}= redfish_utils.Get Attribute
+ ... /redfish/v1/Managers/bmc/Truststore/Certificates/${cert_id} CertificateString
Should Contain ${cert_file_content} ${bmc_cert_content}
Upload And Activate Image ${IMAGE_FILE_PATH}
@@ -215,9 +220,13 @@
OBMC Reboot (off)
Verify Running BMC Image ${IMAGE_FILE_PATH}
- ${bmc_cert_content}= Get Certificate File Content From BMC Client
+ Redfish.Login
+ ${bmc_cert_content}= redfish_utils.Get Attribute
+ ... ${REDFISH_CA_CERTIFICATE_URI}/${cert_id} CertificateString
Should Contain ${cert_file_content} ${bmc_cert_content}
+ Redfish.Logout
+
Test Basic BMC Performance After Code Update
[Documentation] Check performance of memory, CPU & file system of BMC.