Library DELETE argument and test fixes
Changes:
- Updating delete operation to accept generic URL.
Change-Id: If083601b086e74c6e2d1b995be6ebd42e0a4a441
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/redfish_client.robot b/lib/redfish_client.robot
index 8dcab88..eeb87cf 100644
--- a/lib/redfish_client.robot
+++ b/lib/redfish_client.robot
@@ -94,16 +94,17 @@
Redfish Delete Request
[Documentation] Delete the resource identified by the URI.
- [Arguments] ${session_id}
+ [Arguments] ${uri_suffix}
... ${xauth_token}
... ${timeout}=10
# Description of argument(s):
- # session_id Session id.
+ # uri_suffix The URI to establish connection with
+ # (e.g. 'SessionService/Sessions/XIApcw39QU').
# xauth_token Authentication token.
# timeout Timeout in seconds to establish connection with URI.
- ${base_uri} = Catenate SEPARATOR= ${REDFISH_SESSION}${/} ${session_id}
+ ${base_uri} = Catenate SEPARATOR= ${REDFISH_BASE_URI} ${uri_suffix}
# Example: "X-Auth-Token: 3la1JUf1vY4yN2dNOwun"
${headers} = Create Dictionary Content-Type=application/json