Add NotAllowed error for cert replace interface
Error xyz.openbmc_project.Common.Error.NotAllowed is going to be used
in phosphor-certificate-manager in certificate replacement handler.
This patch is about adding such error to the list of handled errors.
Tested by certificate replacement fault injection (replacing with
certificate with ID/hash already existing on the certificate list) using
RF API for certificates managment.
Signed-off-by: Zbigniew Lukwinski <zbigniew.lukwinski@intel.com>
Change-Id: If594175f8d509470f69e45c3828b5d3c820f2d1a
diff --git a/xyz/openbmc_project/Certs/Replace.interface.yaml b/xyz/openbmc_project/Certs/Replace.interface.yaml
index 8f13b11..714c589 100644
--- a/xyz/openbmc_project/Certs/Replace.interface.yaml
+++ b/xyz/openbmc_project/Certs/Replace.interface.yaml
@@ -14,3 +14,4 @@
errors:
- xyz.openbmc_project.Common.Error.InternalFailure
- xyz.openbmc_project.Certs.Error.InvalidCertificate
+ - xyz.openbmc_project.Common.Error.NotAllowed