diff options
author | Krzysztof Kuzmicki <krzysztof.kuzmicki@nokia.com> | 2020-04-10 17:31:43 +0200 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2020-04-13 10:10:46 +0000 |
commit | 80c61bf3c01ab00d23cdd0e7b96336d8d859b49e (patch) | |
tree | 6e6f2cfd6e809deb15ab8d46092dbed0fd00a231 /robot/resources/aai/create_customer.robot | |
parent | 83a352f8c04a608f2b6acded0a091b7da00d4d08 (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_customer.robot')
-rw-r--r-- | robot/resources/aai/create_customer.robot | 7 |
1 files changed, 4 insertions, 3 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 |