summaryrefslogtreecommitdiffstats
path: root/robot/resources/appc_interface.robot
diff options
context:
space:
mode:
authorJerry Flood <jf9860@att.com>2017-11-21 16:21:21 -0500
committerJerry Flood <jf9860@att.com>2017-11-21 16:21:52 -0500
commit81d33fb58ca4b7f6dc58fde0324df7fd6ca5bc61 (patch)
tree874d7e4c4c19ca27d9cef88e07336d5c98641c33 /robot/resources/appc_interface.robot
parent1d6cf1f62902b8a897604ae4df84d25b194cf803 (diff)
Update VID and SDNC preload for amsterdam
Issue: TEST-54 Change-Id: Iaa0d952d78f11cf1d271dce7de21bca2ff7cd419 Signed-off-by: Jerry Flood <jf9860@att.com>
Diffstat (limited to 'robot/resources/appc_interface.robot')
-rw-r--r--robot/resources/appc_interface.robot12
1 files changed, 6 insertions, 6 deletions
diff --git a/robot/resources/appc_interface.robot b/robot/resources/appc_interface.robot
index 289d1d7c..5cebd9ab 100644
--- a/robot/resources/appc_interface.robot
+++ b/robot/resources/appc_interface.robot
@@ -1,7 +1,7 @@
*** Settings ***
Documentation The main interface for interacting with APP-C. It handles low level stuff like managing the http request library and APP-C required fields
Library RequestsLibrary
-Library UUID
+Library UUID
Library OperatingSystem
Library StringTemplater
Resource global_properties.robot
@@ -19,7 +19,7 @@ Run APPC Health Check
[Documentation] Runs an APPC healthcheck
${resp}= Run APPC Post Request ${APPC_INDEX PATH}${APPC_HEALTHCHECK_OPERATION_PATH} ${None}
Should Be Equal As Strings ${resp.status_code} 200
- Should Be Equal As Strings ${resp.json()['output']['response-code']} 200
+ Should Be Equal As Strings ${resp.json()['output']['response-code']} 200
Run APPC Post Request
[Documentation] Runs an APPC post request
@@ -44,13 +44,13 @@ Run APPC Put Request
${resp}= Put Request appc ${data_path} data=${data} headers=${headers}
Log Received response from appc ${resp.text}
[Return] ${resp}
-
+
Create Mount Point In APPC
[Documentation] Go tell APPC about the PGN we just spun up...
[Arguments] ${nodeid} ${host} ${port}=${GLOBAL_PGN_PORT} ${username}=admin ${password}=admin
${dict}= Create Dictionary nodeid=${nodeid} host=${host} port=${port} username=${username} password=${password}
${template}= OperatingSystem.Get File ${APPC_MOUNT_XML}
- ${data}= Template String ${template} ${dict}
+ ${data}= Template String ${template} ${dict}
${resp}= Run APPC Put Request ${APPC_INDEX PATH}${APPC_CREATE_MOUNTPOINT_PATH}${nodeid} ${data}
- Should Be Equal As Strings ${resp.status_code} 200
- [Return] ${resp} \ No newline at end of file
+ Should Be Equal As Strings ${resp.status_code} 201
+ [Return] ${resp} \ No newline at end of file