Commit 28b9a3cdc96c68528befccdd5dc08e7e044ad571
Committed by
OrysiaDrabych
1 parent
607b1263
Add `Можливість отримати доступ до договору` test case
And corresponding keyword to op_client.robot
Showing
2 changed files
with
18 additions
and
0 deletions
@@ -1305,3 +1305,14 @@ Library openprocurement_client.utils | @@ -1305,3 +1305,14 @@ Library openprocurement_client.utils | ||
1305 | ${contract}= munch_dict arg=${contract} | 1305 | ${contract}= munch_dict arg=${contract} |
1306 | Log ${contract} | 1306 | Log ${contract} |
1307 | [return] ${contract} | 1307 | [return] ${contract} |
1308 | + | ||
1309 | + | ||
1310 | +Отримати доступ до договору | ||
1311 | + [Arguments] ${username} ${contract_uaid} | ||
1312 | + ${internalid}= openprocurement_client.Отримати internal id по UAid для договору ${username} ${contract_uaid} | ||
1313 | + ${contract}= Call Method ${USERS.users['${username}'].contracting_client} get_contract_credentials ${internalid} ${USERS.users['${username}'].access_token} ${EMPTY} | ||
1314 | + ${contract}= munch_dict arg=${contract} | ||
1315 | + Set To Dictionary ${USERS.users['${username}']} contract_data=${contract} | ||
1316 | + Set To Dictionary ${USERS.users['${username}']} contract_access_token=${contract.access.token} | ||
1317 | + Log ${contract} | ||
1318 | + [return] ${contract} |
@@ -28,3 +28,10 @@ Suite Teardown Test Suite Teardown | @@ -28,3 +28,10 @@ Suite Teardown Test Suite Teardown | ||
28 | ... ${USERS.users['${viewer}'].broker} ${USERS.users['${tender_owner}'].broker} | 28 | ... ${USERS.users['${viewer}'].broker} ${USERS.users['${tender_owner}'].broker} |
29 | :FOR ${username} IN @{used_roles} | 29 | :FOR ${username} IN @{used_roles} |
30 | \ Run As ${${username}} Пошук договору по ідентифікатору ${CONTRACT_UAID} | 30 | \ Run As ${${username}} Пошук договору по ідентифікатору ${CONTRACT_UAID} |
31 | + | ||
32 | + | ||
33 | +Можливість отримати доступ до договору | ||
34 | + [Tags] ${USERS.users['${tender_owner}'].broker}: Отримання прав доступу до договору | ||
35 | + ... tender_owner | ||
36 | + ... ${USERS.users['${tender_owner}'].broker} | ||
37 | + Run As ${tender_owner} Отримати доступ до договору ${CONTRACT_UAID} |
Please
register
or
login
to post a comment