Commit 0da9856d5eca098653daf2e7efcfe82c9b2fabf4
1 parent
37d1eaa4
add keywords for closeFrameworkAgreementUA
Showing
3 changed files
with
64 additions
and
2 deletions
| ... | ... | @@ -1108,7 +1108,8 @@ Library openprocurement_client.utils |
| 1108 | 1108 | Set To Dictionary ${USERS.users['${username}']} bid_access_token=${reply.access.token} |
| 1109 | 1109 | ${tender}= set_access_key ${tender} ${USERS.users['${username}'].bid_access_token} |
| 1110 | 1110 | ${procurementMethodType}= Get variable value ${USERS.users['${username}'].tender_data.data.procurementMethodType} |
| 1111 | - ${status}= Set Variable If 'EU' in '${procurementMethodType}' or '${procurementMethodType}'=='competitiveDialogueUA' pending active | |
| 1111 | + ${methods}= Create List competitiveDialogueUA competitiveDialogueEU aboveThresholdEU closeFrameworkAgreementUA | |
| 1112 | + ${status}= Set Variable If '${procurementMethodType}' in ${methods} pending active | |
| 1112 | 1113 | Set To Dictionary ${reply['data']} status=${status} |
| 1113 | 1114 | ${reply_active}= Call Method ${USERS.users['${username}'].client} patch_bid ${tender} ${reply} |
| 1114 | 1115 | Set To Dictionary ${USERS.users['${username}']} access_token=${reply['access']['token']} |
| ... | ... | @@ -1467,6 +1468,16 @@ Library openprocurement_client.utils |
| 1467 | 1468 | Log ${reply} |
| 1468 | 1469 | |
| 1469 | 1470 | |
| 1471 | +Затвердити постачальників | |
| 1472 | + [Arguments] ${username} ${tender_uaid} | |
| 1473 | + ${internal_id}= openprocurement_client.Отримати internal id по UAid ${username} ${tender_uaid} | |
| 1474 | + ${tender}= create_data_dict data.id ${internal_id} | |
| 1475 | + ${tender}= set_access_key ${tender} ${USERS.users['${username}'].access_token} | |
| 1476 | + set_to_object ${tender} data.status active.qualification.stand-still | |
| 1477 | + ${reply}= Call Method ${USERS.users['${username}'].client} patch_tender ${tender} | |
| 1478 | + Log ${reply} | |
| 1479 | + | |
| 1480 | + | |
| 1470 | 1481 | Перевести тендер на статус очікування обробки мостом |
| 1471 | 1482 | [Documentation] |
| 1472 | 1483 | ... [Arguments] Username and tender uaid |
| ... | ... | @@ -1511,6 +1522,25 @@ Library openprocurement_client.utils |
| 1511 | 1522 | Log ${reply} |
| 1512 | 1523 | |
| 1513 | 1524 | |
| 1525 | +Встановити ціну за одиницю для контракту | |
| 1526 | + [Arguments] ${username} ${tender_uaid} ${contract_data} | |
| 1527 | + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | |
| 1528 | + Log ${tender} | |
| 1529 | + Log ${contract_data} | |
| 1530 | + ${reply}= Call Method ${USERS.users['${username}'].client} patch_agreement_contract ${tender} ${tender.data.agreements[0].id} ${contract_data} | |
| 1531 | + Log ${reply} | |
| 1532 | + | |
| 1533 | + | |
| 1534 | +Зареєструвати угоду | |
| 1535 | + [Arguments] ${username} ${tender_uaid} ${period} | |
| 1536 | + ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | |
| 1537 | + ${agreement}= Create Dictionary data=${tender.data.agreements[0]} | |
| 1538 | + Set To Dictionary ${agreement.data} status=active | |
| 1539 | + Set To Dictionary ${agreement.data} period=${period} | |
| 1540 | + ${reply}= Call Method ${USERS.users['${username}'].client} patch_agreement ${tender} ${agreement} | |
| 1541 | + Log ${reply} | |
| 1542 | + | |
| 1543 | + | |
| 1514 | 1544 | Встановити дату підписання угоди |
| 1515 | 1545 | [Arguments] ${username} ${tender_uaid} ${contract_index} ${fieldvalue} |
| 1516 | 1546 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} | ... | ... |
| ... | ... | @@ -1046,6 +1046,19 @@ Require Failure |
| 1046 | 1046 | ... active.qualification |
| 1047 | 1047 | |
| 1048 | 1048 | |
| 1049 | +Дочекатись дати закінчення періоду кваліфікації | |
| 1050 | + [Arguments] ${username} ${tender_uaid} | |
| 1051 | + Дочекатись синхронізації з майданчиком ${username} | |
| 1052 | + Wait until keyword succeeds | |
| 1053 | + ... 5 min 15 sec | |
| 1054 | + ... 15 sec | |
| 1055 | + ... Run Keyword And Expect Error * | |
| 1056 | + ... Звірити статус тендера | |
| 1057 | + ... ${username} | |
| 1058 | + ... ${tender_uaid} | |
| 1059 | + ... active.qualification.stand-still | |
| 1060 | + | |
| 1061 | + | |
| 1049 | 1062 | Дочекатись дати закінчення періоду подання скарг |
| 1050 | 1063 | [Arguments] ${username} |
| 1051 | 1064 | Дочекатись дати ${USERS.users['${username}'].tender_data.data.complaintPeriod.endDate} |
| ... | ... | @@ -1053,6 +1066,13 @@ Require Failure |
| 1053 | 1066 | Дочекатись синхронізації з майданчиком ${username} |
| 1054 | 1067 | |
| 1055 | 1068 | |
| 1069 | +Дочекатись можливості зареєструвати угоди | |
| 1070 | + [Arguments] ${username} | |
| 1071 | + Дочекатись дати ${USERS.users['${tender_owner}'].tender_data.data.contractPeriod.clarificationsUntil} | |
| 1072 | + Оновити LAST_MODIFICATION_DATE | |
| 1073 | + Дочекатись синхронізації з майданчиком ${username} | |
| 1074 | + | |
| 1075 | + | |
| 1056 | 1076 | Дочекатись зміни статусу вимоги |
| 1057 | 1077 | [Arguments] ${username} ${status} ${complaintID} ${award_index}=${None} |
| 1058 | 1078 | Дочекатись синхронізації з майданчиком ${username} |
| ... | ... | @@ -1095,3 +1115,14 @@ Require Failure |
| 1095 | 1115 | ${len_of_object}= Run Keyword If '${status}' == 'PASS' Get Length ${USERS.users['${role}'].tender_data.data.${object}} |
| 1096 | 1116 | ${index}= Run Keyword If '${status}' == 'PASS' subtraction ${len_of_object} 1 |
| 1097 | 1117 | [Return] ${index} |
| 1118 | + | |
| 1119 | + | |
| 1120 | +Розрахувати ціну для ${index} контракту | |
| 1121 | + ${contract_data}= Create Dictionary data=${USERS.users['${tender_owner}'].tender_data.data.agreements[0].contracts[${index}]} | |
| 1122 | + ${quantity}= Convert To Integer ${USERS.users['${tender_owner}'].tender_data.data['items'][0]['quantity']} | |
| 1123 | + ${value}= Evaluate ${USERS.users['${tender_owner}'].tender_data.data.awards[${index}+1].value.amount}/${quantity} | |
| 1124 | + ${value}= Convert To Integer ${value} | |
| 1125 | + Set To Dictionary ${contract_data.data.unitPrices[0].value} amount=${value} | |
| 1126 | + ${contract_data}= munch_dict arg=${contract_data} | |
| 1127 | + Log ${contract_data} | |
| 1128 | + [Return] ${contract_data} | |
| \ No newline at end of file | ... | ... |
| ... | ... | @@ -599,7 +599,8 @@ def generate_test_bid_data(tender_data): |
| 599 | 599 | 'aboveThresholdUA.defense', |
| 600 | 600 | 'aboveThresholdEU', |
| 601 | 601 | 'competitiveDialogueUA', |
| 602 | - 'competitiveDialogueEU' | |
| 602 | + 'competitiveDialogueEU', | |
| 603 | + 'closeFrameworkAgreementUA' | |
| 603 | 604 | ): |
| 604 | 605 | bid = test_bid_competitive_data() |
| 605 | 606 | bid.data.selfEligible = True | ... | ... |
Please
register
or
login
to post a comment