forked from openbmc/webui-vue
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Redfish message ID checks using Regex (#170)
- Replaced the hardcoded checks for message IDs with Regular Expressions. Implemented the possible message IDs using regex in a separate module(src/utilities/GlobalConstants.js) - JIRA: https://jsw.ibm.com/browse/PFEBMC-1934 - Defect: https://jazz07.rchland.ibm.com:13443/jazz/web/projects/CSSD#action=com.ibm.team.workitem.viewWorkItem&id=588634 Signed-off-by: Nabil Ananthamangalath <nabilmanjeri@gmail.com>
- Loading branch information
1 parent
e5ad774
commit 9f3ae79
Showing
4 changed files
with
60 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const REGEX_MAPPINGS = Object.freeze({ | ||
resourceInStandby: /Base\.(\d+\.){3}ResourceInStandby/, | ||
actionParameterUnknown: /Base\.(\d+\.){3}ActionParameterUnknown/, | ||
resourceAtUriUnauthorized: /Base\.(\d+\.){3}ResourceAtUriUnauthorized/, | ||
insufficientPrivilege: /Base\.(\d+\.){3}InsufficientPrivilege/, | ||
resourceInUse: /Base\.(\d+\.){3}ResourceInUse/, | ||
propertyValueFormatError: /Base\.(\d+\.){3}PropertyValueFormatError/, | ||
createLimitReachedForResource: /Base\.(\d+\.){3}CreateLimitReachedForResource/, | ||
resourceCannotBeDeleted: /Base\.(\d+\.){3}ResourceCannotBeDeleted/, | ||
}); |