diff options
author | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-09-13 12:10:48 -0700 |
---|---|---|
committer | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-09-13 12:10:52 -0700 |
commit | e3eb1653c982232c22665e2c1f1b903c34d934f1 (patch) | |
tree | 81a7235ffe5a0429b6032ab33f8e00278db50a31 /test/csit/tests/aaf/aaf-sms-suite/aaf-sms-test.robot | |
parent | d6534489b43de196db8326445fef10d8b5338a06 (diff) |
Fix failing CSIT after patch 66277
CSIT for SMS is failing after patch 66277
This patch addresses that.
Issue-ID: AAF-490
Change-Id: I28f164ebbdc558703ffc5713c313fdf6a5199054
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'test/csit/tests/aaf/aaf-sms-suite/aaf-sms-test.robot')
-rw-r--r-- | test/csit/tests/aaf/aaf-sms-suite/aaf-sms-test.robot | 15 |
1 files changed, 9 insertions, 6 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 dae48a9f5..93084a009 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 -${generatedAID} +${generatedDomId} *** Test Cases *** SMS Check SMS API Docker Container @@ -38,6 +38,9 @@ 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 @@ -45,7 +48,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/curltestdomain/secret data=${data} headers=${headers} + ${resp}= Post Request SMS /v1/sms/domain/${generatedDomId}/secret data=${data} headers=${headers} Log To Console ********************* Log To Console response = ${resp} Log To Console body = ${resp.text} @@ -55,7 +58,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/curltestdomain/secret headers=${headers} + ${resp}= Get Request SMS /v1/sms/domain/${generatedDomId}/secret headers=${headers} Log To Console ********************* Log To Console response = ${resp} Log To Console body = ${resp.text} @@ -65,7 +68,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/curltestdomain/secret/curltestsecret1 headers=${headers} + ${resp}= Get Request SMS /v1/sms/domain/${generatedDomId}/secret/curltestsecret1 headers=${headers} Log To Console ********************* Log To Console response = ${resp} Log To Console body = ${resp.text} @@ -75,7 +78,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/curltestdomain/secret/curltestsecret1 headers=${headers} + ${resp}= Delete Request SMS /v1/sms/domain/${generatedDomId}/secret/curltestsecret1 headers=${headers} Log To Console ********************* Log To Console response = ${resp} Log To Console body = ${resp.text} @@ -85,7 +88,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/curltestdomain headers=${headers} + ${resp}= Delete Request SMS /v1/sms/domain/${generatedDomId} headers=${headers} Log To Console ********************* Log To Console response = ${resp} Log To Console body = ${resp.text} |