Commit 3730cfa8498dd741c64d5cf4572341787b30c3be
Committed by
OrysiaDrabych
1 parent
16fab4a0
Update document addition in contract_management
Showing
2 changed files
with
10 additions
and
3 deletions
@@ -1322,11 +1322,19 @@ Library openprocurement_client.utils | @@ -1322,11 +1322,19 @@ Library openprocurement_client.utils | ||
1322 | [Arguments] ${username} ${contract_uaid} ${change_data} | 1322 | [Arguments] ${username} ${contract_uaid} ${change_data} |
1323 | ${internalid}= openprocurement_client.Отримати internal id по UAid для договору ${username} ${contract_uaid} | 1323 | ${internalid}= openprocurement_client.Отримати internal id по UAid для договору ${username} ${contract_uaid} |
1324 | ${reply}= Call Method ${USERS.users['${username}'].contracting_client} create_change ${internalid} ${USERS.users['${username}'].contract_access_token} ${change_data} | 1324 | ${reply}= Call Method ${USERS.users['${username}'].contracting_client} create_change ${internalid} ${USERS.users['${username}'].contract_access_token} ${change_data} |
1325 | + ${empty_list}= Create List | ||
1326 | + ${changes}= Get variable value ${USERS.users['${username}'].changes} ${empty_list} | ||
1327 | + Append to list ${changes} ${reply} | ||
1328 | + Set to dictionary ${USERS.users['${username}']} changes=${changes} | ||
1325 | Log ${change_data} | 1329 | Log ${change_data} |
1326 | Log ${reply} | 1330 | Log ${reply} |
1327 | 1331 | ||
1328 | - | ||
1329 | Додати документацію до зміни в договорі | 1332 | Додати документацію до зміни в договорі |
1330 | [Arguments] ${username} ${contract_uaid} ${document} | 1333 | [Arguments] ${username} ${contract_uaid} ${document} |
1331 | ${internalid}= openprocurement_client.Отримати internal id по UAid для договору ${username} ${contract_uaid} | 1334 | ${internalid}= openprocurement_client.Отримати internal id по UAid для договору ${username} ${contract_uaid} |
1332 | - ${reply}= Call Method ${USERS.users['${username}'].contracting_client} upload_document ${document} ${internalid} ${USERS.users['${username}'].contract_access_token} | 1335 | + ${reply_doc_create}= Call Method ${USERS.users['${username}'].contracting_client} upload_document ${document} ${internalid} ${USERS.users['${username}'].contract_access_token} |
1336 | + ${data}= Create Dictionary documentOf=change relatedItem=${USERS.users['${username}'].changes[0].data.id} | ||
1337 | + ${data}= Create Dictionary data=${data} | ||
1338 | + ${reply_doc_patch}= Call Method ${USERS.users['${username}'].contracting_client} patch_document ${internalid} ${reply_doc_create.data.id} ${USERS.users['${username}'].contract_access_token} ${data} | ||
1339 | + Log ${reply_doc_create} | ||
1340 | + Log ${reply_doc_patch} |
@@ -51,4 +51,3 @@ Suite Teardown Test Suite Teardown | @@ -51,4 +51,3 @@ Suite Teardown Test Suite Teardown | ||
51 | ... ${USERS.users['${tender_owner}'].broker} | 51 | ... ${USERS.users['${tender_owner}'].broker} |
52 | ${document}= create_fake_doc | 52 | ${document}= create_fake_doc |
53 | Run As ${tender_owner} Додати документацію до зміни в договорі ${CONTRACT_UAID} ${document} | 53 | Run As ${tender_owner} Додати документацію до зміни в договорі ${CONTRACT_UAID} ${document} |
54 | - Set To Dictionary ${USERS.users['${tender_owner}']} change_doc=${document} |
Please
register
or
login
to post a comment