Commit f1bae404375ce1b7c6f0becfc867f40e5f618948
1 parent
350bec0e
add relatedParty to test_conclusion, test_elimination_report, test_status_data
Showing
2 changed files
with
13 additions
and
8 deletions
| ... | ... | @@ -153,17 +153,17 @@ Resource resource.robot |
| 153 | 153 | |
| 154 | 154 | |
| 155 | 155 | Можливість надати висновок про наявність порушення в тендері |
| 156 | - ${conclusion_data}= test_conclusion ${True} | |
| 156 | + ${conclusion_data}= test_conclusion ${True} ${USERS.users['${dasu_user}'].monitoring_data.data.parties[0].id} | |
| 157 | 157 | Run As ${dasu_user} Надати висновок про наявність/відсутність порушення в тендері ${MONITORING['MONITORING_UAID']} ${conclusion_data} |
| 158 | 158 | |
| 159 | 159 | |
| 160 | 160 | Можливість надати висновок про відсутність порушення в тендері |
| 161 | - ${conclusion_data}= test_conclusion ${False} | |
| 161 | + ${conclusion_data}= test_conclusion ${False} ${USERS.users['${dasu_user}'].monitoring_data.data.parties[0].id} | |
| 162 | 162 | Run As ${dasu_user} Надати висновок про наявність/відсутність порушення в тендері ${MONITORING['MONITORING_UAID']} ${conclusion_data} |
| 163 | 163 | |
| 164 | 164 | |
| 165 | 165 | Можливість змінити статус об’єкта моніторингу на ${status} |
| 166 | - ${conclusion_data}= test_status_data ${status} | |
| 166 | + ${conclusion_data}= test_status_data ${status} ${USERS.users['${dasu_user}'].monitoring_data.data.parties[0].id} | |
| 167 | 167 | Run As ${dasu_user} Змінити статус об’єкта моніторингу ${MONITORING['MONITORING_UAID']} ${conclusion_data} |
| 168 | 168 | |
| 169 | 169 | |
| ... | ... | @@ -189,7 +189,9 @@ Resource resource.robot |
| 189 | 189 | |
| 190 | 190 | |
| 191 | 191 | Можливість оприлюднути рішення про усунення порушення |
| 192 | - ${report_data}= test_elimination_report ${USERS.users['${dasu_user}'].monitoring_data.data.conclusion.violationType[0]} | |
| 192 | + ${report_data}= test_elimination_report | |
| 193 | + ... ${USERS.users['${dasu_user}'].monitoring_data.data.conclusion.violationType[0]} | |
| 194 | + ... ${USERS.users['${dasu_user}'].monitoring_data.data.parties[0].id} | |
| 193 | 195 | Run As ${dasu_user} Оприлюднити рішення про усунення порушення ${MONITORING['MONITORING_UAID']} ${report_data} |
| 194 | 196 | |
| 195 | 197 | ... | ... |
| ... | ... | @@ -630,19 +630,20 @@ def test_dialogue(): |
| 630 | 630 | }) |
| 631 | 631 | |
| 632 | 632 | |
| 633 | -def test_conclusion(violationOccurred=False): | |
| 633 | +def test_conclusion(violationOccurred, relatedParty_id): | |
| 634 | 634 | return munchify( |
| 635 | 635 | { |
| 636 | 636 | "data": { |
| 637 | 637 | "conclusion": { |
| 638 | 638 | "violationOccurred": violationOccurred, |
| 639 | - "violationType": random.choice(violationType) | |
| 639 | + "violationType": random.choice(violationType), | |
| 640 | + "relatedParty": relatedParty_id, | |
| 640 | 641 | } |
| 641 | 642 | } |
| 642 | 643 | }) |
| 643 | 644 | |
| 644 | 645 | |
| 645 | -def test_status_data(status): | |
| 646 | +def test_status_data(status, relatedParty_id=None): | |
| 646 | 647 | data = { |
| 647 | 648 | "data": { |
| 648 | 649 | "status": status |
| ... | ... | @@ -651,16 +652,18 @@ def test_status_data(status): |
| 651 | 652 | if status in ('stopped', 'cancelled'): |
| 652 | 653 | data["data"]["cancellation"] = {} |
| 653 | 654 | data["data"]["cancellation"]["description"] = fake_en.sentence(nb_words=10, variable_nb_words=True) |
| 655 | + data["data"]["cancellation"]["relatedParty"] = relatedParty_id | |
| 654 | 656 | return munchify(data) |
| 655 | 657 | |
| 656 | 658 | |
| 657 | -def test_elimination_report(corruption): | |
| 659 | +def test_elimination_report(corruption, relatedParty_id): | |
| 658 | 660 | return munchify({ |
| 659 | 661 | "data": { |
| 660 | 662 | "eliminationResolution": { |
| 661 | 663 | "resultByType": { |
| 662 | 664 | corruption: random.choice(["eliminated", "not_eliminated", "no_mechanism"]) |
| 663 | 665 | }, |
| 666 | + "relatedParty": relatedParty_id, | |
| 664 | 667 | "result": random.choice(["completely", "partly", "none"]), |
| 665 | 668 | "description": fake_en.sentence(nb_words=10, variable_nb_words=True) |
| 666 | 669 | } | ... | ... |
Please
register
or
login
to post a comment