aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/aai/create_service.robot
diff options
context:
space:
mode:
authorKrzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com>2020-04-10 17:31:43 +0200
committerMorgan Richomme <morgan.richomme@orange.com>2020-04-13 10:10:46 +0000
commit80c61bf3c01ab00d23cdd0e7b96336d8d859b49e (patch)
tree6e6f2cfd6e809deb15ab8d46092dbed0fd00a231 /robot/resources/aai/create_service.robot
parent83a352f8c04a608f2b6acded0a091b7da00d4d08 (diff)
Enhance PNF registration test cases in Frankfurt release
Issue-ID: INT-1525 Signed-off-by: Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> Change-Id: I67ae25340a3480194910709ce06866c4fb0f0c37
Diffstat (limited to 'robot/resources/aai/create_service.robot')
-rw-r--r--robot/resources/aai/create_service.robot7
1 files changed, 4 insertions, 3 deletions
diff --git a/robot/resources/aai/create_service.robot b/robot/resources/aai/create_service.robot
index 0dc7a2f2..1c036ec3 100644
--- a/robot/resources/aai/create_service.robot
+++ b/robot/resources/aai/create_service.robot
@@ -63,10 +63,11 @@ Get Service Id
[Documentation] Gets a service id in A&AI
[Arguments] ${service_description}
${resp}= AAI.Run Get Request ${AAI_FRONTEND_ENDPOINT} ${INDEX PATH}${ROOT_SERVICE_PATH} auth=${GLOBAL_AAI_AUTHENTICATION}
- @{list}= Copy List ${resp.json['service']}
+ ${resp_json}= Set Variable ${resp.json()}
+ @{list}= Copy List ${resp_json['service']}
:FOR ${map} IN @{list}
- \ ${service_type}= Run Keyword And Ignore Error Get From Dictionary ${map} service-description
- \ ${service_id}= Run Keyword And Ignore Error Get From Dictionary ${map} service-id
+ \ ${service_type}= Get From Dictionary ${map} service-description
+ \ ${service_id}= Get From Dictionary ${map} service-id
\ ${id} Run Keyword If '${service_type}' == '${service_description}' Set Variable ${service_id}
[Return] ${id}