aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/aai
diff options
context:
space:
mode:
Diffstat (limited to 'robot/resources/aai')
-rw-r--r--robot/resources/aai/create_customer.robot7
-rw-r--r--robot/resources/aai/create_service.robot7
2 files changed, 8 insertions, 6 deletions
diff --git a/robot/resources/aai/create_customer.robot b/robot/resources/aai/create_customer.robot
index c0498b6c..f5e73d36 100644
--- a/robot/resources/aai/create_customer.robot
+++ b/robot/resources/aai/create_customer.robot
@@ -39,9 +39,10 @@ Get OwningEntity Id
[Documentation] Returns OwningEntity Id based on OwningEntity name
[Arguments] ${name}
${resp}= AAI.Run Get Request ${AAI_FRONTEND_ENDPOINT} /aai/v11/business/owning-entities auth=${GLOBAL_AAI_AUTHENTICATION}
- @{list}= Copy List ${resp.json['owning-entity']}
+ ${resp_json}= Set Variable ${resp.json()}
+ @{list}= Copy List ${resp_json['owning-entity']}
:FOR ${map} IN @{list}
- \ ${owning_entity_name}= Run Keyword And Ignore Error Get From Dictionary ${map} owning-entity-name
- \ ${owning_entity_id}= Run Keyword And Ignore Error Get From Dictionary ${map} owning-entity-id
+ \ ${owning_entity_name}= Get From Dictionary ${map} owning-entity-name
+ \ ${owning_entity_id}= Get From Dictionary ${map} owning-entity-id
\ ${id} Run Keyword If '${owning_entity_name}' == '${name}' Set Variable ${owning_entity_id}
[Return] ${id} \ No newline at end of file
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}