aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2018-09-18 13:00:07 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2018-09-18 13:00:12 -0700
commitf4226d65628aed98624d7c28f83864500a0962fd (patch)
tree661f2c0a04bf93631647f8a89c361886cb369e38 /test/csit
parent409c1bdbd6800b50dfdfc62fc82070ae1a66dec0 (diff)
Fix breaking CSIT for SMS
Fixes the broken SMS CSIT Issue-ID: AAF-505 Change-Id: I463baff0d9a2b103b749c375089e3e24e837094c Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'test/csit')
-rw-r--r--test/csit/tests/aaf/aaf-sms-suite/aaf-sms-test.robot15
1 files changed, 6 insertions, 9 deletions
diff --git a/test/csit/tests/aaf/aaf-sms-suite/aaf-sms-test.robot b/test/csit/tests/aaf/aaf-sms-suite/aaf-sms-test.robot
index 93084a009..78e352229 100644
--- a/test/csit/tests/aaf/aaf-sms-suite/aaf-sms-test.robot
+++ b/test/csit/tests/aaf/aaf-sms-suite/aaf-sms-test.robot
@@ -7,7 +7,7 @@ Library json
${MESSAGE} {"ping": "ok"}
#global variables
-${generatedDomId}
+
*** Test Cases ***
SMS Check SMS API Docker Container
@@ -38,9 +38,6 @@ SMS CreateDomain
Log To Console *********************
Log To Console response = ${resp}
Log To Console body = ${resp.text}
- ${response_json} json.loads ${resp.content}
- ${generatedDomId}= Convert To String ${response_json['uuid']}
- Set Global Variable ${generatedDomId}
Should Be Equal As Integers ${resp.status_code} 201
SMS CreateSecret
@@ -48,7 +45,7 @@ SMS CreateSecret
Create Session SMS ${SMS_HOSTNAME}:${SMS_PORT}
${data} Get Binary File ${CURDIR}${/}data${/}create_secret.json
&{headers}= Create Dictionary Content-Type=application/json Accept=application/json
- ${resp}= Post Request SMS /v1/sms/domain/${generatedDomId}/secret data=${data} headers=${headers}
+ ${resp}= Post Request SMS /v1/sms/domain/curltestdomain/secret data=${data} headers=${headers}
Log To Console *********************
Log To Console response = ${resp}
Log To Console body = ${resp.text}
@@ -58,7 +55,7 @@ SMS ListSecret
[Documentation] Lists all Secret Names within Domain
Create Session SMS ${SMS_HOSTNAME}:${SMS_PORT}
&{headers}= Create Dictionary Content-Type=application/json Accept=application/json
- ${resp}= Get Request SMS /v1/sms/domain/${generatedDomId}/secret headers=${headers}
+ ${resp}= Get Request SMS /v1/sms/domain/curltestdomain/secret headers=${headers}
Log To Console *********************
Log To Console response = ${resp}
Log To Console body = ${resp.text}
@@ -68,7 +65,7 @@ SMS GetSecret
[Documentation] Gets a single Secret with Values from Domain
Create Session SMS ${SMS_HOSTNAME}:${SMS_PORT}
&{headers}= Create Dictionary Content-Type=application/json Accept=application/json
- ${resp}= Get Request SMS /v1/sms/domain/${generatedDomId}/secret/curltestsecret1 headers=${headers}
+ ${resp}= Get Request SMS /v1/sms/domain/curltestdomain/secret/curltestsecret1 headers=${headers}
Log To Console *********************
Log To Console response = ${resp}
Log To Console body = ${resp.text}
@@ -78,7 +75,7 @@ SMS DeleteSecret
[Documentation] Deletes a Secret referenced by Name from Domain
Create Session SMS ${SMS_HOSTNAME}:${SMS_PORT}
&{headers}= Create Dictionary Content-Type=application/json Accept=application/json
- ${resp}= Delete Request SMS /v1/sms/domain/${generatedDomId}/secret/curltestsecret1 headers=${headers}
+ ${resp}= Delete Request SMS /v1/sms/domain/curltestdomain/secret/curltestsecret1 headers=${headers}
Log To Console *********************
Log To Console response = ${resp}
Log To Console body = ${resp.text}
@@ -88,7 +85,7 @@ SMS DeleteDomain
[Documentation] Deletes a Domain referenced by Name
Create Session SMS ${SMS_HOSTNAME}:${SMS_PORT}
&{headers}= Create Dictionary Content-Type=application/json Accept=application/json
- ${resp}= Delete Request SMS /v1/sms/domain/${generatedDomId} headers=${headers}
+ ${resp}= Delete Request SMS /v1/sms/domain/curltestdomain headers=${headers}
Log To Console *********************
Log To Console response = ${resp}
Log To Console body = ${resp.text}