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_ = \
diff --git a/redfish/service_root/test_service_root.robot b/redfish/service_root/test_service_root.robot
index 4154981..a4b8ddb 100644
--- a/redfish/service_root/test_service_root.robot
+++ b/redfish/service_root/test_service_root.robot
@@ -117,6 +117,16 @@
     Should Be Equal As Strings  ${resp.status_code}  ${HTTP_OK}
 
 
+Verify Redfish Unresponsive URL paths
+    [Documentation]  Verify that all URLs in /redfish/v1 respond.
+    [Tags]   Verify_Redfish_Unresponsive_URL_paths
+
+    Redfish.Login
+    ${resource_list}  ${dead_resources}=  Enumerate Request  /redfish/v1  include_dead_resources=True
+    Redfish.Logout
+    Valid Length  dead_resources  max_length=0
+
+
 *** Keywords ***
 
 GET And Verify Redfish Response