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,9 +386,11 @@ Library openprocurement_client_helper.py
386 386
387 Подати вимогу 387 Подати вимогу
388 [Documentation] Переводить вимогу зі статусу "draft" у статус "claim" 388 [Documentation] Переводить вимогу зі статусу "draft" у статус "claim"
389 - [Arguments] ${username} ${tender_uaid} ${claim} ${confirmation_data} 389 + [Arguments] ${username} ${tender_uaid} ${complaintID} ${confirmation_data}
390 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} 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 ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${confirmation_data} 394 ${reply}= Call Method ${USERS.users['${username}'].client} patch_complaint ${tender} ${confirmation_data}
393 Log ${tender} 395 Log ${tender}
394 Log ${reply} 396 Log ${reply}
@@ -37,7 +37,6 @@ from .initial_data import ( @@ -37,7 +37,6 @@ from .initial_data import (
37 test_lot_question_data, 37 test_lot_question_data,
38 test_question_answer_data, 38 test_question_answer_data,
39 test_question_data, 39 test_question_data,
40 - test_submit_claim_data,  
41 test_supplier_data, 40 test_supplier_data,
42 test_tender_data, 41 test_tender_data,
43 test_tender_data_limited, 42 test_tender_data_limited,
@@ -91,13 +91,13 @@ ${mode} single @@ -91,13 +91,13 @@ ${mode} single
91 ... ${USERS.users['${provider}'].broker} 91 ... ${USERS.users['${provider}'].broker}
92 ... from-0.12 92 ... from-0.12
93 [Teardown] Оновити LAST_MODIFICATION_DATE 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 Викликати для учасника ${provider} 96 Викликати для учасника ${provider}
97 ... Подати вимогу 97 ... Подати вимогу
98 ... ${TENDER['TENDER_UAID']} 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,13 +444,13 @@ ${mode} single
444 Set suite variable ${CLAIM_NUM} 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 Викликати для учасника ${provider} 449 Викликати для учасника ${provider}
450 ... Подати вимогу 450 ... Подати вимогу
451 ... ${TENDER['TENDER_UAID']} 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 ${cancellation_reason}= Set variable prosto tak :) 456 ${cancellation_reason}= Set variable prosto tak :)
@@ -511,13 +511,13 @@ ${mode} single @@ -511,13 +511,13 @@ ${mode} single
511 Set suite variable ${CLAIM_NUM} 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 Викликати для учасника ${provider} 516 Викликати для учасника ${provider}
517 ... Подати вимогу 517 ... Подати вимогу
518 ... ${TENDER['TENDER_UAID']} 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 ${answer_data}= test_claim_answer_data ${USERS.users['${provider}']['claim_data4']['claim_resp']['data']['id']} 523 ${answer_data}= test_claim_answer_data ${USERS.users['${provider}']['claim_data4']['claim_resp']['data']['id']}
@@ -588,13 +588,13 @@ ${mode} single @@ -588,13 +588,13 @@ ${mode} single
588 Set suite variable ${CLAIM_NUM} 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 Викликати для учасника ${provider} 593 Викликати для учасника ${provider}
594 ... Подати вимогу 594 ... Подати вимогу
595 ... ${TENDER['TENDER_UAID']} 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 ${answer_data}= test_claim_answer_data ${USERS.users['${provider}']['claim_data5']['claim_resp']['data']['id']} 600 ${answer_data}= test_claim_answer_data ${USERS.users['${provider}']['claim_data5']['claim_resp']['data']['id']}
Please register or login to post a comment