aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2019-01-16 09:38:46 -0500
committerBrian Freeman <bf1936@att.com>2019-01-16 09:39:15 -0500
commitcc84e48d6b9a1d5a16efa59fe9b6cf43aca5fbfe (patch)
tree713cf009879e6f503443fc566ed07ea3b367dab2 /robot/resources
parent86805fe196290648e7e3c40ec834d32dcc115691 (diff)
Update GET examples
Issue-ID: INT-808 Change-Id: I40225b77baaf52221a25c6a8cf7e496d8a03d15b Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/clamp_interface.robot11
1 files changed, 8 insertions, 3 deletions
diff --git a/robot/resources/clamp_interface.robot b/robot/resources/clamp_interface.robot
index 29365c0c..4cf15e8b 100644
--- a/robot/resources/clamp_interface.robot
+++ b/robot/resources/clamp_interface.robot
@@ -13,10 +13,16 @@ ${CLAMP_CLIENT_CERT} robot/assets/keys/org.onap.clamp.cert.pem
*** Keywords ***
+Run CLAMP Get Properties
+ [Documentation] get CLAMP Control Loop properties
+ [Arguments] ${property_id}
+ ${data_path}= Set Variable ${CLAMP_BASE_PATH}/clds/properties/${property_id}
+ ${resp}= Run Clamp HTTPS Get Request ${data_path}
+
Run CLAMP Get Control Loop
[Documentation] runs CLAMP Open Control Loop based on model name
[Arguments] ${model_name}
- ${data_path}= Set Variable ${CLAMP_BASE_PATH}/clds/model-names
+ ${data_path}= Set Variable ${CLAMP_BASE_PATH}/clds/model/${model_name}
${resp}= Run Clamp HTTPS Get Request ${data_path}
Run CLAMP Get Model Names
@@ -36,7 +42,7 @@ Run CLAMP HTTPS Get Request
${session}= Create Client Cert Session session ${CLAMP_ENDPOINT} client_certs=@{client_certs}
${resp}= Get Request session ${data_path}
Should Be Equal As Integers ${resp.status_code} 200
- Log Received response from CLAMP ${resp.text}
+ Log ${resp.json()}
[Return] ${resp}
Run CLAMP Get Request
@@ -47,4 +53,3 @@ Run CLAMP Get Request
Should Be Equal As Integers ${resp.status_code} 200
Log Received response from CLAMP ${resp.text}
[Return] ${resp}
-