Commit f06b513cab56a3352771f0ca65b9c4cfe6b65b6c
1 parent
acb021fa
Fix CS-7914 Possible create tender if "profile" parameter is empty
Showing
4 changed files
with
21 additions
and
1 deletions
... | ... | @@ -225,6 +225,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status |
225 | 225 | ${NUMBER_OF_ITEMS}= Convert To Integer ${NUMBER_OF_ITEMS} |
226 | 226 | ${NUMBER_OF_MILESTONES}= Convert To Integer ${NUMBER_OF_MILESTONES} |
227 | 227 | ${WRONG_TENDER_DATE} Get Variable Value ${WRONG_TENDER_DATE} ${False} |
228 | + ${EMPTY_PROFILE} Get Variable Value ${EMPTY_PROFILE} ${False} | |
228 | 229 | ${tender_parameters}= Create Dictionary |
229 | 230 | ... mode=${MODE} |
230 | 231 | ... number_of_items=${NUMBER_OF_ITEMS} |
... | ... | @@ -240,6 +241,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status |
240 | 241 | ... gmdn_index=${${GMDN_INDEX}} |
241 | 242 | ... plan_tender=${${PLAN_TENDER}} |
242 | 243 | ... wrong_tender_date=${${WRONG_TENDER_DATE}} |
244 | + ... empty_profile=${${EMPTY_PROFILE}} | |
243 | 245 | ${DIALOGUE_TYPE}= Get Variable Value ${DIALOGUE_TYPE} |
244 | 246 | ${FUNDING_KIND}= Get Variable Value ${FUNDING_KIND} |
245 | 247 | Run keyword if '${DIALOGUE_TYPE}' != '${None}' Set to dictionary ${tender_parameters} dialogue_type=${DIALOGUE_TYPE} | ... | ... |
... | ... | @@ -1069,6 +1069,8 @@ def test_tender_data_pq(params, submissionMethodDetails, plan_data): |
1069 | 1069 | start_date = data['tenderPeriod']['startDate'] |
1070 | 1070 | from op_robot_tests.tests_files.service_keywords import add_minutes_to_date |
1071 | 1071 | data['tenderPeriod']['endDate'] = add_minutes_to_date(start_date, 1) |
1072 | + if params.get('empty_profile'): | |
1073 | + data['profile'] = "" | |
1072 | 1074 | return munchify(data) |
1073 | 1075 | |
1074 | 1076 | ... | ... |
... | ... | @@ -31,7 +31,22 @@ ${PLAN_TENDER} ${True} |
31 | 31 | ... critical |
32 | 32 | [Teardown] Оновити LAST_MODIFICATION_DATE |
33 | 33 | Set Test Variable ${WRONG_TENDER_DATE} ${True} |
34 | - Run Keyword And Expect Error * Можливість оголосити тендер для негативних сценаріїв | |
34 | + ${value}= Run Keyword And Expect Error * Можливість оголосити тендер з недоліками в параметрах | |
35 | + ${value}= Convert To Lowercase ${value} | |
36 | + Should Contain ${value} the tenderperiod cannot end earlier than 2 business days after the start | |
37 | + | |
38 | + | |
39 | +Неможливість оголосити тендер з порожнім profile параметром | |
40 | + [Tags] ${USERS.users['${tender_owner}'].broker}: Оголошення тендера | |
41 | + ... tender_owner | |
42 | + ... ${USERS.users['${tender_owner}'].broker} | |
43 | + ... create_tender_empty_profile level1 | |
44 | + ... critical | |
45 | + [Teardown] Оновити LAST_MODIFICATION_DATE | |
46 | + Set Test Variable ${EMPTY_PROFILE} ${True} | |
47 | + ${value}= Run Keyword And Expect Error * Можливість оголосити тендер з недоліками в параметрах | |
48 | + ${value}= Convert To Lowercase ${value} | |
49 | + Should Contain ${value} the profile value doesn't match id pattern | |
35 | 50 | |
36 | 51 | |
37 | 52 | Можливість оголосити тендер | ... | ... |
Please
register
or
login
to post a comment