diff options
author | Jerry Flood <jflood@att.com> | 2019-04-23 16:16:34 -0400 |
---|---|---|
committer | Jerry Flood <jflood@att.com> | 2019-04-24 06:37:15 -0400 |
commit | cb8d238bf57c2723fac484a0f7c1dc77428a65c0 (patch) | |
tree | 42f9736406df7acbfde6449d3cc1960157cc05ee /cmso-robot/robot/resources/scheduler_common.robot | |
parent | 990a5833020c8b01f059c7e5f6405c0076eeed05 (diff) |
Remove dead code, add robot tests
Issue-ID: OPTFRA-474
Change-Id: I409f3c16d287419357d07487032ceee8eda8cf94
Signed-off-by: Jerry Flood <jflood@att.com>
Diffstat (limited to 'cmso-robot/robot/resources/scheduler_common.robot')
-rw-r--r-- | cmso-robot/robot/resources/scheduler_common.robot | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmso-robot/robot/resources/scheduler_common.robot b/cmso-robot/robot/resources/scheduler_common.robot index 1256480..ab1e8fb 100644 --- a/cmso-robot/robot/resources/scheduler_common.robot +++ b/cmso-robot/robot/resources/scheduler_common.robot @@ -83,3 +83,16 @@ Get Scheduler ${valid}= Split String ${valid_status_codes} Validate Status ${resp} ${valid} [Return] ${resp} + +Get Scheduler Plain Text + [Documentation] Runs a scheduler GET request + [Arguments] ${alias} ${data_path} + ${url}= Catenate ${GLOBAL_SCHEDULER_URL} + ${uuid}= Generate UUID + ${proxies}= Create Dictionary no=pass + ${session}= Create Session ${alias} ${url} + ${auth_string}= B64 Encode ${GLOBAL_SCHEDULER_USER}:${GLOBAL_SCHEDULER_PASSWORD} + ${headers}= Create Dictionary Accept=text/plain Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID} Authorization=Basic ${auth_string} + ${resp}= Get Request ${alias} ${data_path} headers=${headers} + Log Received response from scheduler ${resp.text} + [Return] ${resp} |