summaryrefslogtreecommitdiffstats
path: root/robot/resources/aai/create_service.robot
diff options
context:
space:
mode:
Diffstat (limited to 'robot/resources/aai/create_service.robot')
-rw-r--r--robot/resources/aai/create_service.robot11
1 files changed, 11 insertions, 0 deletions
diff --git a/robot/resources/aai/create_service.robot b/robot/resources/aai/create_service.robot
index e473d491..0dc7a2f2 100644
--- a/robot/resources/aai/create_service.robot
+++ b/robot/resources/aai/create_service.robot
@@ -59,6 +59,17 @@ Get Services
Run Keyword If '${status}' == 'PASS' Update Service Dictionary ${dict} ${resp.json()}
[Return] ${dict}
+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']}
+ :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
+ \ ${id} Run Keyword If '${service_type}' == '${service_description}' Set Variable ${service_id}
+ [Return] ${id}
+
Update Service Dictionary
[Arguments] ${dict} ${json}
@{list}= Copy List ${json['service']}