Added test to verify unresponsive paths in redfish
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>
Change-Id: I789c07398e04d162b0b9a92d3f74a19a50139a13
diff --git a/lib/bmc_redfish_utils.py b/lib/bmc_redfish_utils.py
index f492312..b9a39a2 100644
--- a/lib/bmc_redfish_utils.py
+++ b/lib/bmc_redfish_utils.py
@@ -208,10 +208,13 @@
while resources_to_be_enumerated:
for resource in resources_to_be_enumerated:
- # JsonSchemas and SessionService data are not required in enumeration.
+ # JsonSchemas, SessionService or URLs containing # are not
+ # required in enumeration.
# Example: '/redfish/v1/JsonSchemas/' and sub resources.
# '/redfish/v1/SessionService'
- if ('JsonSchemas' in resource) or ('SessionService' in resource):
+ # '/redfish/v1/Managers/bmc#/Oem'
+ if ('JsonSchemas' in resource) or ('SessionService' in resource)\
+ or ('#' in resource):
continue
self._rest_response_ = \