Commit c142c55d401d5e58b9b403bbd3423dc297e8fad5

Authored by mykhaly
1 parent 22872f99

Update `Подати вимогу` to work with complaintID

Deleted test_submit_claim_data
Dict with data is created in test case, id is inserted into it
in op_client.robot keyword 'Подати вимогу'
Update singleItemTenderComplaints to work with this changes;
Also corrected conFRImation_data -> conFIRmation_data
... ... @@ -386,9 +386,11 @@ Library openprocurement_client_helper.py
386 386
387 387 Подати вимогу
388 388 [Documentation] Переводить вимогу зі статусу "draft" у статус "claim"
389   - [Arguments] ${username} ${tender_uaid} ${claim} ${confirmation_data}
  389 + [Arguments] ${username} ${tender_uaid} ${complaintID} ${confirmation_data}
390 390 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
391   - ${tender}= set_access_key ${tender} ${claim.access.token}
  391 + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].complaint_access_token}
  392 + ${complaint_internal_id}= Отримати internal id по UAid для скарги ${tender} ${complaintID}
  393 + Set To Dictionary ${confirmation_data.data} id=${complaint_internal_id}
392 394 ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${confirmation_data}
393 395 Log ${tender}
394 396 Log ${reply}
... ...
... ... @@ -37,7 +37,6 @@ from .initial_data import (
37 37 test_lot_question_data,
38 38 test_question_answer_data,
39 39 test_question_data,
40   - test_submit_claim_data,
41 40 test_supplier_data,
42 41 test_tender_data,
43 42 test_tender_data_limited,
... ...
... ... @@ -91,13 +91,13 @@ ${mode} single
91 91 ... ${USERS.users['${provider}'].broker}
92 92 ... from-0.12
93 93 [Teardown] Оновити LAST_MODIFICATION_DATE
94   - ${confrimation_data}= test_submit_claim_data ${USERS.users['${provider}']['claim_data']['claim_resp']['data']['id']}
95   - Log ${confrimation_data}
  94 + ${data}= Create Dictionary status=claim
  95 + ${confirmation_data}= Create Dictionary data=${data}
96 96 Викликати для учасника ${provider}
97 97 ... Подати вимогу
98 98 ... ${TENDER['TENDER_UAID']}
99   - ... ${USERS.users['${provider}']['claim_data']['claim_resp']}
100   - ... ${confrimation_data}
  99 + ... ${USERS.users['${provider}']['claim_data']['complaintID']}
  100 + ... ${confirmation_data}
101 101
102 102 ##############################################################################################
103 103 # ВІДОБРАЖЕННЯ ДЛЯ ГЛЯДАЧА
... ... @@ -444,13 +444,13 @@ ${mode} single
444 444 Set suite variable ${CLAIM_NUM}
445 445
446 446
447   - ${confrimation_data}= test_submit_claim_data ${USERS.users['${provider}']['claim_data3']['claim_resp']['data']['id']}
448   - Log ${confrimation_data}
  447 + ${data}= Create Dictionary status=claim
  448 + ${confirmation_data}= Create Dictionary data=${data}
449 449 Викликати для учасника ${provider}
450 450 ... Подати вимогу
451 451 ... ${TENDER['TENDER_UAID']}
452   - ... ${USERS.users['${provider}']['claim_data3']['claim_resp']}
453   - ... ${confrimation_data}
  452 + ... ${USERS.users['${provider}']['claim_data3']['complaintID']}
  453 + ... ${confirmation_data}
454 454
455 455
456 456 ${cancellation_reason}= Set variable prosto tak :)
... ... @@ -511,13 +511,13 @@ ${mode} single
511 511 Set suite variable ${CLAIM_NUM}
512 512
513 513
514   - ${confrimation_data}= test_submit_claim_data ${USERS.users['${provider}']['claim_data4']['claim_resp']['data']['id']}
515   - Log ${confrimation_data}
  514 + ${data}= Create Dictionary status=claim
  515 + ${confirmation_data}= Create Dictionary data=${data}
516 516 Викликати для учасника ${provider}
517 517 ... Подати вимогу
518 518 ... ${TENDER['TENDER_UAID']}
519   - ... ${USERS.users['${provider}']['claim_data4']['claim_resp']}
520   - ... ${confrimation_data}
  519 + ... ${USERS.users['${provider}']['claim_data4']['complaintID']}
  520 + ... ${confirmation_data}
521 521
522 522
523 523 ${answer_data}= test_claim_answer_data ${USERS.users['${provider}']['claim_data4']['claim_resp']['data']['id']}
... ... @@ -588,13 +588,13 @@ ${mode} single
588 588 Set suite variable ${CLAIM_NUM}
589 589
590 590
591   - ${confrimation_data}= test_submit_claim_data ${USERS.users['${provider}']['claim_data5']['claim_resp']['data']['id']}
592   - Log ${confrimation_data}
  591 + ${data}= Create Dictionary status=claim
  592 + ${confirmation_data}= Create Dictionary data=${data}
593 593 Викликати для учасника ${provider}
594 594 ... Подати вимогу
595 595 ... ${TENDER['TENDER_UAID']}
596   - ... ${USERS.users['${provider}']['claim_data5']['claim_resp']}
597   - ... ${confrimation_data}
  596 + ... ${USERS.users['${provider}']['claim_data5']['complaintID']}
  597 + ... ${confirmation_data}
598 598
599 599
600 600 ${answer_data}= test_claim_answer_data ${USERS.users['${provider}']['claim_data5']['claim_resp']['data']['id']}
... ...
Please register or login to post a comment