Added test to verify installed CA certificate
Added testcases:
- Verify Installed CA Certificate
Change-Id: I2e8fb36c3ebbde167b1aa2dcc3611ba05cbb9024
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/lib/certificate_utils.robot b/lib/certificate_utils.robot
index 895ca64..6deaf6c 100755
--- a/lib/certificate_utils.robot
+++ b/lib/certificate_utils.robot
@@ -157,3 +157,10 @@
${openssl_cert_content}= Get Certificate Content From BMC Via Openssl
Should Contain ${cert_file_content} ${openssl_cert_content}
+
+Delete All CA Certificate Via Redfish
+ [Documentation] Delete all CA certificate via Redfish.
+ ${cert_list}= Redfish_Utils.Get Member List /redfish/v1/Managers/bmc/Truststore/Certificates
+ FOR ${cert} IN @{cert_list}
+ Redfish.Delete ${cert} valid_status_codes=[${HTTP_NO_CONTENT}]
+ END