Commit 685a4473aa0d8fc4b0946b86c5b735d38f528605

Authored by ssk
Committed by GitHub
2 parents 6d35101f f65207f1

Merge pull request #2 from ProzorroUKR/master

prozorro master merge to izi trade master
... ... @@ -96,3 +96,4 @@ zc.recipe.egg = 2.0.3
96 96 cryptography = 2.3.1
97 97 pyOpenSSL = 18.0.0
98 98 python-dateutil = 2.7.5
  99 +Pillow = 6.2.2
\ No newline at end of file
... ...
... ... @@ -14,8 +14,6 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
14 14 ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
15 15 ${ARTIFACT}= load_data_from ${file_path}
16 16 Log ${ARTIFACT.tender_uaid}
17   - Log ${ARTIFACT.tender_id}
18   - Log ${ARTIFACT.tender_owner_access_token}
19 17 ${NUMBER_OF_LOTS}= Convert To Integer ${NUMBER_OF_LOTS}
20 18 ${NUMBER_OF_ITEMS}= Convert To Integer ${NUMBER_OF_ITEMS}
21 19 ${NUMBER_OF_MILESTONES}= Convert To Integer ${NUMBER_OF_MILESTONES}
... ... @@ -44,7 +42,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
44 42 Log ${plan_data}
45 43 ${tender_data}= Підготувати дані для створення тендера ${tender_parameters} ${plan_data}
46 44 ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data}
47   - ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data} ${ARTIFACT.tender_id} ${ARTIFACT.tender_owner_access_token}
  45 + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data} ${ARTIFACT.tender_uaid}
48 46 Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data}
49 47 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
50 48
... ... @@ -105,7 +103,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
105 103 ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data}
106 104 ${adapted_data_mnn}= edit_tender_data_for_mnn ${adapted_data} ${MODE} ${data_version}
107 105 Log ${adapted_data_mnn}
108   - ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_mnn}
  106 + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_mnn} ${ARTIFACT.tender_uaid}
109 107 Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data_mnn}
110 108 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
111 109
... ... @@ -141,7 +139,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
141 139 ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data}
142 140 ${adapted_data_cost}= edit_tender_data_for_cost ${adapted_data} ${MODE} ${data_version}
143 141 Log ${adapted_data_cost}
144   - ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_cost}
  142 + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_cost} ${ARTIFACT.tender_uaid}
145 143 Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data_cost}
146 144 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
147 145
... ... @@ -177,7 +175,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
177 175 ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data}
178 176 ${adapted_data_gmdn}= edit_tender_data_for_gmdn ${adapted_data} ${MODE} ${data_version}
179 177 Log ${adapted_data_gmdn}
180   - ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_gmdn}
  178 + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_gmdn} ${ARTIFACT.tender_uaid}
181 179 Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data_gmdn}
182 180 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
183 181
... ... @@ -213,7 +211,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
213 211 ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data}
214 212 ${adapted_data_plan_tender}= edit_tender_data_for_plan_tender ${adapted_data} ${MODE} ${data_version}
215 213 Log ${adapted_data_plan_tender}
216   - ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_plan_tender}
  214 + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_plan_tender} ${ARTIFACT.tender_uaid}
217 215 Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data_plan_tender}
218 216 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
219 217
... ...
... ... @@ -189,15 +189,15 @@ Library openprocurement_client.utils
189 189
190 190
191 191 Створити тендер
192   - [Arguments] ${username} ${tender_data} ${plan_id} ${plan_access_token}
193   - #${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
194   - #${ARTIFACT}= load_data_from ${file_path}
195   - #Log ${ARTIFACT.tender_owner_access_token}
196   - #Log ${ARTIFACT.tender_id}
  192 + [Arguments] ${username} ${tender_data} ${plan_uaid}
  193 + ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
  194 + ${ARTIFACT}= load_data_from ${file_path}
  195 + Log ${ARTIFACT.tender_owner_access_token}
  196 + Log ${ARTIFACT.tender_id}
197 197 ${tender}= Call Method ${USERS.users['${username}'].tender_create_client} create_tender
198   - ... ${plan_id}
  198 + ... ${ARTIFACT.tender_id}
199 199 ... ${tender_data}
200   - ... access_token=${plan_access_token}
  200 + ... access_token=${ARTIFACT.tender_owner_access_token}
201 201 Log ${tender}
202 202 ${access_token}= Get Variable Value ${tender.access.token}
203 203 ${status}= Set Variable If 'open' in '${MODE}' active.tendering ${EMPTY}
... ...
... ... @@ -261,14 +261,34 @@ PrivatMarket:
261 261 Prom:
262 262 intervals:
263 263 default:
  264 + accelerator: 1440
264 265 enquiry: [4, 4]
265 266 tender: [0, 30]
  267 + abovethresholdeu:
  268 + accelerator: 1440
  269 + tender: [0, 50]
  270 + openeu:
  271 + accelerator: 1440
  272 + tender: [0, 50]
  273 + openua:
  274 + accelerator: 1440
  275 + tender: [0, 65]
  276 + belowThreshold:
  277 + accelerator: 1440
  278 + enquiry: [0, 75]
  279 + tender: [0, 65]
  280 + negotiation:
  281 + accelerator: 360
  282 + enquiry: [0, 20]
  283 + tender: [0, 20]
  284 + openua_defense:
  285 + tender: [0, 110]
266 286 keywords_file: prom
267 287 roles:
268 288 tender_owner: Prom_Owner
269 289 viewer: Prom_Viewer
270   - provider: Prom_Provider1
271   - timeout_on_wait: 10
  290 + provider: Prom_Provider
  291 + timeout_on_wait: 300
272 292 Publicbid:
273 293 intervals:
274 294 default:
... ... @@ -303,6 +323,7 @@ SmartTender:
303 323 enquiry: [0, 10]
304 324 tender: [0, 30]
305 325 belowThreshold:
  326 + accelerator: 1440
306 327 enquiry: [0, 25]
307 328 tender: [0, 20]
308 329 openua:
... ... @@ -648,4 +669,4 @@ avi:
648 669 provider2: avi_Provider3
649 670 tender_owner: avi_Owner
650 671 viewer: avi_Viewer
651   - timeout_on_wait: 120
  672 + timeout_on_wait: 120
\ No newline at end of file
... ...
... ... @@ -310,31 +310,34 @@ users:
310 310 size: [1920, 1080]
311 311 Prom_Owner:
312 312 broker: Prom
313   - homepage: "http://zakupki.dz-test.net/"
314   - default_page: "https://my.zakupki.dz-test.net/cabinet/purchases/state_purchase/list"
315   - login: test@test12.com
316   - password: 12345678
  313 + homepage: "https://zakupki.company"
  314 + default_page: "https://my.zakupki.company/cabinet/purchases/state_purchase/list?mode=all_prozorro"
  315 + state_plan_page: "https://my.zakupki.company/cabinet/purchases/state_plan/list?mode=all_prozorro"
  316 + login: test@test1.com
  317 + password: 123456
317 318 browser: chrome
318 319 position: [0, 0]
319   - size: [1280, 1024]
  320 + size: [1920, 1080]
320 321 Prom_Viewer:
321 322 broker: Prom
322   - homepage: "http://zakupki.dz-test.net/"
323   - default_page: "https://my.zakupki.dz-test.net/cabinet/purchases/state_purchase/list"
324   - login: test@test13.com
325   - password: 12345678
  323 + homepage: "https://zakupki.company"
  324 + default_page: "https://my.zakupki.company/cabinet/purchases/state_purchase/list?mode=all_prozorro"
  325 + state_plan_page: "https://my.zakupki.company/cabinet/purchases/state_plan/list?mode=all_prozorro"
  326 + login: test@test2.com
  327 + password: 123456
326 328 browser: chrome
327 329 position: [640, 0]
328   - size: [1280, 1024]
  330 + size: [1920, 1080]
329 331 Prom_Provider:
330 332 broker: Prom
331   - homepage: "http://zakupki.dz-test.net/"
332   - default_page: "https://my.zakupki.dz-test.net/cabinet/purchases/state_purchase/list"
333   - login: test@test14.com
334   - password: 12345678
  333 + homepage: "https://zakupki.company"
  334 + default_page: "https://my.zakupki.company/cabinet/purchases/state_purchase/search/all"
  335 + state_plan_page: "https://my.zakupki.company/cabinet/purchases/state_plan/list?mode=all_prozorro"
  336 + login: test@test3.com
  337 + password: 123456
335 338 browser: chrome
336 339 position: [640, 0]
337   - size: [1280, 1024]
  340 + size: [1920, 1080]
338 341 Publicbid_Owner:
339 342 broker: Publicbid
340 343 homepage: "http://217.76.194.185:56034/"
... ...
... ... @@ -286,14 +286,14 @@ def test_tender_data(params,
286 286 def test_tender_data_planning(params):
287 287 data = {
288 288 "budget": {
289   - "amountNet": round(random.uniform(3000, 999999999.99), 2),
  289 + "amountNet": round(random.uniform(3000, 999999.99), 2),
290 290 "description": fake.description(),
291 291 "project": {
292 292 "id": str(fake.random_int(min=1, max=999)),
293 293 "name": fake.description(),
294 294 },
295 295 "currency": "UAH",
296   - "amount": round(random.uniform(3000, 99999999999.99), 2),
  296 + "amount": round(random.uniform(3000, 99999999.99), 2),
297 297 "id": str(fake.random_int(min=1, max=99999999999)) + "-" + str(fake.random_int(min=1, max=9)),
298 298 "breakdown": [],
299 299 "period": {
... ... @@ -315,6 +315,7 @@ def test_tender_data_planning(params):
315 315 "startDate": get_now().replace(hour=0, minute=0, second=0, microsecond=0).isoformat()
316 316 }
317 317 },
  318 + "mode": "test",
318 319 "items": [],
319 320 "buyers": []
320 321 }
... ...
... ... @@ -1268,14 +1268,14 @@ Require Failure
1268 1268
1269 1269 Розрахувати ціну для ${contract_number} контракту
1270 1270 ${username}= Отримати користувача з доступом до поля за пріорітетом agreements ${tender_owner} ${viewer}
1271   - ${contract_data}= Create Dictionary data=${USERS.users['${tender_owner}'].tender_data.data.agreements[0].contracts[${contract_number}]}
  1271 + ${contract_data}= Create Dictionary data=${USERS.users['${username}'].tender_data.data.agreements[0].contracts[${contract_number}]}
1272 1272 ${quantity}= Set Variable ${0}
1273 1273 :FOR ${index} IN RANGE ${NUMBER_OF_ITEMS}
1274   - \ ${quantity}= Evaluate ${quantity}+${USERS.users['${tender_owner}'].tender_data.data['items'][${index}]['quantity']}
1275   - ${value}= Evaluate ${USERS.users['${tender_owner}'].tender_data.data.awards[${contract_number}+1].value.amount}/${quantity}
  1274 + \ ${quantity}= Evaluate ${quantity}+${USERS.users['${username}'].tender_data.data['items'][${index}]['quantity']}
  1275 + ${value}= Evaluate ${USERS.users['${username}'].tender_data.data.awards[${contract_number}+1].value.amount}/${quantity}
1276 1276 ${value}= Convert To Integer ${value}
1277 1277 :FOR ${index} IN RANGE ${NUMBER_OF_ITEMS}
1278 1278 \ Set To Dictionary ${contract_data.data.unitPrices[${index}].value} amount=${value}
1279 1279 ${contract_data}= munch_dict arg=${contract_data}
1280 1280 Log ${contract_data}
1281   - [Return] ${contract_data}
  1281 + [Return] ${contract_data}
\ No newline at end of file
... ...
... ... @@ -218,7 +218,7 @@ ${NUMBER_OF_BREAKDOWN} ${2}
218 218 [Tags] ${USERS.users['${viewer}'].broker}: Відображення основних даних плану
219 219 ... viewer
220 220 ... ${USERS.users['${viewer}'].broker}
221   - ... plan_view
  221 + ... plan_view_unit_code
222 222 ... non-critical
223 223 Звірити відображення unit.code усіх предметів плану для користувача ${viewer}
224 224
... ...
1 1 *** Variables ***
2 2 ${RESOURCE} tenders # possible values: tenders, auctions
3   -${API_HOST_URL} https://lb-api-sandbox.prozorro.gov.ua
  3 +${API_HOST_URL} https://lb-api-staging.prozorro.gov.ua
4 4 ${API_VERSION} 2.4
5 5 ${BROKER} Quinta
6   -${DS_HOST_URL} https://upload-docs-sandbox.prozorro.gov.ua
  6 +${DS_HOST_URL} https://upload-docs-staging.prozorro.gov.ua
7 7 ${ROLE} viewer
8   -${EDR_HOST_URL} https://lb-edr-sandbox.prozorro.gov.ua
  8 +${EDR_HOST_URL} https://lb-edr-staging.prozorro.gov.ua
9 9 ${EDR_VERSION} 0
10 10
11 11 ${DASU_RESOURCE} monitorings
12   -${DASU_API_HOST_URL} https://audit-api-sandbox.prozorro.gov.ua
  12 +${DASU_API_HOST_URL} https://audit-api-staging.prozorro.gov.ua
13 13 ${DASU_API_VERSION} 2.4
14 14
15   -${DS_REGEXP} ^https?:\\/\\/public-docs(?:-sandbox)?\\.prozorro\\.gov\\.ua\\/get\\/([0-9A-Fa-f]{32})
16   -${AUCTION_REGEXP} ^https?:\\/\\/auction(?:-sandbox)?\\.prozorro\\.gov\\.ua\\/(esco-)?tenders\\/([0-9A-Fa-f]{32})
  15 +${DS_REGEXP} ^https?:\/\/public-docs(?:-staging)?\.prozorro\.gov\.ua\/get\/([0-9A-Fa-f]{32})
  16 +${AUCTION_REGEXP} ^https?:\/\/auction(?:-staging)?\.prozorro\.gov\.ua\/(esco-)?tenders\/([0-9A-Fa-f]{32})
... ...
... ... @@ -17,7 +17,6 @@
17 17 -i tender_view_minimalStep
18 18 -i tender_view_deliveryDate
19 19 -i tender_view_quantity
20   --i tender_view_coordinates
21 20 -i lot_view
22 21 -i lot_view_value
23 22 -i lot_view_minimalStep
... ...
  1 +-v MODE:open_competitive_dialogue
  2 +
  3 +-v DIALOGUE_TYPE:UA
  4 +
  5 +-v NUMBER_OF_ITEMS:1
  6 +-v NUMBER_OF_LOTS:1
  7 +
  8 +-v TENDER_MEAT:False
  9 +-v ITEM_MEAT:False
  10 +-v LOT_MEAT:False
  11 +
  12 +
  13 +-i create_tender
  14 +-i find_tender
  15 +-i tender_view
  16 +-i tender_view_milestone
  17 +-i tender_view_value
  18 +-i tender_view_minimalStep
  19 +-i tender_view_deliveryDate
  20 +-i tender_view_quantity
  21 +-i tender_view_unit_name
  22 +-i tender_view_unit_code
  23 +-i tender_view_coordinates
  24 +-i lot_view
  25 +-i lot_view_value
  26 +-i lot_view_minimalStep
  27 +
  28 +-i make_bid_by_provider
  29 +-i make_bid_by_provider1
  30 +-i make_bid_by_provider2
  31 +
  32 +-i open_tender_view
  33 +
  34 +#-i pre-qualifications_check_by_edrpou
  35 +
  36 +-i pre-qualification_approve_first_bid
  37 +-i pre-qualification_approve_second_bid
  38 +-i pre-qualification_approve_third_bid
  39 +
  40 +-i pre-qualification_approve_qualifications
  41 +
  42 +-i stage2_pending_status_view
  43 +
  44 +-i wait_bridge_for_work
  45 +
  46 +-i get_second_stage
  47 +
  48 +-i compare_stages
  49 +
  50 +-i save_tender_second_stage
  51 +
  52 +-i activate_second_stage
  53 +
  54 +-i make_bid_by_provider_second_stage
  55 +-i make_bid_by_provider1_second_stage
  56 +
  57 +#-i auction
  58 +
  59 +-i qualification_add_doc_to_first_award
  60 +-i qualification_approve_first_award
  61 +-i qualification_cancel_first_award_qualification
  62 +-i qualification_add_doc_to_second_award
  63 +-i qualification_approve_second_award
  64 +
  65 +-i contract_stand_still
  66 +-i contract_view
  67 +-i modify_contract
  68 +-i add_doc_to_contract
  69 +-i contract_doc_documentOf
  70 +-i contract_sign
  71 +
  72 +-i find_contract
  73 +-i access_contract
  74 +-i submit_change
  75 +-i view_change
  76 +-i upload_change_document
  77 +-i modify_change
  78 +-i apply_change
  79 +-i add_contract_doc
  80 +-i termination_reasons
  81 +-i amount_paid
  82 +-i change_amount_paid
  83 +-i contract_termination
\ No newline at end of file
... ...
  1 +-v MODE:open_competitive_dialogue
  2 +
  3 +-v NUMBER_OF_ITEMS:1
  4 +-v NUMBER_OF_LOTS:1
  5 +
  6 +-v TENDER_MEAT:False
  7 +-v ITEM_MEAT:False
  8 +-v LOT_MEAT:False
  9 +
  10 +-i create_tender
  11 +-i find_tender
  12 +-i tender_view
  13 +-i tender_view_milestone
  14 +-i tender_view_value
  15 +-i tender_view_minimalStep
  16 +-i tender_view_deliveryDate
  17 +-i tender_view_quantity
  18 +-i tender_view_unit_name
  19 +-i lot_view
  20 +-i lot_view_value
  21 +-i lot_view_minimalStep
  22 +
  23 +-i make_bid_by_provider
  24 +-i make_bid_by_provider1
  25 +-i make_bid_by_provider2
  26 +
  27 +-i open_tender_view
  28 +
  29 +#-i pre-qualifications_check_by_edrpou
  30 +
  31 +-i pre-qualification_approve_first_bid
  32 +-i pre-qualification_approve_second_bid
  33 +-i pre-qualification_approve_third_bid
  34 +
  35 +-i pre-qualification_approve_qualifications
  36 +
  37 +-i stage2_pending_status_view
  38 +
  39 +-i wait_bridge_for_work
  40 +
  41 +-i get_second_stage
  42 +
  43 +-i compare_stages
  44 +
  45 +-i save_tender_second_stage
  46 +
  47 +-i activate_second_stage
  48 +
  49 +-i make_bid_by_provider_second_stage
  50 +-i make_bid_by_provider1_second_stage
  51 +
  52 +#-i qualifications_check_by_edrpou
  53 +
  54 +-i pre-qualification_approve_first_bid_second_stage
  55 +-i pre-qualification_approve_second_bid_second_stage
  56 +
  57 +-i pre-qualification_approve_qualifications_second_stage
  58 +
  59 +#-i auction
  60 +
  61 +-i qualification_add_doc_to_first_award
  62 +-i qualification_approve_first_award
  63 +-i qualification_cancel_first_award_qualification
  64 +-i qualification_add_doc_to_second_award
  65 +-i qualification_approve_second_award
  66 +
  67 +-i contract_stand_still
  68 +-i contract_view
  69 +-i modify_contract
  70 +-i add_doc_to_contract
  71 +-i contract_doc_documentOf
  72 +-i contract_sign
  73 +
  74 +-i find_contract
  75 +-i access_contract
  76 +-i submit_change
  77 +-i view_change
  78 +-i upload_change_document
  79 +-i modify_change
  80 +-i apply_change
  81 +-i add_contract_doc
  82 +-i termination_reasons
  83 +-i amount_paid
  84 +-i change_amount_paid
  85 +-i contract_termination
\ No newline at end of file
... ...
  1 +-v MODE:framework_selection
  2 +
  3 +-v NUMBER_OF_ITEMS:1
  4 +-v NUMBER_OF_LOTS:1
  5 +
  6 +-v TENDER_MEAT:False
  7 +-v ITEM_MEAT:False
  8 +-v LOT_MEAT:False
  9 +
  10 +-i create_tender
  11 +-i find_tender
  12 +-i tender_view
  13 +-i tender_view_value
  14 +-i tender_view_minimalStep
  15 +-i tender_view_deliveryDate
  16 +-i tender_view_quantity
  17 +-i tender_view_unit_name
  18 +-i lot_view
  19 +-i lot_view_value
  20 +-i lot_view_minimalStep
  21 +-i modify_item
  22 +-i modify_lot
  23 +
  24 +-i add_tender_doc
  25 +
  26 +-i extend_tendering_period
  27 +
  28 +-i make_bid_by_provider
  29 + -i modify_bid_by_provider
  30 +-i make_bid_by_provider1
  31 + -i modify_bid_by_provider1
  32 +
  33 +-i auction_url
  34 +-i auction
  35 +
  36 +-i qualification_add_doc_to_first_award
  37 +-i qualification_approve_first_award
  38 +-i qualification_cancel_first_award_qualification
  39 +-i qualification_add_doc_to_second_award
  40 +-i qualification_approve_second_award
  41 +
  42 +-i contract_view
  43 +-i modify_contract_amount_net
  44 +-i modify_contract_value
  45 +-i modify_contract
  46 +-i add_doc_to_contract
  47 +-i contract_sign
  48 +
  49 +-i find_contract
  50 +-i access_contract
  51 +-i submit_change
  52 +-i view_change
  53 +-i upload_change_document
  54 +-i modify_change
  55 +-i change_contract_amountNet
  56 +-i change_contract_amount
  57 +-i apply_change
  58 +-i add_contract_doc
  59 +-i termination_reasons
  60 +-i amount_paid
  61 +-i change_amount_paid
  62 +-i contract_termination
\ No newline at end of file
... ...
Please register or login to post a comment