Showing
2 changed files
with
38 additions
and
20 deletions
| ... | ... | @@ -422,11 +422,12 @@ Resource resource.robot |
| 422 | 422 | |
| 423 | 423 | Можливість створити чернетку вимоги про виправлення умов ${lot_index} лоту |
| 424 | 424 | ${claim}= Підготувати дані для подання вимоги |
| 425 | + ${lot_id}= get_id_from_object ${USERS.users['${provider}'].tender_data.data.lots[${lot_index}]} | |
| 425 | 426 | ${complaintID}= Run As ${provider} |
| 426 | 427 | ... Створити чернетку вимоги про виправлення умов лоту |
| 427 | 428 | ... ${TENDER['TENDER_UAID']} |
| 428 | 429 | ... ${claim} |
| 429 | - ... ${lot_index} | |
| 430 | + ... ${lot_id} | |
| 430 | 431 | ${claim_data}= Create Dictionary claim=${claim} complaintID=${complaintID} |
| 431 | 432 | ${claim_data}= munch_dict arg=${claim_data} |
| 432 | 433 | Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} |
| ... | ... | @@ -459,12 +460,13 @@ Resource resource.robot |
| 459 | 460 | |
| 460 | 461 | Можливість створити вимогу про виправлення умов ${lot_index} лоту із документацією |
| 461 | 462 | ${claim}= Підготувати дані для подання вимоги |
| 463 | + ${lot_id}= get_id_from_object ${USERS.users['${provider}'].tender_data.data.lots[${lot_index}]} | |
| 462 | 464 | ${document}= create_fake_doc |
| 463 | 465 | ${complaintID}= Run As ${provider} |
| 464 | 466 | ... Створити вимогу про виправлення умов лоту |
| 465 | 467 | ... ${TENDER['TENDER_UAID']} |
| 466 | 468 | ... ${claim} |
| 467 | - ... ${lot_index} | |
| 469 | + ... ${lot_id} | |
| 468 | 470 | ... ${document} |
| 469 | 471 | ${claim_data}= Create Dictionary claim=${claim} complaintID=${complaintID} document=${document} |
| 470 | 472 | ${claim_data}= munch_dict arg=${claim_data} | ... | ... |
| ... | ... | @@ -333,20 +333,6 @@ Library openprocurement_client_helper.py |
| 333 | 333 | Створити чернетку вимоги про виправлення умов закупівлі |
| 334 | 334 | [Documentation] Створює вимогу у статусі "draft" |
| 335 | 335 | [Arguments] ${username} ${tender_uaid} ${claim} |
| 336 | - ${complaintID}= openprocurement_client.Створити чернетку вимоги про виправлення умов лоту | |
| 337 | - ... ${username} | |
| 338 | - ... ${tender_uaid} | |
| 339 | - ... ${claim} | |
| 340 | - ... ${None} #lot_index | |
| 341 | - [return] ${complaintID} | |
| 342 | - | |
| 343 | - | |
| 344 | -Створити чернетку вимоги про виправлення умов лоту | |
| 345 | - [Documentation] Створює вимогу у статусі "draft" | |
| 346 | - [Arguments] ${username} ${tender_uaid} ${claim} ${lot_index} | |
| 347 | - Run keyword if ${lot_index} != ${None} | |
| 348 | - ... Set to dictionary ${claim.data} | |
| 349 | - ... relatedLot=${USERS.users['${tender_owner}'].initial_data.data.lots[${lot_index}].id} | |
| 350 | 336 | Log ${claim} |
| 351 | 337 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору |
| 352 | 338 | ... ${username} |
| ... | ... | @@ -361,6 +347,21 @@ Library openprocurement_client_helper.py |
| 361 | 347 | [return] ${reply.data.complaintID} |
| 362 | 348 | |
| 363 | 349 | |
| 350 | +Створити чернетку вимоги про виправлення умов лоту | |
| 351 | + [Documentation] Створює вимогу у статусі "draft" | |
| 352 | + [Arguments] ${username} ${tender_uaid} ${claim} ${lot_id} | |
| 353 | + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору | |
| 354 | + ... ${username} | |
| 355 | + ... ${tender_uaid} | |
| 356 | + ${lot_index}= get_object_index_by_id ${tender.data.lots} ${lot_id} | |
| 357 | + Set to dictionary ${claim.data} relatedLot=${tender.data.lots[${lot_index}].id} | |
| 358 | + ${complaintID}= openprocurement_client.Створити чернетку вимоги про виправлення умов закупівлі | |
| 359 | + ... ${username} | |
| 360 | + ... ${tender_uaid} | |
| 361 | + ... ${claim} | |
| 362 | + [return] ${complaintID} | |
| 363 | + | |
| 364 | + | |
| 364 | 365 | Створити чернетку вимоги про виправлення визначення переможця |
| 365 | 366 | [Documentation] Створює вимогу у статусі "draft" |
| 366 | 367 | [Arguments] ${username} ${tender_uaid} ${claim} ${award_index} |
| ... | ... | @@ -385,12 +386,27 @@ Library openprocurement_client_helper.py |
| 385 | 386 | [Documentation] Створює вимогу у статусі "claim" |
| 386 | 387 | ... Можна створити вимогу як з документацією, так і без неї |
| 387 | 388 | [Arguments] ${username} ${tender_uaid} ${claim} ${document}=${None} |
| 388 | - ${complaintID}= openprocurement_client.Створити вимогу про виправлення умов лоту | |
| 389 | + | |
| 390 | + ${complaintID}= Створити чернетку вимоги про виправлення умов закупівлі | |
| 389 | 391 | ... ${username} |
| 390 | 392 | ... ${tender_uaid} |
| 391 | 393 | ... ${claim} |
| 392 | - ... ${None} #lot_index | |
| 394 | + | |
| 395 | + ${status}= Run keyword and return status Should not be equal ${document} ${None} | |
| 396 | + Log ${status} | |
| 397 | + Run keyword if ${status} == ${True} Завантажити документацію до вимоги | |
| 398 | + ... ${username} | |
| 399 | + ... ${tender_uaid} | |
| 400 | + ... ${complaintID} | |
| 393 | 401 | ... ${document} |
| 402 | + | |
| 403 | + ${data}= Create Dictionary status=claim | |
| 404 | + ${confirmation_data}= Create Dictionary data=${data} | |
| 405 | + Подати вимогу | |
| 406 | + ... ${username} | |
| 407 | + ... ${tender_uaid} | |
| 408 | + ... ${complaintID} | |
| 409 | + ... ${confirmation_data} | |
| 394 | 410 | [return] ${complaintID} |
| 395 | 411 | |
| 396 | 412 | |
| ... | ... | @@ -398,12 +414,12 @@ Library openprocurement_client_helper.py |
| 398 | 414 | [Documentation] Створює вимогу у статусі "claim" |
| 399 | 415 | ... Можна створити вимогу як з документацією, так і без неї |
| 400 | 416 | ... Якщо lot_index == None, то створюється вимога про виправлення умов тендера. |
| 401 | - [Arguments] ${username} ${tender_uaid} ${claim} ${lot_index} ${document}=${None} | |
| 417 | + [Arguments] ${username} ${tender_uaid} ${claim} ${lot_id} ${document}=${None} | |
| 402 | 418 | ${complaintID}= Створити чернетку вимоги про виправлення умов лоту |
| 403 | 419 | ... ${username} |
| 404 | 420 | ... ${tender_uaid} |
| 405 | 421 | ... ${claim} |
| 406 | - ... ${lot_index} | |
| 422 | + ... ${lot_id} | |
| 407 | 423 | |
| 408 | 424 | ${status}= Run keyword and return status Should not be equal ${document} ${None} |
| 409 | 425 | Log ${status} | ... | ... |
Please
register
or
login
to post a comment