- [Arguments] ${data_path}
- ${auth}= Create List ${GLOBAL_INJECTED_E2MGR_USER} ${GLOBAL_INJECTED_E2MGR_PASSWORD}
- ${session}= Create Session e2mgr ${E2MGR_ENDPOINT} auth=${auth}
- ${uuid}= Generate UUID
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- ${resp}= Delete Request e2mgr ${data_path} headers=${headers}
- Log Received response from E2Mgr ${resp.text}
- Should Be Equal As Strings ${resp.status_code} 200
- [Return] ${resp}
+ [Arguments] ${data_path}
+ ${auth} = Create List
+ ... ${GLOBAL_INJECTED_E2MGR_USER}
+ ... ${GLOBAL_INJECTED_E2MGR_PASSWORD}
+ ${session} = Create Session e2mgr ${E2MGR_ENDPOINT} auth=${auth}
+ ${uuid} = Generate UUID
+ ${headers} = Create Dictionary
+ ... Accept=application/json
+ ... Content-Type=application/json
+ ${resp} = Delete Request e2mgr ${data_path} headers=${headers}
+ Log Received response from E2Mgr ${resp.text}
+ Should Be True ${resp}
+ [Return] ${resp}
+
+Run E2Mgr POST Request
+ [Documentation] Send an HTTP POST to the E2 Manager
+ [Arguments] ${data_path} ${data}
+ ${auth} = Create List
+ ... ${GLOBAL_INJECTED_E2MGR_USER}
+ ... ${GLOBAL_INJECTED_E2MGR_PASSWORD}
+ ${session} = Create Session e2mgr ${E2MGR_ENDPOINT} auth=${auth}
+ ${headers} = Create Dictionary
+ ... Accept=application/json
+ ... Content-Type=application/json
+ ${resp} = Post Request e2mgr
+ ... ${data_path}
+ ... data=${data}
+ ... headers=${headers}
+ Log Received response from E2Mgr ${resp.text}
+ Should Be True ${resp}
+ [Return] ${resp}