-
Notifications
You must be signed in to change notification settings - Fork 81
Landlease procedure #1018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: eauction_cdb2
Are you sure you want to change the base?
Landlease procedure #1018
Changes from all commits
2313138
c53117b
4ca6e3f
3947530
2065713
ad993bb
1e88b5c
ad21b61
64d3f4f
2971d75
355be7a
2671daa
d8712e6
a07684f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,14 +92,14 @@ Library openprocurement_client.utils | |
| [return] ${reply} | ||
|
|
||
|
|
||
| Завантажити протокол аукціону в авард | ||
| [Arguments] ${username} ${tender_uaid} ${filepath} ${award_index} | ||
| Завантажити протокол в авард | ||
| [Arguments] ${username} ${tender_uaid} ${filepath} ${award_index} ${documentType} | ||
| ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | ||
| ${award_id}= Get Variable Value ${tender.data.awards[${award_index}].id} | ||
| ${tender}= set_access_key ${tender} ${USERS.users['${username}'].access_token} | ||
| ${response}= Call Method ${USERS.users['${username}'].client} upload_award_document ${filepath} ${tender} ${award_id} documents | ||
| Keep In Dictionary ${response['data']} id | ||
| Set To Dictionary ${response['data']} documentType=auctionProtocol | ||
| Set To Dictionary ${response['data']} documentType=${documentType} | ||
| ${reply}= Call Method ${USERS.users['${username}'].client} patch_award_document ${tender} ${response} ${award_id} ${response['data'].id} | ||
| Log ${reply} | ||
| [return] ${reply} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ключове слово ідентичне до "Завантажити протокол аукціону в авард" відрізняється лише documentType, можливо краще винести окреме ключове слово Завантажити протокол в авард, в аргументах якого передавати documentType і не дублювати код
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Виніс в окреме ключове слово з можливістю вказати тип документа в аргументі |
||
|
|
@@ -190,6 +190,13 @@ Library openprocurement_client.utils | |
| ${tender}= Call Method ${USERS.users['${username}'].client} create_tender ${tender_data} | ||
| Log object data ${tender} created_tender | ||
| ${access_token}= Get Variable Value ${tender.access.token} | ||
| Run Keyword If '${mode}' == 'geb' | ||
| ... Run Keywords | ||
| ... Set To Dictionary ${tender['data']} status=active.rectification | ||
| ... AND | ||
| ... Call Method ${USERS.users['${username}'].client} patch_tender ${tender} | ||
| ... AND | ||
| ... Log ${tender} | ||
| Set To Dictionary ${USERS.users['${username}']} access_token=${access_token} | ||
| Set To Dictionary ${USERS.users['${username}']} tender_data=${tender} | ||
| Log ${\n}${API_HOST_URL}/api/${API_VERSION}/auctions/${tender.data.id}${\n} WARN | ||
|
|
@@ -265,6 +272,16 @@ Library openprocurement_client.utils | |
| ############################################################################## | ||
| # Item operations | ||
| ############################################################################## | ||
| Внести зміни в предмет | ||
| [Arguments] ${username} ${item_id} ${tender_uaid} ${fieldname} ${fieldvalue} | ||
| ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | ||
| ${item_index}= get_object_index_by_id ${tender.data['items']} ${item_id} | ||
| ${item}= Create Dictionary data=${tender['data']['items'][${item_index}]} | ||
| Set_To_Object ${item.data} ${fieldname} ${fieldvalue} | ||
| Log ${item} | ||
| ${reply}= Call Method ${USERS.users['${username}'].client} patch_item ${tender} ${item} | ||
| Log ${reply} | ||
|
|
||
|
|
||
| Додати предмет закупівлі | ||
| [Arguments] ${username} ${tender_uaid} ${item} | ||
|
|
@@ -344,11 +361,13 @@ Library openprocurement_client.utils | |
| [Arguments] ${username} ${tender_uaid} ${bid} | ||
| ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | ||
| ${reply}= Call Method ${USERS.users['${username}'].client} create_bid ${tender} ${bid} | ||
| Log ${reply} | ||
| ${reply_active}= Call Method ${USERS.users['${username}'].client} patch_bid ${tender} ${reply} | ||
| Run Keyword IF '${tender.data.procurementMethodType}' == 'landLease' | ||
| ... Run Keywords | ||
| ... Set To Dictionary ${reply.data} status=pending | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. для цієї умови треба додати patch_bid, в інших випадках patch_bid безтолковий |
||
| ... AND | ||
| ... Call Method ${USERS.users['${username}'].client} patch_bid ${tender} ${reply} | ||
| Set To Dictionary ${USERS.users['${username}']} access_token=${reply['access']['token']} | ||
| Set To Dictionary ${USERS.users['${username}'].bidresponses['bid'].data} id=${reply['data']['id']} | ||
| Log ${reply_active} | ||
| Set To Dictionary ${USERS.users['${username}']} bid_id=${reply['data']['id']} | ||
| Log ${reply} | ||
| [return] ${reply} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Тут логуємо і повертаємо reply ще в статусі draft, хоча для landlease ще був патч і статус pending
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. В reply буде записано і залоговано статус pending, оскільки вище виконується Set To Dictionary ${reply.data} status=pending
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. думаю Орися мала на увазі, що reply логується для того, щоб зберегти відповідь з цбд, а не з того, що ти записав в словник |
||
|
|
@@ -365,6 +384,18 @@ Library openprocurement_client.utils | |
| [return] ${reply} | ||
|
|
||
|
|
||
| Кваліфікувати пропозицію | ||
| [Arguments] ${username} ${tender_uaid} ${bidNumber} | ||
| ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | ||
| ${bid}= openprocurement_client.Отримати пропозицію ${username} ${tender_uaid} | ||
| ${bid_data}= test_bid_qualified ${bidNumber} ${bid.data.id} | ||
| Log ${bid_data} | ||
| ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bidresponses['resp'].access.token} | ||
| ${reply}= Call Method ${USERS.users['${username}'].client} patch_bid ${tender} ${bid_data} | ||
| Log ${reply} | ||
| [return] ${reply} | ||
|
|
||
|
|
||
| Скасувати цінову пропозицію | ||
| [Arguments] ${username} ${tender_uaid} | ||
| ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | ||
|
|
@@ -649,3 +680,27 @@ Library openprocurement_client.utils | |
| ${reply}= Call Method ${USERS.users['${username}'].client} patch_contract_document ${tender} ${response} ${contract_id} ${response['data'].id} | ||
| Log ${reply} | ||
| [return] ${reply} | ||
|
|
||
|
|
||
| ############################################################################## | ||
| # CONTRACT SIGNING | ||
| ############################################################################## | ||
|
|
||
| Встановити дату підписання угоди | ||
| [Arguments] ${username} ${tender_uaid} ${contract_index} ${fieldvalue} | ||
| ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | ||
| ${contract}= Create Dictionary data=${tender.data.contracts[${contract_index}]} | ||
| Set To Dictionary ${contract.data} dateSigned=${fieldvalue} | ||
| ${reply}= Call Method ${USERS.users['${username}'].client} patch_contract ${tender} ${contract} | ||
| Log ${reply} | ||
|
|
||
|
|
||
| Редагувати угоду | ||
| [Arguments] ${username} ${tender_uaid} ${contract_index} ${fieldname} ${fieldvalue} | ||
| ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | ||
| ${contract}= Create Dictionary data=${tender.data.contracts[${contract_index}]} | ||
| Set_to_object ${contract.data} ${fieldname} ${fieldvalue} | ||
| ${reply}= Call Method ${USERS.users['${username}'].client} patch_contract | ||
| ... ${tender} | ||
| ... ${contract} | ||
| Log ${reply} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| *** Settings *** | ||
| Resource keywords.robot | ||
| Resource resource.robot | ||
| Resource base_keywords.robot | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. потрібно забрати keywords.robot, якщо імпортуєш base_keywords.robot, keywords.robot вже імпортується в base_keywords.robot |
||
| Suite Setup Test Suite Setup | ||
| Suite Teardown Test Suite Teardown | ||
|
|
||
|
|
@@ -33,6 +32,46 @@ Suite Teardown Test Suite Teardown | |
| Remove File ${file_path} | ||
|
|
||
|
|
||
| Можливість встановити дату підписання угоди | ||
| [Tags] ${USERS.users['${tender_owner}'].broker}: Редагування угоди | ||
| ... tender_owner | ||
| ... ${USERS.users['${tender_owner}'].broker} | ||
| ... dateSigned | ||
| [Setup] Дочекатись синхронізації з майданчиком ${tender_owner} | ||
| [Teardown] Оновити LAST_MODIFICATION_DATE | ||
| ${dateSigned}= create_fake_date | ||
| Set to dictionary ${USERS.users['${tender_owner}']} dateSigned=${dateSigned} | ||
| Run As ${tender_owner} Встановити дату підписання угоди ${TENDER['TENDER_UAID']} -1 ${dateSigned} | ||
|
|
||
|
|
||
| Відображення дати підписання угоди | ||
| [Tags] ${USERS.users['${viewer}'].broker}: Відображення основних даних угоди | ||
| ... viewer | ||
| ... ${USERS.users['${viewer}'].broker} | ||
| ... dateSigned | ||
| [Setup] Дочекатись синхронізації з майданчиком ${viewer} | ||
| Звірити відображення поля contracts[-1].dateSigned тендера із ${USERS.users['${tender_owner}'].dateSigned} для користувача ${viewer} | ||
|
|
||
|
|
||
| Можливість редагувати вартість угоди | ||
| [Tags] ${USERS.users['${tender_owner}'].broker}: Редагування угоди | ||
| ... tender_owner | ||
| ... ${USERS.users['${tender_owner}'].broker} | ||
| ... modify_contract_value | ||
| ... critical | ||
| [Setup] Дочекатись синхронізації з майданчиком ${tender_owner} | ||
| [Teardown] Оновити LAST_MODIFICATION_DATE | ||
| Можливість редагувати вартість угоди | ||
|
|
||
| Відображення зміненої вартості угоди | ||
| [Tags] ${USERS.users['${viewer}'].broker}: Відображення основних даних угоди | ||
| ... viewer | ||
| ... ${USERS.users['${viewer}'].broker} | ||
| ... modify_contract_value | ||
| [Setup] Дочекатись синхронізації з майданчиком ${viewer} | ||
| Звірити відображення поля contracts[-1].value.amount тендера із ${USERS.users['${tender_owner}'].amount} для користувача ${viewer} | ||
|
|
||
|
|
||
| Можливість укласти угоду для лоту | ||
| [Tags] ${USERS.users['${tender_owner}'].broker}: Процес укладання угоди | ||
| ... tender_owner | ||
|
|
@@ -57,4 +96,4 @@ Suite Teardown Test Suite Teardown | |
| ... viewer | ||
| ... ${USERS.users['${viewer}'].broker} | ||
| ... tender_view | ||
| Звірити статус завершення тендера ${viewer} ${TENDER['TENDER_UAID']} | ||
| Звірити статус завершення тендера ${viewer} ${TENDER['TENDER_UAID']} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
мабуть варто додати сценарій, де б використовувався цей тест кейс