Commit 76e6b2b78d52cbe2c536c741113fb02ba3ba68bd
1 parent
2e06452b
Update complaint creating keywords
In order to work with new arguments returned from `create_fake_doc()`.
Also add `${doc_id}`, `${doc_name}` and `${doc_content}` to `${claim_data}`
and `Remove File` it the end of keywords body.
Showing
1 changed file
with
15 additions
and
9 deletions
| ... | ... | @@ -445,44 +445,50 @@ Resource resource.robot |
| 445 | 445 | |
| 446 | 446 | Можливість створити вимогу про виправлення умов закупівлі із документацією |
| 447 | 447 | ${claim}= Підготувати дані для подання вимоги |
| 448 | - ${document}= create_fake_doc | |
| 448 | + ${file_path} ${file_name} ${file_content}= create_fake_doc | |
| 449 | 449 | ${complaintID}= Run As ${provider} |
| 450 | 450 | ... Створити вимогу про виправлення умов закупівлі |
| 451 | 451 | ... ${TENDER['TENDER_UAID']} |
| 452 | 452 | ... ${claim} |
| 453 | - ... ${document} | |
| 454 | - ${claim_data}= Create Dictionary claim=${claim} complaintID=${complaintID} document=${document} | |
| 453 | + ... ${file_path} | |
| 454 | + ${doc_id}= get_id_from_doc_name ${file_name} | |
| 455 | + ${claim_data}= Create Dictionary claim=${claim} complaintID=${complaintID} doc_name=${file_name} doc_id=${doc_id} doc_content=${file_content} | |
| 455 | 456 | ${claim_data}= munch_dict arg=${claim_data} |
| 456 | 457 | Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} |
| 458 | + Remove File ${file_path} | |
| 457 | 459 | |
| 458 | 460 | |
| 459 | 461 | Можливість створити вимогу про виправлення умов ${lot_index} лоту із документацією |
| 460 | 462 | ${claim}= Підготувати дані для подання вимоги |
| 461 | 463 | ${lot_id}= get_id_from_object ${USERS.users['${provider}'].tender_data.data.lots[${lot_index}]} |
| 462 | - ${document}= create_fake_doc | |
| 464 | + ${file_path} ${file_name} ${file_content}= create_fake_doc | |
| 463 | 465 | ${complaintID}= Run As ${provider} |
| 464 | 466 | ... Створити вимогу про виправлення умов лоту |
| 465 | 467 | ... ${TENDER['TENDER_UAID']} |
| 466 | 468 | ... ${claim} |
| 467 | 469 | ... ${lot_id} |
| 468 | - ... ${document} | |
| 469 | - ${claim_data}= Create Dictionary claim=${claim} complaintID=${complaintID} document=${document} | |
| 470 | + ... ${file_path} | |
| 471 | + ${doc_id}= get_id_from_doc_name ${file_name} | |
| 472 | + ${claim_data}= Create Dictionary claim=${claim} complaintID=${complaintID} doc_name=${file_name} doc_id=${doc_id} doc_content=${file_content} | |
| 470 | 473 | ${claim_data}= munch_dict arg=${claim_data} |
| 471 | 474 | Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} |
| 475 | + Remove File ${file_path} | |
| 472 | 476 | |
| 473 | 477 | |
| 474 | 478 | Можливість створити вимогу про виправлення визначення ${award_index} переможця із документацією |
| 475 | 479 | ${claim}= Підготувати дані для подання вимоги |
| 476 | - ${document}= create_fake_doc | |
| 480 | + ${file_path} ${file_name} ${file_content}= create_fake_doc | |
| 477 | 481 | ${complaintID}= Run As ${provider} |
| 478 | 482 | ... Створити вимогу про виправлення визначення переможця |
| 479 | 483 | ... ${TENDER['TENDER_UAID']} |
| 480 | 484 | ... ${claim} |
| 481 | 485 | ... ${award_index} |
| 482 | - ... ${document} | |
| 483 | - ${claim_data}= Create Dictionary claim=${claim} complaintID=${complaintID} document=${document} | |
| 486 | + ... ${file_path} | |
| 487 | + ${doc_id}= get_id_from_doc_name ${file_name} | |
| 488 | + ${claim_data}= Create Dictionary claim=${claim} complaintID=${complaintID} doc_name=${file_name} doc_id=${doc_id} doc_content=${file_content} | |
| 484 | 489 | ${claim_data}= munch_dict arg=${claim_data} |
| 485 | 490 | Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} |
| 491 | + Remove File ${file_path} | |
| 486 | 492 | |
| 487 | 493 | |
| 488 | 494 | Можливість скасувати вимогу про виправлення умов закупівлі | ... | ... |
Please
register
or
login
to post a comment