Commit 3730cfa8498dd741c64d5cf4572341787b30c3be

Authored by mykhaly
Committed by OrysiaDrabych
1 parent 16fab4a0

Update document addition in contract_management

... ... @@ -1322,11 +1322,19 @@ Library openprocurement_client.utils
1322 1322 [Arguments] ${username} ${contract_uaid} ${change_data}
1323 1323 ${internalid}= openprocurement_client.Отримати internal id по UAid для договору ${username} ${contract_uaid}
1324 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 1329 Log ${change_data}
1326 1330 Log ${reply}
1327 1331
1328   -
1329 1332 Додати документацію до зміни в договорі
1330 1333 [Arguments] ${username} ${contract_uaid} ${document}
1331 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 51 ... ${USERS.users['${tender_owner}'].broker}
52 52 ${document}= create_fake_doc
53 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