Commit e2a11b31c4c20e3057714638680006c8a1690704
1 parent
6f1af95f
CS-8004
Add test "Create tender with statuses 'draft.unsuccessful, draft.publishing, active.tendering, active.qualification, active.awarded, cancelled,unsuccessful,complete' "
Showing
5 changed files
with
33 additions
and
1 deletions
... | ... | @@ -267,6 +267,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status |
267 | 267 | ${NUMBER_OF_LOTS}= Convert To Integer ${NUMBER_OF_LOTS} |
268 | 268 | ${NUMBER_OF_ITEMS}= Convert To Integer ${NUMBER_OF_ITEMS} |
269 | 269 | ${NUMBER_OF_MILESTONES}= Convert To Integer ${NUMBER_OF_MILESTONES} |
270 | + ${TENDER_WRONG_STATUS} Get Variable Value ${TENDER_WRONG_STATUS} ${False} | |
270 | 271 | ${tender_parameters}= Create Dictionary |
271 | 272 | ... mode=${MODE} |
272 | 273 | ... number_of_items=${NUMBER_OF_ITEMS} |
... | ... | @@ -281,6 +282,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status |
281 | 282 | ... road_index=${${ROAD_INDEX}} |
282 | 283 | ... gmdn_index=${${GMDN_INDEX}} |
283 | 284 | ... plan_tender=${${PLAN_TENDER}} |
285 | + ... tender_wrong_status=${${TENDER_WRONG_STATUS}} | |
284 | 286 | ${DIALOGUE_TYPE}= Get Variable Value ${DIALOGUE_TYPE} |
285 | 287 | ${FUNDING_KIND}= Get Variable Value ${FUNDING_KIND} |
286 | 288 | Run keyword if '${DIALOGUE_TYPE}' != '${None}' Set to dictionary ${tender_parameters} dialogue_type=${DIALOGUE_TYPE} | ... | ... |
... | ... | @@ -1072,6 +1072,8 @@ def test_tender_data_pq(params, submissionMethodDetails, plan_data): |
1072 | 1072 | data['tenderPeriod']['endDate'] = add_minutes_to_date(start_date, 1) |
1073 | 1073 | if params.get('empty_profile'): |
1074 | 1074 | data['profile'] = "" |
1075 | + if params.get('tender_wrong_status'): | |
1076 | + data['status'] = fake.wrong_status() | |
1075 | 1077 | return munchify(data) |
1076 | 1078 | |
1077 | 1079 | ... | ... |
... | ... | @@ -35,6 +35,7 @@ class OP_Provider(BaseProvider): |
35 | 35 | procuringTenderers = _fake_data.procuringTenderers |
36 | 36 | valid_profile_ids = _fake_data.valid_profile_ids |
37 | 37 | invalid_profile_ids = _fake_data.invalid_profile_ids |
38 | + tender_wrong_status = _fake_data.wrong_status_when_create_tender | |
38 | 39 | |
39 | 40 | @classmethod |
40 | 41 | def randomize_nb_elements(self, number=10, le=60, ge=140): |
... | ... | @@ -234,3 +235,8 @@ class OP_Provider(BaseProvider): |
234 | 235 | @classmethod |
235 | 236 | def invalid_profile(self): |
236 | 237 | return self.random_element(self.invalid_profile_ids) |
238 | + | |
239 | + @classmethod | |
240 | + def wrong_status(self): | |
241 | + return self.random_element(self.tender_wrong_status) | |
242 | + | ... | ... |
... | ... | @@ -8161,5 +8161,15 @@ |
8161 | 8161 | "333222-33140000-555666-42000111", |
8162 | 8162 | "333222-33140000-999888-42000111", |
8163 | 8163 | "999999-33140000-222111-42000111" |
8164 | + ], | |
8165 | + "wrong_status_when_create_tender": [ | |
8166 | + "draft.unsuccessful", | |
8167 | + "draft.publishing", | |
8168 | + "active.tendering", | |
8169 | + "active.qualification", | |
8170 | + "active.awarded", | |
8171 | + "cancelled", | |
8172 | + "unsuccessful", | |
8173 | + "complete" | |
8164 | 8174 | ] |
8165 | 8175 | } | ... | ... |
... | ... | @@ -49,16 +49,28 @@ ${PLAN_TENDER} ${True} |
49 | 49 | Should Contain ${value} the profile value doesn't match id pattern |
50 | 50 | |
51 | 51 | |
52 | -Можливість оголосити тендер без 2-ї фази commit-у | |
52 | +Неможливість явно оголосити тендер з доступних статусів за виключенням draft | |
53 | 53 | [Tags] ${USERS.users['${tender_owner}'].broker}: Оголошення тендера |
54 | 54 | ... tender_owner |
55 | 55 | ... ${USERS.users['${tender_owner}'].broker} |
56 | 56 | ... create_tender_without_2_phase_commit level1 |
57 | 57 | ... critical |
58 | 58 | [Teardown] Оновити LAST_MODIFICATION_DATE |
59 | + Set Test Variable ${TENDER_WRONG_STATUS} ${True} | |
59 | 60 | Можливість оголосити тендер без 2-ї фази commit-у |
60 | 61 | |
61 | 62 | |
63 | +Відображення статуса тендера draft | |
64 | + [Tags] ${USERS.users['${viewer}'].broker}: Відображення скасування тендера | |
65 | + ... viewer | |
66 | + ... ${USERS.users['${viewer}'].broker} | |
67 | + ... tender_view_status_draft | |
68 | + [Setup] Дочекатись синхронізації з майданчиком ${tender_owner} | |
69 | + Звірити поле тендера із значенням ${tender_owner} ${TENDER['TENDER_UAID']} | |
70 | + ... draft | |
71 | + ... status | |
72 | + | |
73 | + | |
62 | 74 | Неможливість змінити tenderPeriod:endDate < 2 робочих дні |
63 | 75 | [Tags] ${USERS.users['${tender_owner}'].broker}: Оголошення тендера |
64 | 76 | ... tender_owner | ... | ... |
Please
register
or
login
to post a comment