Test multiple valid URL without login
Changes:
- GET base default removed
- Update test to use template.
- Check following '/', /redfish, `/redfish/v1 URL without
logged in.
This enable to test request for valid and invalid resource URL.
Change-Id: Ieaf0a6c6d9982078d39c4607d0e41cf2843ab4a9
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/bmc_redfish.py b/lib/bmc_redfish.py
index ae31d40..178a207 100644
--- a/lib/bmc_redfish.py
+++ b/lib/bmc_redfish.py
@@ -68,12 +68,11 @@
Perform a GET request and return response.
Description of argument(s):
- resource_path URI resource relative path (e.g. "Systems/1").
+ resource_path URI resource absolute path (e.g. "/redfish/v1/Systems/1").
args/kwargs These are passed directly to the corresponding
RestClientBase method.
"""
- self._rest_response_ = self._robj_.get('/redfish/v1/' + resource_path,
- *args, **kwargs)
+ self._rest_response_ = self._robj_.get(resource_path, *args, **kwargs)
return self._rest_response_
def post(self, resource_path, *args, **kwargs):