Commit ef1cda0498ce6b4ad4b31ef706d8d099e118a5d8

Authored by selurvedu
1 parent ed6a03b1

op_client: Store ID map in ${USERS}

Closes #121.
@@ -7,11 +7,11 @@ Library openprocurement_client_helper.py @@ -7,11 +7,11 @@ Library openprocurement_client_helper.py
7 [Arguments] ${username} ${tender_uaid} 7 [Arguments] ${username} ${tender_uaid}
8 Log ${username} 8 Log ${username}
9 Log ${tender_uaid} 9 Log ${tender_uaid}
10 - Log Many ${ID_MAP}  
11 - ${status}= Run Keyword And Return Status Dictionary Should Contain Key ${ID_MAP} ${tender_uaid}  
12 - Run Keyword And Return If ${status} Get From Dictionary ${ID_MAP} ${tender_uaid} 10 + Log Many ${USERS.users['${username}'].id_map}
  11 + ${status}= Run Keyword And Return Status Dictionary Should Contain Key ${USERS.users['${username}'].id_map} ${tender_uaid}
  12 + Run Keyword And Return If ${status} Get From Dictionary ${USERS.users['${username}'].id_map} ${tender_uaid}
13 ${tender_id}= get_tender_id_by_uaid ${tender_uaid} ${USERS.users['${username}'].client} 13 ${tender_id}= get_tender_id_by_uaid ${tender_uaid} ${USERS.users['${username}'].client}
14 - Set To Dictionary ${ID_MAP} ${tender_uaid} ${tender_id} 14 + Set To Dictionary ${USERS.users['${username}'].id_map} ${tender_uaid} ${tender_id}
15 [return] ${tender_id} 15 [return] ${tender_id}
16 16
17 17
@@ -23,8 +23,8 @@ Library openprocurement_client_helper.py @@ -23,8 +23,8 @@ Library openprocurement_client_helper.py
23 ${api_wrapper}= prepare_api_wrapper ${USERS.users['${username}'].api_key} ${api_host_url} ${api_version} 23 ${api_wrapper}= prepare_api_wrapper ${USERS.users['${username}'].api_key} ${api_host_url} ${api_version}
24 Set To Dictionary ${USERS.users['${username}']} client=${api_wrapper} 24 Set To Dictionary ${USERS.users['${username}']} client=${api_wrapper}
25 Set To Dictionary ${USERS.users['${username}']} access_token=${EMPTY} 25 Set To Dictionary ${USERS.users['${username}']} access_token=${EMPTY}
26 - ${ID_MAP}= Create Dictionary  
27 - Set Suite Variable ${ID_MAP} 26 + ${id_map}= Create Dictionary
  27 + Set To Dictionary ${USERS.users['${username}']} id_map=${id_map}
28 Log Variables 28 Log Variables
29 29
30 30
Please register or login to post a comment