Commit 9cf795e7e3a9a9580db516ac6c6696e822b3c21d
Committed by
GitHub
Merge pull request #245 from ProzorroUKR/amcu
Amcu
Showing
10 changed files
with
227 additions
and
234 deletions
| @@ -1111,53 +1111,19 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | @@ -1111,53 +1111,19 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | ||
| 1111 | Звірити поле тендера із значенням ${username} ${TENDER['TENDER_UAID']} ${USERS.users['${provider}'].lots_${lot_index}_question_data.question.data.${field}} ${field} ${USERS.users['${provider}'].lots_${lot_index}_question_data.question_id} | 1111 | Звірити поле тендера із значенням ${username} ${TENDER['TENDER_UAID']} ${USERS.users['${provider}'].lots_${lot_index}_question_data.question.data.${field}} ${field} ${USERS.users['${provider}'].lots_${lot_index}_question_data.question_id} |
| 1112 | 1112 | ||
| 1113 | ############################################################################################## | 1113 | ############################################################################################## |
| 1114 | -# COMPLAINTS/CLAIMS | 1114 | +# COMPLAINTS |
| 1115 | ############################################################################################## | 1115 | ############################################################################################## |
| 1116 | 1116 | ||
| 1117 | -Можливість створити чернетку вимоги | ||
| 1118 | - ${claim}= Підготувати дані для подання вимоги | ||
| 1119 | - ${claimID}= Run As ${provider} | ||
| 1120 | - ... Створити чернетку вимоги про виправлення умов закупівлі | ||
| 1121 | - ... ${TENDER['TENDER_UAID']} | ||
| 1122 | - ... ${claim} | ||
| 1123 | - ${claim_data}= Create Dictionary | ||
| 1124 | - ... claim=${claim} | ||
| 1125 | - ... complaintID=${claimID} | ||
| 1126 | - ${claim_data}= munch_dict arg=${claim_data} | ||
| 1127 | - Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} | ||
| 1128 | - Log ${USERS.users['${provider}'].claim_data} | ||
| 1129 | - | ||
| 1130 | - | ||
| 1131 | Можливість створити чернетку скарги | 1117 | Можливість створити чернетку скарги |
| 1132 | ${complaint}= Підготувати дані для подання скарги | 1118 | ${complaint}= Підготувати дані для подання скарги |
| 1133 | ${complaintID}= Run As ${provider} | 1119 | ${complaintID}= Run As ${provider} |
| 1134 | ... Створити чернетку скарги про виправлення умов закупівлі | 1120 | ... Створити чернетку скарги про виправлення умов закупівлі |
| 1135 | ... ${TENDER['TENDER_UAID']} | 1121 | ... ${TENDER['TENDER_UAID']} |
| 1136 | ... ${complaint} | 1122 | ... ${complaint} |
| 1137 | - ${complaint_data}= Create Dictionary | ||
| 1138 | - ... complaint=${complaint} | ||
| 1139 | - ... complaintID=${complaintID} | ||
| 1140 | - ${complaint_data}= munch_dict arg=${complaint_data} | ||
| 1141 | - Set To Dictionary ${USERS.users['${provider}']} complaint_data ${complaint_data} | 1123 | + Set To Dictionary ${USERS.users['${provider}']} complaint_data ${complaintID} |
| 1142 | Log ${USERS.users['${provider}'].complaint_data} | 1124 | Log ${USERS.users['${provider}'].complaint_data} |
| 1143 | 1125 | ||
| 1144 | 1126 | ||
| 1145 | -Можливість створити чернетку вимоги про виправлення умов ${lot_index} лоту | ||
| 1146 | - ${claim}= Підготувати дані для подання вимоги | ||
| 1147 | - ${lot_id}= get_id_from_object ${USERS.users['${provider}'].tender_data.data.lots[${lot_index}]} | ||
| 1148 | - ${complaintID}= Run As ${provider} | ||
| 1149 | - ... Створити чернетку вимоги про виправлення умов лоту | ||
| 1150 | - ... ${TENDER['TENDER_UAID']} | ||
| 1151 | - ... ${claim} | ||
| 1152 | - ... ${lot_id} | ||
| 1153 | - ${claim_data}= Create Dictionary | ||
| 1154 | - ... claim=${claim} | ||
| 1155 | - ... complaintID=${complaintID} | ||
| 1156 | - ${claim_data}= munch_dict arg=${claim_data} | ||
| 1157 | - Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} | ||
| 1158 | - Log ${USERS.users['${provider}'].claim_data} | ||
| 1159 | - | ||
| 1160 | - | ||
| 1161 | Можливість створити чернетку скарги про виправлення умов ${lot_index} лоту | 1127 | Можливість створити чернетку скарги про виправлення умов ${lot_index} лоту |
| 1162 | ${complaint}= Підготувати дані для подання скарги | 1128 | ${complaint}= Підготувати дані для подання скарги |
| 1163 | ${lot_id}= get_id_from_object ${USERS.users['${provider}'].tender_data.data.lots[${lot_index}]} | 1129 | ${lot_id}= get_id_from_object ${USERS.users['${provider}'].tender_data.data.lots[${lot_index}]} |
| @@ -1166,32 +1132,10 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | @@ -1166,32 +1132,10 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | ||
| 1166 | ... ${TENDER['TENDER_UAID']} | 1132 | ... ${TENDER['TENDER_UAID']} |
| 1167 | ... ${complaint} | 1133 | ... ${complaint} |
| 1168 | ... ${lot_id} | 1134 | ... ${lot_id} |
| 1169 | - ${complaint_data}= Create Dictionary | ||
| 1170 | - ... complaint=${complaint} | ||
| 1171 | - ... complaintID=${complaintID} | ||
| 1172 | - ${complaint_data}= munch_dict arg=${complaint_data} | ||
| 1173 | - Set To Dictionary ${USERS.users['${provider}']} complaint_data ${complaint_data} | 1135 | + Set To Dictionary ${USERS.users['${provider}']} complaint_data ${complaintID} |
| 1174 | Log ${USERS.users['${provider}'].complaint_data} | 1136 | Log ${USERS.users['${provider}'].complaint_data} |
| 1175 | 1137 | ||
| 1176 | 1138 | ||
| 1177 | -Додати документ до вимоги | ||
| 1178 | - ${file_path} ${file_name} ${file_content}= create_fake_doc | ||
| 1179 | - Run As ${provider} | ||
| 1180 | - ... Завантажити документацію до вимоги | ||
| 1181 | - ... ${TENDER['TENDER_UAID']} | ||
| 1182 | - ... ${USERS.users['${provider}']['claim_data']['complaintID']} | ||
| 1183 | - ... ${file_path} | ||
| 1184 | - ${doc_id}= get_id_from_string ${file_name} | ||
| 1185 | - ${claim_doc}= Create Dictionary | ||
| 1186 | - ... doc_name=${file_name} | ||
| 1187 | - ... doc_id=${doc_id} | ||
| 1188 | - ... doc_content=${file_content} | ||
| 1189 | - ${claim_doc}= munch_dict arg=${claim_doc} | ||
| 1190 | - Set To Dictionary ${USERS.users['${provider}'].claim_data} documents ${claim_doc} | ||
| 1191 | - Remove File ${file_path} | ||
| 1192 | - Log ${USERS.users['${provider}'].claim_data} | ||
| 1193 | - | ||
| 1194 | - | ||
| 1195 | Додати документ до скарги | 1139 | Додати документ до скарги |
| 1196 | ${file_path} ${file_name} ${file_content}= create_fake_doc | 1140 | ${file_path} ${file_name} ${file_content}= create_fake_doc |
| 1197 | Run As ${provider} | 1141 | Run As ${provider} |
| @@ -1210,6 +1154,39 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | @@ -1210,6 +1154,39 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | ||
| 1210 | Log ${USERS.users['${provider}'].complaint_data} | 1154 | Log ${USERS.users['${provider}'].complaint_data} |
| 1211 | 1155 | ||
| 1212 | 1156 | ||
| 1157 | +Можливість створити чернетку скарги про виправлення кваліфікації ${qualification_index} учасника | ||
| 1158 | + ${complaint}= Підготувати дані для подання скарги | ||
| 1159 | + ${complaintID}= Run As ${provider} | ||
| 1160 | + ... Створити чернетку вимоги/скарги про виправлення кваліфікації учасника | ||
| 1161 | + ... ${TENDER['TENDER_UAID']} | ||
| 1162 | + ... ${complaint} | ||
| 1163 | + ... ${qualification_index} | ||
| 1164 | + Set To Dictionary ${USERS.users['${provider}']} complaint_data ${complaintID} | ||
| 1165 | + Log ${USERS.users['${provider}'].complaint_data} | ||
| 1166 | + | ||
| 1167 | + | ||
| 1168 | +Можливість створити чернетку скарги про виправлення визначення ${award_index} переможця | ||
| 1169 | + ${complaint}= Підготувати дані для подання скарги | ||
| 1170 | + ${complaintID}= Run As ${provider} | ||
| 1171 | + ... Створити чернетку вимоги/скарги про виправлення визначення переможця | ||
| 1172 | + ... ${TENDER['TENDER_UAID']} | ||
| 1173 | + ... ${complaint} | ||
| 1174 | + ... ${award_index} | ||
| 1175 | + Set To Dictionary ${USERS.users['${provider}']} complaint_data ${complaintID} | ||
| 1176 | + Log ${USERS.users['${provider}'].complaint_data} | ||
| 1177 | + | ||
| 1178 | + | ||
| 1179 | +Можливість створити чернетку скарги на скасування ${canсellations_index} | ||
| 1180 | + ${complaint}= Підготувати дані для подання скарги | ||
| 1181 | + ${complaintID}= Run As ${provider} | ||
| 1182 | + ... Створити чернетку вимоги/скарги на скасування | ||
| 1183 | + ... ${TENDER['TENDER_UAID']} | ||
| 1184 | + ... ${complaint} | ||
| 1185 | + ... ${canсellations_index} | ||
| 1186 | + Set To Dictionary ${USERS.users['${provider}']} complaint_data ${complaintID} | ||
| 1187 | + Log ${USERS.users['${provider}'].complaint_data} | ||
| 1188 | + | ||
| 1189 | + | ||
| 1213 | Додати документ до скарги ${object_index} учасника в ${object} | 1190 | Додати документ до скарги ${object_index} учасника в ${object} |
| 1214 | ${file_path} ${file_name} ${file_content}= create_fake_doc | 1191 | ${file_path} ${file_name} ${file_content}= create_fake_doc |
| 1215 | Run As ${provider} | 1192 | Run As ${provider} |
| @@ -1230,57 +1207,17 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | @@ -1230,57 +1207,17 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | ||
| 1230 | Log ${USERS.users['${provider}'].complaint_data} | 1207 | Log ${USERS.users['${provider}'].complaint_data} |
| 1231 | 1208 | ||
| 1232 | 1209 | ||
| 1233 | -Можливість подати вимогу | ||
| 1234 | - ${data}= Create Dictionary status=claim | ||
| 1235 | - ${confirmation_data}= Create Dictionary data=${data} | ||
| 1236 | - Run As ${provider} | ||
| 1237 | - ... Подати вимогу | ||
| 1238 | - ... ${TENDER['TENDER_UAID']} | ||
| 1239 | - ... ${USERS.users['${provider}']['claim_data']['complaintID']} | ||
| 1240 | - ... ${confirmation_data} | ||
| 1241 | - | ||
| 1242 | - | ||
| 1243 | Можливість подати скаргу | 1210 | Можливість подати скаргу |
| 1244 | - ${data}= Create Dictionary status=pending | ||
| 1245 | - ${confirmation_data}= Create Dictionary data=${data} | ||
| 1246 | - Run As ${payment_user} | ||
| 1247 | - ... Змінити статус скарги | ||
| 1248 | - ... ${TENDER['TENDER_UAID']} | ||
| 1249 | - ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1250 | - ... ${confirmation_data} | ||
| 1251 | - | ||
| 1252 | - | ||
| 1253 | -Можливість подати скаргу на визначення пре-кваліфікації ${qualification_index} учасника | ||
| 1254 | - ${data}= Create Dictionary status=pending | ||
| 1255 | - ${confirmation_data}= Create Dictionary data=${data} | ||
| 1256 | - Run As ${payment_user} | ||
| 1257 | - ... Змінити статус скарги на визначення пре-кваліфікації учасника | ||
| 1258 | - ... ${TENDER['TENDER_UAID']} | ||
| 1259 | - ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1260 | - ... ${qualification_index} | ||
| 1261 | - ... ${confirmation_data} | ||
| 1262 | - | ||
| 1263 | - | ||
| 1264 | -Можливість подати скаргу на визначення ${award_index} переможця | ||
| 1265 | - ${data}= Create Dictionary status=pending | ||
| 1266 | - ${confirmation_data}= Create Dictionary data=${data} | ||
| 1267 | - Run As ${payment_user} | ||
| 1268 | - ... Змінити статус скарги на визначення переможця | ||
| 1269 | - ... ${TENDER['TENDER_UAID']} | ||
| 1270 | - ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1271 | - ... ${award_index} | ||
| 1272 | - ... ${confirmation_data} | ||
| 1273 | - | ||
| 1274 | - | ||
| 1275 | -Можливість подати скаргу на скасування ${cancellations_index} | ||
| 1276 | - ${data}= Create Dictionary status=pending | ||
| 1277 | - ${confirmation_data}= Create Dictionary data=${data} | ||
| 1278 | - Run As ${payment_user} | ||
| 1279 | - ... Змінити статус скарги на скасування | ||
| 1280 | - ... ${TENDER['TENDER_UAID']} | ||
| 1281 | - ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1282 | - ... ${cancellations_index} | ||
| 1283 | - ... ${confirmation_data} | 1211 | + Log ${USERS.users['${provider}'].complaint_access_token} |
| 1212 | + ${complaint_token}= set variable ${USERS.users['${provider}'].complaint_access_token} | ||
| 1213 | + Log ${USERS.users['${provider}']['complaint_data']['value']['amount']} | ||
| 1214 | + ${complaint_value}= set variable ${USERS.users['${provider}']['complaint_data']['value']['amount']} | ||
| 1215 | + Log ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1216 | + ${complaint_uaid}= set variable ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1217 | + ${payment_data}= Підготувати дані для оплати скарги ${complaint_token} ${complaint_value} ${complaint_uaid} | ||
| 1218 | + Run As ${provider} | ||
| 1219 | + ... Виконати оплату скарги | ||
| 1220 | + ... ${payment_data} | ||
| 1284 | 1221 | ||
| 1285 | 1222 | ||
| 1286 | Прийняти скаргу до розгляду | 1223 | Прийняти скаргу до розгляду |
| @@ -1494,6 +1431,49 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | @@ -1494,6 +1431,49 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | ||
| 1494 | ... ${confirmation_data} | 1431 | ... ${confirmation_data} |
| 1495 | 1432 | ||
| 1496 | 1433 | ||
| 1434 | +Помилково створена скарга | ||
| 1435 | + ${data}= Create Dictionary status=mistaken | ||
| 1436 | + ${confirmation_data}= Create Dictionary data=${data} | ||
| 1437 | + Run As ${provider} | ||
| 1438 | + ... Змінити статус скарги | ||
| 1439 | + ... ${TENDER['TENDER_UAID']} | ||
| 1440 | + ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1441 | + ... ${confirmation_data} | ||
| 1442 | + | ||
| 1443 | + | ||
| 1444 | +Помилково створена скарга на визначення пре-кваліфікації ${qualification_index} учасника | ||
| 1445 | + ${data}= Create Dictionary status=mistaken | ||
| 1446 | + ${confirmation_data}= Create Dictionary data=${data} | ||
| 1447 | + Run As ${provider} | ||
| 1448 | + ... Змінити статус скарги на визначення пре-кваліфікації учасника | ||
| 1449 | + ... ${TENDER['TENDER_UAID']} | ||
| 1450 | + ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1451 | + ... ${qualification_index} | ||
| 1452 | + ... ${confirmation_data} | ||
| 1453 | + | ||
| 1454 | + | ||
| 1455 | +Помилково створена скарга на визначення ${award_index} переможця | ||
| 1456 | + ${data}= Create Dictionary status=mistaken | ||
| 1457 | + ${confirmation_data}= Create Dictionary data=${data} | ||
| 1458 | + Run As ${provider} | ||
| 1459 | + ... Змінити статус скарги на визначення переможця | ||
| 1460 | + ... ${TENDER['TENDER_UAID']} | ||
| 1461 | + ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1462 | + ... ${award_index} | ||
| 1463 | + ... ${confirmation_data} | ||
| 1464 | + | ||
| 1465 | + | ||
| 1466 | +Помилково створена скарга скасування ${canсellations_index} | ||
| 1467 | + ${data}= Create Dictionary status=mistaken | ||
| 1468 | + ${confirmation_data}= Create Dictionary data=${data} | ||
| 1469 | + Run As ${provider} | ||
| 1470 | + ... Змінити статус скарги на скасування | ||
| 1471 | + ... ${TENDER['TENDER_UAID']} | ||
| 1472 | + ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1473 | + ... ${award_index} | ||
| 1474 | + ... ${confirmation_data} | ||
| 1475 | + | ||
| 1476 | + | ||
| 1497 | Виконати рішення АМКУ | 1477 | Виконати рішення АМКУ |
| 1498 | ${tendererAction}= create_fake_sentence | 1478 | ${tendererAction}= create_fake_sentence |
| 1499 | ${data}= Create Dictionary | 1479 | ${data}= Create Dictionary |
| @@ -1548,47 +1528,65 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | @@ -1548,47 +1528,65 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | ||
| 1548 | ... ${canсellations_index} | 1528 | ... ${canсellations_index} |
| 1549 | ... ${confirmation_data} | 1529 | ... ${confirmation_data} |
| 1550 | 1530 | ||
| 1531 | +############################################################################################## | ||
| 1532 | +# CLAIMS | ||
| 1533 | +############################################################################################## | ||
| 1551 | 1534 | ||
| 1552 | -Помилково створена скарга | ||
| 1553 | - ${data}= Create Dictionary status=mistaken | ||
| 1554 | - ${confirmation_data}= Create Dictionary data=${data} | ||
| 1555 | - Run As ${provider} | ||
| 1556 | - ... Змінити статус скарги | 1535 | +Можливість створити чернетку вимоги |
| 1536 | + ${claim}= Підготувати дані для подання вимоги | ||
| 1537 | + ${claimID}= Run As ${provider} | ||
| 1538 | + ... Створити чернетку вимоги про виправлення умов закупівлі | ||
| 1557 | ... ${TENDER['TENDER_UAID']} | 1539 | ... ${TENDER['TENDER_UAID']} |
| 1558 | - ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1559 | - ... ${confirmation_data} | 1540 | + ... ${claim} |
| 1541 | + ${claim_data}= Create Dictionary | ||
| 1542 | + ... claim=${claim} | ||
| 1543 | + ... complaintID=${claimID} | ||
| 1544 | + ${claim_data}= munch_dict arg=${claim_data} | ||
| 1545 | + Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} | ||
| 1546 | + Log ${USERS.users['${provider}'].claim_data} | ||
| 1560 | 1547 | ||
| 1561 | 1548 | ||
| 1562 | -Помилково створена скарга на визначення пре-кваліфікації ${qualification_index} учасника | ||
| 1563 | - ${data}= Create Dictionary status=mistaken | ||
| 1564 | - ${confirmation_data}= Create Dictionary data=${data} | ||
| 1565 | - Run As ${provider} | ||
| 1566 | - ... Змінити статус скарги на визначення пре-кваліфікації учасника | 1549 | +Можливість створити чернетку вимоги про виправлення умов ${lot_index} лоту |
| 1550 | + ${claim}= Підготувати дані для подання вимоги | ||
| 1551 | + ${lot_id}= get_id_from_object ${USERS.users['${provider}'].tender_data.data.lots[${lot_index}]} | ||
| 1552 | + ${complaintID}= Run As ${provider} | ||
| 1553 | + ... Створити чернетку вимоги про виправлення умов лоту | ||
| 1567 | ... ${TENDER['TENDER_UAID']} | 1554 | ... ${TENDER['TENDER_UAID']} |
| 1568 | - ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1569 | - ... ${qualification_index} | ||
| 1570 | - ... ${confirmation_data} | 1555 | + ... ${claim} |
| 1556 | + ... ${lot_id} | ||
| 1557 | + ${claim_data}= Create Dictionary | ||
| 1558 | + ... claim=${claim} | ||
| 1559 | + ... complaintID=${complaintID} | ||
| 1560 | + ${claim_data}= munch_dict arg=${claim_data} | ||
| 1561 | + Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} | ||
| 1562 | + Log ${USERS.users['${provider}'].claim_data} | ||
| 1571 | 1563 | ||
| 1572 | 1564 | ||
| 1573 | -Помилково створена скарга на визначення ${award_index} переможця | ||
| 1574 | - ${data}= Create Dictionary status=mistaken | ||
| 1575 | - ${confirmation_data}= Create Dictionary data=${data} | 1565 | +Додати документ до вимоги |
| 1566 | + ${file_path} ${file_name} ${file_content}= create_fake_doc | ||
| 1576 | Run As ${provider} | 1567 | Run As ${provider} |
| 1577 | - ... Змінити статус скарги на визначення переможця | 1568 | + ... Завантажити документацію до вимоги |
| 1578 | ... ${TENDER['TENDER_UAID']} | 1569 | ... ${TENDER['TENDER_UAID']} |
| 1579 | - ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1580 | - ... ${award_index} | ||
| 1581 | - ... ${confirmation_data} | 1570 | + ... ${USERS.users['${provider}']['claim_data']['complaintID']} |
| 1571 | + ... ${file_path} | ||
| 1572 | + ${doc_id}= get_id_from_string ${file_name} | ||
| 1573 | + ${claim_doc}= Create Dictionary | ||
| 1574 | + ... doc_name=${file_name} | ||
| 1575 | + ... doc_id=${doc_id} | ||
| 1576 | + ... doc_content=${file_content} | ||
| 1577 | + ${claim_doc}= munch_dict arg=${claim_doc} | ||
| 1578 | + Set To Dictionary ${USERS.users['${provider}'].claim_data} documents ${claim_doc} | ||
| 1579 | + Remove File ${file_path} | ||
| 1580 | + Log ${USERS.users['${provider}'].claim_data} | ||
| 1582 | 1581 | ||
| 1583 | 1582 | ||
| 1584 | -Помилково створена скарга скасування ${canсellations_index} | ||
| 1585 | - ${data}= Create Dictionary status=mistaken | 1583 | +Можливість подати вимогу |
| 1584 | + ${data}= Create Dictionary status=claim | ||
| 1586 | ${confirmation_data}= Create Dictionary data=${data} | 1585 | ${confirmation_data}= Create Dictionary data=${data} |
| 1587 | Run As ${provider} | 1586 | Run As ${provider} |
| 1588 | - ... Змінити статус скарги на скасування | 1587 | + ... Подати вимогу |
| 1589 | ... ${TENDER['TENDER_UAID']} | 1588 | ... ${TENDER['TENDER_UAID']} |
| 1590 | - ... ${USERS.users['${provider}']['complaint_data']['complaintID']} | ||
| 1591 | - ... ${award_index} | 1589 | + ... ${USERS.users['${provider}']['claim_data']['complaintID']} |
| 1592 | ... ${confirmation_data} | 1590 | ... ${confirmation_data} |
| 1593 | 1591 | ||
| 1594 | 1592 | ||
| @@ -1617,34 +1615,6 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | @@ -1617,34 +1615,6 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | ||
| 1617 | Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} | 1615 | Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} |
| 1618 | 1616 | ||
| 1619 | 1617 | ||
| 1620 | -Можливість створити чернетку скарги про виправлення визначення ${award_index} переможця | ||
| 1621 | - ${complaint}= Підготувати дані для подання скарги | ||
| 1622 | - ${complaintID}= Run As ${provider} | ||
| 1623 | - ... Створити чернетку вимоги/скарги про виправлення визначення переможця | ||
| 1624 | - ... ${TENDER['TENDER_UAID']} | ||
| 1625 | - ... ${complaint} | ||
| 1626 | - ... ${award_index} | ||
| 1627 | - ${complaint_data}= Create Dictionary | ||
| 1628 | - ... complaint=${complaint} | ||
| 1629 | - ... complaintID=${complaintID} | ||
| 1630 | - ${complaint_data}= munch_dict arg=${complaint_data} | ||
| 1631 | - Set To Dictionary ${USERS.users['${provider}']} complaint_data ${complaint_data} | ||
| 1632 | - | ||
| 1633 | - | ||
| 1634 | -Можливість створити чернетку скарги про виправлення кваліфікації ${qualification_index} учасника | ||
| 1635 | - ${complaint}= Підготувати дані для подання скарги | ||
| 1636 | - ${complaintID}= Run As ${provider} | ||
| 1637 | - ... Створити чернетку вимоги/скарги про виправлення кваліфікації учасника | ||
| 1638 | - ... ${TENDER['TENDER_UAID']} | ||
| 1639 | - ... ${complaint} | ||
| 1640 | - ... ${qualification_index} | ||
| 1641 | - ${complaint_data}= Create Dictionary | ||
| 1642 | - ... complaint=${complaint} | ||
| 1643 | - ... complaintID=${complaintID} | ||
| 1644 | - ${complaint_data}= munch_dict arg=${complaint_data} | ||
| 1645 | - Set To Dictionary ${USERS.users['${provider}']} complaint_data ${complaint_data} | ||
| 1646 | - | ||
| 1647 | - | ||
| 1648 | Можливість створити чернетку вимоги про виправлення кваліфікації ${qualification_index} учасника | 1618 | Можливість створити чернетку вимоги про виправлення кваліфікації ${qualification_index} учасника |
| 1649 | ${claim}= Підготувати дані для подання вимоги | 1619 | ${claim}= Підготувати дані для подання вимоги |
| 1650 | ${complaintID}= Run As ${provider} | 1620 | ${complaintID}= Run As ${provider} |
| @@ -1659,20 +1629,6 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | @@ -1659,20 +1629,6 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status | ||
| 1659 | Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} | 1629 | Set To Dictionary ${USERS.users['${provider}']} claim_data ${claim_data} |
| 1660 | 1630 | ||
| 1661 | 1631 | ||
| 1662 | -Можливість створити чернетку скарги на скасування ${canсellations_index} | ||
| 1663 | - ${complaint}= Підготувати дані для подання скарги | ||
| 1664 | - ${complaintID}= Run As ${provider} | ||
| 1665 | - ... Створити чернетку вимоги/скарги на скасування | ||
| 1666 | - ... ${TENDER['TENDER_UAID']} | ||
| 1667 | - ... ${complaint} | ||
| 1668 | - ... ${canсellations_index} | ||
| 1669 | - ${complaint_data}= Create Dictionary | ||
| 1670 | - ... complaint=${complaint} | ||
| 1671 | - ... complaintID=${complaintID} | ||
| 1672 | - ${complaint_data}= munch_dict arg=${complaint_data} | ||
| 1673 | - Set To Dictionary ${USERS.users['${provider}']} complaint_data ${complaint_data} | ||
| 1674 | - | ||
| 1675 | - | ||
| 1676 | Можливість створити вимогу про виправлення умов закупівлі із документацією | 1632 | Можливість створити вимогу про виправлення умов закупівлі із документацією |
| 1677 | ${claim}= Підготувати дані для подання вимоги | 1633 | ${claim}= Підготувати дані для подання вимоги |
| 1678 | ${file_path} ${file_name} ${file_content}= create_fake_doc | 1634 | ${file_path} ${file_name} ${file_content}= create_fake_doc |
| @@ -70,8 +70,17 @@ Library openprocurement_client.utils | @@ -70,8 +70,17 @@ Library openprocurement_client.utils | ||
| 70 | Log ${auth_ds} | 70 | Log ${auth_ds} |
| 71 | 71 | ||
| 72 | ${ds_config}= Create Dictionary host_url=${ds_host_url} auth_ds=${auth_ds} | 72 | ${ds_config}= Create Dictionary host_url=${ds_host_url} auth_ds=${auth_ds} |
| 73 | - ${plan_api_wrapper}= prepare_plan_api_wrapper ${USERS.users['${username}'].api_key} PLANS ${API_HOST_URL} ${API_VERSION} | ||
| 74 | - ${tender_api_wrapper}= prepare_api_wrapper ${USERS.users['${username}'].api_key} TENDERS ${API_HOST_URL} ${API_VERSION} ${ds_config} | 73 | + ${plan_api_wrapper}= prepare_plan_api_wrapper |
| 74 | + ... ${USERS.users['${username}'].api_key} | ||
| 75 | + ... PLANS | ||
| 76 | + ... ${API_HOST_URL} | ||
| 77 | + ... ${API_VERSION} | ||
| 78 | + ${tender_api_wrapper}= prepare_api_wrapper | ||
| 79 | + ... ${USERS.users['${username}'].api_key} | ||
| 80 | + ... TENDERS | ||
| 81 | + ... ${API_HOST_URL} | ||
| 82 | + ... ${API_VERSION} | ||
| 83 | + ... ${ds_config} | ||
| 75 | ${tender_create_wrapper}= prepare_tender_create_wrapper | 84 | ${tender_create_wrapper}= prepare_tender_create_wrapper |
| 76 | ... ${USERS.users['${username}'].api_key} | 85 | ... ${USERS.users['${username}'].api_key} |
| 77 | ... PLANS | 86 | ... PLANS |
| @@ -91,7 +100,17 @@ Library openprocurement_client.utils | @@ -91,7 +100,17 @@ Library openprocurement_client.utils | ||
| 91 | ... ${API_HOST_URL} | 100 | ... ${API_HOST_URL} |
| 92 | ... ${API_VERSION} | 101 | ... ${API_VERSION} |
| 93 | ... ${ds_config} | 102 | ... ${ds_config} |
| 94 | - ${agreement_wrapper}= prepare_agreement_api_wrapper ${USERS.users['${username}'].api_key} AGREEMENTS ${API_HOST_URL} ${API_VERSION} ${ds_config} | 103 | + ${agreement_wrapper}= prepare_agreement_api_wrapper |
| 104 | + ... ${USERS.users['${username}'].api_key} | ||
| 105 | + ... AGREEMENTS | ||
| 106 | + ... ${API_HOST_URL} | ||
| 107 | + ... ${API_VERSION} | ||
| 108 | + ... ${ds_config} | ||
| 109 | + ${payment_wrapper}= prepare_payment_wrapper | ||
| 110 | + ... ${USERS.users['${username}'].api_key} | ||
| 111 | + ... PUSH | ||
| 112 | + ... ${PAYMENT_API} | ||
| 113 | + ... ${PAYMENT_API_VERSION} | ||
| 95 | Set To Dictionary ${USERS.users['${username}']} client=${tender_api_wrapper} | 114 | Set To Dictionary ${USERS.users['${username}']} client=${tender_api_wrapper} |
| 96 | Set To Dictionary ${USERS.users['${username}']} plan_client=${plan_api_wrapper} | 115 | Set To Dictionary ${USERS.users['${username}']} plan_client=${plan_api_wrapper} |
| 97 | Set To Dictionary ${USERS.users['${username}']} tender_create_client=${tender_create_wrapper} | 116 | Set To Dictionary ${USERS.users['${username}']} tender_create_client=${tender_create_wrapper} |
| @@ -99,11 +118,17 @@ Library openprocurement_client.utils | @@ -99,11 +118,17 @@ Library openprocurement_client.utils | ||
| 99 | Set To Dictionary ${USERS.users['${username}']} dasu_client=${dasu_api_wraper} | 118 | Set To Dictionary ${USERS.users['${username}']} dasu_client=${dasu_api_wraper} |
| 100 | Set To Dictionary ${USERS.users['${username}']} access_token=${EMPTY} | 119 | Set To Dictionary ${USERS.users['${username}']} access_token=${EMPTY} |
| 101 | Set To Dictionary ${USERS.users['${username}']} amcu_client=${amcu_api_wrapper} | 120 | Set To Dictionary ${USERS.users['${username}']} amcu_client=${amcu_api_wrapper} |
| 121 | + Set To Dictionary ${USERS.users['${username}']} payment_client=${payment_wrapper} | ||
| 102 | ${id_map}= Create Dictionary | 122 | ${id_map}= Create Dictionary |
| 103 | Set To Dictionary ${USERS.users['${username}']} id_map=${id_map} | 123 | Set To Dictionary ${USERS.users['${username}']} id_map=${id_map} |
| 104 | Log ${EDR_HOST_URL} | 124 | Log ${EDR_HOST_URL} |
| 105 | Log ${EDR_VERSION} | 125 | Log ${EDR_VERSION} |
| 106 | - ${edr_wrapper}= prepare_edr_wrapper ${EDR_HOST_URL} ${EDR_VERSION} ${USERS.users['${username}'].auth_edr[0]} ${USERS.users['${username}'].auth_edr[1]} | 126 | + ${edr_wrapper}= prepare_edr_wrapper |
| 127 | + ... ${EDR_HOST_URL} | ||
| 128 | + ... ${EDR_VERSION} | ||
| 129 | + ... ${USERS.users['${username}'].auth_edr[0]} | ||
| 130 | + ... ${USERS.users['${username}'].auth_edr[1]} | ||
| 131 | + Log ${edr_wrapper} | ||
| 107 | Set To Dictionary ${USERS.users['${username}']} edr_client=${edr_wrapper} | 132 | Set To Dictionary ${USERS.users['${username}']} edr_client=${edr_wrapper} |
| 108 | #Variables for contracting_management module | 133 | #Variables for contracting_management module |
| 109 | ${contract_api_wrapper}= prepare_contract_api_wrapper ${USERS.users['${username}'].api_key} CONTRACTS ${api_host_url} ${api_version} ${ds_config} | 134 | ${contract_api_wrapper}= prepare_contract_api_wrapper ${USERS.users['${username}'].api_key} CONTRACTS ${api_host_url} ${api_version} ${ds_config} |
| @@ -902,8 +927,8 @@ Library openprocurement_client.utils | @@ -902,8 +927,8 @@ Library openprocurement_client.utils | ||
| 902 | 927 | ||
| 903 | Створити чернетку скарги про виправлення умов закупівлі | 928 | Створити чернетку скарги про виправлення умов закупівлі |
| 904 | [Documentation] Створює скаргу у статусі "draft" | 929 | [Documentation] Створює скаргу у статусі "draft" |
| 905 | - [Arguments] ${username} ${tender_uaid} ${complaint} | ||
| 906 | - Log ${complaint} | 930 | + [Arguments] ${username} ${tender_uaid} ${complaint_data} |
| 931 | + Log ${complaint_data} | ||
| 907 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору | 932 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору |
| 908 | ... ${username} | 933 | ... ${username} |
| 909 | ... ${tender_uaid} | 934 | ... ${tender_uaid} |
| @@ -911,11 +936,11 @@ Library openprocurement_client.utils | @@ -911,11 +936,11 @@ Library openprocurement_client.utils | ||
| 911 | ... ${USERS.users['${username}'].client} | 936 | ... ${USERS.users['${username}'].client} |
| 912 | ... create_complaint | 937 | ... create_complaint |
| 913 | ... ${tender.data.id} | 938 | ... ${tender.data.id} |
| 914 | - ... ${complaint} | 939 | + ... ${complaint_data} |
| 915 | ... access_token=${tender.access.token} | 940 | ... access_token=${tender.access.token} |
| 916 | Log ${reply} | 941 | Log ${reply} |
| 917 | Set To Dictionary ${USERS.users['${username}']} complaint_access_token=${reply.access.token} | 942 | Set To Dictionary ${USERS.users['${username}']} complaint_access_token=${reply.access.token} |
| 918 | - [return] ${reply.data.complaintID} | 943 | + [return] ${reply.data} |
| 919 | 944 | ||
| 920 | 945 | ||
| 921 | Створити чернетку вимоги про виправлення умов лоту | 946 | Створити чернетку вимоги про виправлення умов лоту |
| @@ -933,25 +958,9 @@ Library openprocurement_client.utils | @@ -933,25 +958,9 @@ Library openprocurement_client.utils | ||
| 933 | [return] ${complaintID} | 958 | [return] ${complaintID} |
| 934 | 959 | ||
| 935 | 960 | ||
| 936 | -Створити чернетку скарги про виправлення умов лоту | ||
| 937 | - [Documentation] Створює скарги у статусі "draft" | ||
| 938 | - [Arguments] ${username} ${tender_uaid} ${complaint} ${lot_id} | ||
| 939 | - ${tender}= openprocurement_client.Пошук тендера по ідентифікатору | ||
| 940 | - ... ${username} | ||
| 941 | - ... ${tender_uaid} | ||
| 942 | - ${lot_index}= get_object_index_by_id ${tender.data.lots} ${lot_id} | ||
| 943 | - Set to dictionary ${complaint.data} relatedLot=${tender.data.lots[${lot_index}].id} | ||
| 944 | - ${complaintID}= openprocurement_client.Створити чернетку скарги про виправлення умов закупівлі | ||
| 945 | - ... ${username} | ||
| 946 | - ... ${tender_uaid} | ||
| 947 | - ... ${complaint} | ||
| 948 | - [return] ${complaintID} | ||
| 949 | - | ||
| 950 | - | ||
| 951 | Створити чернетку вимоги/скарги про виправлення визначення переможця | 961 | Створити чернетку вимоги/скарги про виправлення визначення переможця |
| 952 | [Documentation] Створює вимогу/скаргу у про виправлення визначення переможця статусі "draft" | 962 | [Documentation] Створює вимогу/скаргу у про виправлення визначення переможця статусі "draft" |
| 953 | - [Arguments] ${username} ${tender_uaid} ${claim} ${award_index} | ||
| 954 | - Log ${claim} | 963 | + [Arguments] ${username} ${tender_uaid} ${data} ${award_index} |
| 955 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору | 964 | ${tender}= openprocurement_client.Пошук тендера по ідентифікатору |
| 956 | ... ${username} | 965 | ... ${username} |
| 957 | ... ${tender_uaid} | 966 | ... ${tender_uaid} |
| @@ -960,14 +969,14 @@ Library openprocurement_client.utils | @@ -960,14 +969,14 @@ Library openprocurement_client.utils | ||
| 960 | ... ${USERS.users['${username}'].client} | 969 | ... ${USERS.users['${username}'].client} |
| 961 | ... create_award_complaint | 970 | ... create_award_complaint |
| 962 | ... ${tender.data.id} | 971 | ... ${tender.data.id} |
| 963 | - ... ${claim} | 972 | + ... ${data} |
| 964 | ... ${tender.data.awards[${award_index}].id} | 973 | ... ${tender.data.awards[${award_index}].id} |
| 965 | ... access_token=${tender.access.token} | 974 | ... access_token=${tender.access.token} |
| 966 | Log ${reply} | 975 | Log ${reply} |
| 967 | Set To Dictionary ${USERS.users['${username}']} complaint_access_token=${reply.access.token} | 976 | Set To Dictionary ${USERS.users['${username}']} complaint_access_token=${reply.access.token} |
| 968 | Set To Dictionary ${USERS.users['${amcu_user}']} complaint_access_token=${reply.access.token} | 977 | Set To Dictionary ${USERS.users['${amcu_user}']} complaint_access_token=${reply.access.token} |
| 969 | Log ${USERS.users['${username}'].complaint_access_token} | 978 | Log ${USERS.users['${username}'].complaint_access_token} |
| 970 | - [return] ${reply.data.complaintID} | 979 | + [return] ${reply.data} |
| 971 | 980 | ||
| 972 | 981 | ||
| 973 | Створити чернетку вимоги/скарги про виправлення кваліфікації учасника | 982 | Створити чернетку вимоги/скарги про виправлення кваліфікації учасника |
| @@ -989,7 +998,7 @@ Library openprocurement_client.utils | @@ -989,7 +998,7 @@ Library openprocurement_client.utils | ||
| 989 | Set To Dictionary ${USERS.users['${username}']} complaint_access_token=${reply.access.token} | 998 | Set To Dictionary ${USERS.users['${username}']} complaint_access_token=${reply.access.token} |
| 990 | Set To Dictionary ${USERS.users['${amcu_user}']} complaint_access_token=${reply.access.token} | 999 | Set To Dictionary ${USERS.users['${amcu_user}']} complaint_access_token=${reply.access.token} |
| 991 | Log ${USERS.users['${username}'].complaint_access_token} | 1000 | Log ${USERS.users['${username}'].complaint_access_token} |
| 992 | - [return] ${reply.data.complaintID} | 1001 | + [return] ${reply.data} |
| 993 | 1002 | ||
| 994 | 1003 | ||
| 995 | Створити чернетку вимоги/скарги на скасування | 1004 | Створити чернетку вимоги/скарги на скасування |
| @@ -1011,7 +1020,7 @@ Library openprocurement_client.utils | @@ -1011,7 +1020,7 @@ Library openprocurement_client.utils | ||
| 1011 | Set To Dictionary ${USERS.users['${username}']} complaint_access_token=${reply.access.token} | 1020 | Set To Dictionary ${USERS.users['${username}']} complaint_access_token=${reply.access.token} |
| 1012 | Set To Dictionary ${USERS.users['${amcu_user}']} complaint_access_token=${reply.access.token} | 1021 | Set To Dictionary ${USERS.users['${amcu_user}']} complaint_access_token=${reply.access.token} |
| 1013 | Log ${USERS.users['${username}'].complaint_access_token} | 1022 | Log ${USERS.users['${username}'].complaint_access_token} |
| 1014 | - [return] ${reply.data.complaintID} | 1023 | + [return] ${reply.data} |
| 1015 | 1024 | ||
| 1016 | 1025 | ||
| 1017 | Створити вимогу про виправлення умов закупівлі | 1026 | Створити вимогу про виправлення умов закупівлі |
| @@ -1232,6 +1241,14 @@ Library openprocurement_client.utils | @@ -1232,6 +1241,14 @@ Library openprocurement_client.utils | ||
| 1232 | Log ${reply} | 1241 | Log ${reply} |
| 1233 | 1242 | ||
| 1234 | 1243 | ||
| 1244 | +Виконати оплату скарги | ||
| 1245 | + [Documentation] Виконує запит на push в liqpay | ||
| 1246 | + [Arguments] ${username} ${payment_data} | ||
| 1247 | + ${payment}= Run Keyword And Ignore Error call method ${USERS.users['${username}'].payment_client} create_payment | ||
| 1248 | + ... ${payment_data} | ||
| 1249 | + Log ${payment} | ||
| 1250 | + | ||
| 1251 | + | ||
| 1235 | Змінити статус скарги | 1252 | Змінити статус скарги |
| 1236 | [Documentation] Переводить скаргу в tender/lot в інший статус | 1253 | [Documentation] Переводить скаргу в tender/lot в інший статус |
| 1237 | [Arguments] ${username} ${tender_uaid} ${complaintID} ${confirmation_data} | 1254 | [Arguments] ${username} ${tender_uaid} ${complaintID} ${confirmation_data} |
| @@ -1240,7 +1257,6 @@ Library openprocurement_client.utils | @@ -1240,7 +1257,6 @@ Library openprocurement_client.utils | ||
| 1240 | ... ${tender_uaid} | 1257 | ... ${tender_uaid} |
| 1241 | run keyword if '${username}' == 'Tender_Owner' set_access_key ${tender} ${USERS.users['${username}'].access_token} | 1258 | run keyword if '${username}' == 'Tender_Owner' set_access_key ${tender} ${USERS.users['${username}'].access_token} |
| 1242 | ... ELSE IF '${username}' == 'Amcu_User' set_access_key ${tender} ${None} | 1259 | ... ELSE IF '${username}' == 'Amcu_User' set_access_key ${tender} ${None} |
| 1243 | - ... ELSE IF '${username}' == 'Payment_User' set_access_key ${tender} ${None} | ||
| 1244 | ... ELSE set_access_key ${tender} ${USERS.users['${username}'].complaint_access_token} | 1260 | ... ELSE set_access_key ${tender} ${USERS.users['${username}'].complaint_access_token} |
| 1245 | ${complaint_internal_id}= openprocurement_client.Отримати internal id по UAid для скарги ${tender} ${complaintID} | 1261 | ${complaint_internal_id}= openprocurement_client.Отримати internal id по UAid для скарги ${tender} ${complaintID} |
| 1246 | Set To Dictionary ${confirmation_data.data} id=${complaint_internal_id} | 1262 | Set To Dictionary ${confirmation_data.data} id=${complaint_internal_id} |
| @@ -1261,7 +1277,6 @@ Library openprocurement_client.utils | @@ -1261,7 +1277,6 @@ Library openprocurement_client.utils | ||
| 1261 | ... ${tender_uaid} | 1277 | ... ${tender_uaid} |
| 1262 | run keyword if '${username}' == 'Tender_Owner' set_access_key ${tender} ${USERS.users['${username}'].access_token} | 1278 | run keyword if '${username}' == 'Tender_Owner' set_access_key ${tender} ${USERS.users['${username}'].access_token} |
| 1263 | ... ELSE IF '${username}' == 'Amcu_User' set_access_key ${tender} ${None} | 1279 | ... ELSE IF '${username}' == 'Amcu_User' set_access_key ${tender} ${None} |
| 1264 | - ... ELSE IF '${username}' == 'Payment_User' set_access_key ${tender} ${None} | ||
| 1265 | ... ELSE set_access_key ${tender} ${USERS.users['${username}'].complaint_access_token} | 1280 | ... ELSE set_access_key ${tender} ${USERS.users['${username}'].complaint_access_token} |
| 1266 | ${complaint_internal_id}= openprocurement_client.Отримати internal id по UAid для скарги ${tender} ${complaintID} | 1281 | ${complaint_internal_id}= openprocurement_client.Отримати internal id по UAid для скарги ${tender} ${complaintID} |
| 1267 | Set To Dictionary ${confirmation_data.data} id=${complaint_internal_id} | 1282 | Set To Dictionary ${confirmation_data.data} id=${complaint_internal_id} |
| @@ -1283,7 +1298,6 @@ Library openprocurement_client.utils | @@ -1283,7 +1298,6 @@ Library openprocurement_client.utils | ||
| 1283 | ... ${tender_uaid} | 1298 | ... ${tender_uaid} |
| 1284 | run keyword if '${username}' == 'Tender_Owner' set_access_key ${tender} ${USERS.users['${username}'].access_token} | 1299 | run keyword if '${username}' == 'Tender_Owner' set_access_key ${tender} ${USERS.users['${username}'].access_token} |
| 1285 | ... ELSE IF '${username}' == 'Amcu_User' set_access_key ${tender} ${None} | 1300 | ... ELSE IF '${username}' == 'Amcu_User' set_access_key ${tender} ${None} |
| 1286 | - ... ELSE IF '${username}' == 'Payment_User' set_access_key ${tender} ${None} | ||
| 1287 | ... ELSE set_access_key ${tender} ${USERS.users['${username}'].complaint_access_token} | 1301 | ... ELSE set_access_key ${tender} ${USERS.users['${username}'].complaint_access_token} |
| 1288 | ${complaint_internal_id}= openprocurement_client.Отримати internal id по UAid для скарги ${tender} ${complaintID} | 1302 | ${complaint_internal_id}= openprocurement_client.Отримати internal id по UAid для скарги ${tender} ${complaintID} |
| 1289 | Set To Dictionary ${confirmation_data.data} id=${complaint_internal_id} | 1303 | Set To Dictionary ${confirmation_data.data} id=${complaint_internal_id} |
| @@ -1305,7 +1319,6 @@ Library openprocurement_client.utils | @@ -1305,7 +1319,6 @@ Library openprocurement_client.utils | ||
| 1305 | ... ${tender_uaid} | 1319 | ... ${tender_uaid} |
| 1306 | run keyword if '${username}' == 'Tender_Owner' set_access_key ${tender} ${USERS.users['${username}'].access_token} | 1320 | run keyword if '${username}' == 'Tender_Owner' set_access_key ${tender} ${USERS.users['${username}'].access_token} |
| 1307 | ... ELSE IF '${username}' == 'Amcu_User' set_access_key ${tender} ${None} | 1321 | ... ELSE IF '${username}' == 'Amcu_User' set_access_key ${tender} ${None} |
| 1308 | - ... ELSE IF '${username}' == 'Payment_User' set_access_key ${tender} ${None} | ||
| 1309 | ... ELSE set_access_key ${tender} ${USERS.users['${username}'].complaint_access_token} | 1322 | ... ELSE set_access_key ${tender} ${USERS.users['${username}'].complaint_access_token} |
| 1310 | ${complaint_internal_id}= openprocurement_client.Отримати internal id по UAid для скарги ${tender} ${complaintID} | 1323 | ${complaint_internal_id}= openprocurement_client.Отримати internal id по UAid для скарги ${tender} ${complaintID} |
| 1311 | Set To Dictionary ${confirmation_data.data} id=${complaint_internal_id} | 1324 | Set To Dictionary ${confirmation_data.data} id=${complaint_internal_id} |
| @@ -12,6 +12,7 @@ from time import sleep | @@ -12,6 +12,7 @@ from time import sleep | ||
| 12 | import os | 12 | import os |
| 13 | import urllib | 13 | import urllib |
| 14 | from openprocurement_client.resources.tenders import TenderCreateClient | 14 | from openprocurement_client.resources.tenders import TenderCreateClient |
| 15 | +from openprocurement_client.resources.tenders import PaymentClient | ||
| 15 | 16 | ||
| 16 | 17 | ||
| 17 | def retry_if_request_failed(exception): | 18 | def retry_if_request_failed(exception): |
| @@ -208,8 +209,7 @@ class StableTenderCreateClient(TenderCreateClient): | @@ -208,8 +209,7 @@ class StableTenderCreateClient(TenderCreateClient): | ||
| 208 | 209 | ||
| 209 | 210 | ||
| 210 | def prepare_tender_create_wrapper(key, resource, host_url, api_version, ds_config=None): | 211 | def prepare_tender_create_wrapper(key, resource, host_url, api_version, ds_config=None): |
| 211 | - return StableTenderCreateClient(key, resource, host_url, api_version, | ||
| 212 | - ds_config=ds_config) | 212 | + return StableTenderCreateClient(key, resource, host_url, api_version, ds_config=ds_config) |
| 213 | 213 | ||
| 214 | 214 | ||
| 215 | class StableClientAmcu(Client): | 215 | class StableClientAmcu(Client): |
| @@ -221,3 +221,14 @@ class StableClientAmcu(Client): | @@ -221,3 +221,14 @@ class StableClientAmcu(Client): | ||
| 221 | 221 | ||
| 222 | def prepare_amcu_api_wrapper(key, resource, host_url, api_version, ds_config=None): | 222 | def prepare_amcu_api_wrapper(key, resource, host_url, api_version, ds_config=None): |
| 223 | return StableClientAmcu(key, resource, host_url, api_version, ds_config=ds_config) | 223 | return StableClientAmcu(key, resource, host_url, api_version, ds_config=ds_config) |
| 224 | + | ||
| 225 | + | ||
| 226 | +class StableClientPayment(PaymentClient): | ||
| 227 | + @retry(stop_max_attempt_number=100, wait_random_min=500, | ||
| 228 | + wait_random_max=4000, retry_on_exception=retry_if_request_failed) | ||
| 229 | + def request(self, *args, **kwargs): | ||
| 230 | + return super(StableClientPayment, self).request(*args, **kwargs) | ||
| 231 | + | ||
| 232 | + | ||
| 233 | +def prepare_payment_wrapper(key, resource, host_url, api_version): | ||
| 234 | + return StableClientPayment(key, resource, host_url, api_version) |
| @@ -7,7 +7,7 @@ Suite Teardown Test Suite Teardown | @@ -7,7 +7,7 @@ Suite Teardown Test Suite Teardown | ||
| 7 | 7 | ||
| 8 | *** Variables *** | 8 | *** Variables *** |
| 9 | ${MODE} belowThreshold | 9 | ${MODE} belowThreshold |
| 10 | -@{USED_ROLES} tender_owner provider provider1 provider2 viewer amcu_user payment_user | 10 | +@{USED_ROLES} tender_owner provider provider1 provider2 viewer amcu_user |
| 11 | ${MOZ_INTEGRATION} ${False} | 11 | ${MOZ_INTEGRATION} ${False} |
| 12 | ${VAT_INCLUDED} ${True} | 12 | ${VAT_INCLUDED} ${True} |
| 13 | 13 | ||
| @@ -123,7 +123,7 @@ ${PLAN_TENDER} ${True} | @@ -123,7 +123,7 @@ ${PLAN_TENDER} ${True} | ||
| 123 | ... ${USERS.users['${viewer}'].broker} | 123 | ... ${USERS.users['${viewer}'].broker} |
| 124 | ... tender_complaint_view | 124 | ... tender_complaint_view |
| 125 | ... non-critical | 125 | ... non-critical |
| 126 | - Звірити відображення поля title для вимоги ${USERS.users['${provider}'].complaint_data['complaintID']} із ${USERS.users['${provider}'].complaint_data.complaint.data.title} для користувача ${viewer} | 126 | + Звірити відображення поля title для вимоги ${USERS.users['${provider}'].complaint_data['complaintID']} із ${USERS.users['${provider}'].complaint_data.title} для користувача ${viewer} |
| 127 | 127 | ||
| 128 | 128 | ||
| 129 | Відображення опису скарги | 129 | Відображення опису скарги |
| @@ -133,7 +133,7 @@ ${PLAN_TENDER} ${True} | @@ -133,7 +133,7 @@ ${PLAN_TENDER} ${True} | ||
| 133 | ... tender_complaint_view | 133 | ... tender_complaint_view |
| 134 | ... non-critical | 134 | ... non-critical |
| 135 | [Setup] Дочекатись синхронізації з майданчиком ${viewer} | 135 | [Setup] Дочекатись синхронізації з майданчиком ${viewer} |
| 136 | - Звірити відображення поля description для вимоги ${USERS.users['${provider}'].complaint_data['complaintID']} із ${USERS.users['${provider}'].complaint_data.complaint.data.description} для користувача ${viewer} | 136 | + Звірити відображення поля description для вимоги ${USERS.users['${provider}'].complaint_data['complaintID']} із ${USERS.users['${provider}'].complaint_data.description} для користувача ${viewer} |
| 137 | 137 | ||
| 138 | 138 | ||
| 139 | Можливість додати документ до скарги про виправлення умов закупівлі тендера | 139 | Можливість додати документ до скарги про виправлення умов закупівлі тендера |
| @@ -388,7 +388,7 @@ ${PLAN_TENDER} ${True} | @@ -388,7 +388,7 @@ ${PLAN_TENDER} ${True} | ||
| 388 | ... pre-qualification_complaint_pending | 388 | ... pre-qualification_complaint_pending |
| 389 | ... critical | 389 | ... critical |
| 390 | [Teardown] Оновити LAST_MODIFICATION_DATE | 390 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 391 | - Можливість подати скаргу на визначення пре-кваліфікації ${qualification_index} учасника | 391 | + Можливість подати скаргу |
| 392 | 392 | ||
| 393 | 393 | ||
| 394 | Можливість позначити скаргу на визначення пре-кваліфікації учасника як помилково створену | 394 | Можливість позначити скаргу на визначення пре-кваліфікації учасника як помилково створену |
| @@ -516,7 +516,7 @@ ${PLAN_TENDER} ${True} | @@ -516,7 +516,7 @@ ${PLAN_TENDER} ${True} | ||
| 516 | ... award_complaint_pending | 516 | ... award_complaint_pending |
| 517 | ... critical | 517 | ... critical |
| 518 | [Teardown] Оновити LAST_MODIFICATION_DATE | 518 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 519 | - Можливість подати скаргу на визначення ${award_index} переможця | 519 | + Можливість подати скаргу |
| 520 | 520 | ||
| 521 | 521 | ||
| 522 | Можливість позначити скаргу на визначення переможця як помилково створену | 522 | Можливість позначити скаргу на визначення переможця як помилково створену |
| @@ -651,7 +651,7 @@ ${PLAN_TENDER} ${True} | @@ -651,7 +651,7 @@ ${PLAN_TENDER} ${True} | ||
| 651 | ... cancel_complaint_pending | 651 | ... cancel_complaint_pending |
| 652 | ... critical | 652 | ... critical |
| 653 | [Teardown] Оновити LAST_MODIFICATION_DATE | 653 | [Teardown] Оновити LAST_MODIFICATION_DATE |
| 654 | - Можливість подати скаргу на скасування ${cancellations_index} | 654 | + Можливість подати скаргу |
| 655 | 655 | ||
| 656 | 656 | ||
| 657 | Можливість позначити скаргу на скасування як помилково створену | 657 | Можливість позначити скаргу на скасування як помилково створену |
| @@ -87,7 +87,6 @@ Quinta: | @@ -87,7 +87,6 @@ Quinta: | ||
| 87 | viewer: Tender_Viewer | 87 | viewer: Tender_Viewer |
| 88 | dasu_user: Dasu_User | 88 | dasu_user: Dasu_User |
| 89 | amcu_user: Amcu_User | 89 | amcu_user: Amcu_User |
| 90 | - payment_user: Payment_User | ||
| 91 | timeout_on_wait: 15 | 90 | timeout_on_wait: 15 |
| 92 | Etender: | 91 | Etender: |
| 93 | intervals: | 92 | intervals: |
| @@ -89,19 +89,6 @@ users: | @@ -89,19 +89,6 @@ users: | ||
| 89 | auth_edr: [test.quintagroup.com, f5111c99a97a45348d8165ba8fcf0d62] | 89 | auth_edr: [test.quintagroup.com, f5111c99a97a45348d8165ba8fcf0d62] |
| 90 | position: [0, 0] | 90 | position: [0, 0] |
| 91 | size: [1400, 900] | 91 | size: [1400, 900] |
| 92 | - Payment_User: | ||
| 93 | - auth_ds: | ||
| 94 | - monitorings: [test.quintagroup.com, test.quintagroup.com] | ||
| 95 | - plans: [test.quintagroup.com, test.quintagroup.com] | ||
| 96 | - tenders: [test.quintagroup.com, test.quintagroup.com] | ||
| 97 | - auth_dasu: [test.quintagroup.com, e9c3ccb8e8124f26941d5f9639a4ebc3] | ||
| 98 | - auth_payment: ab15262404644b60972a8118bac2c587 | ||
| 99 | - api_key: ab15262404644b60972a8118bac2c587 | ||
| 100 | - broker: Quinta | ||
| 101 | - browser: phantomjs | ||
| 102 | - auth_edr: [test.quintagroup.com, f5111c99a97a45348d8165ba8fcf0d62] | ||
| 103 | - position: [0, 0] | ||
| 104 | - size: [1400, 900] | ||
| 105 | Etender_Owner: | 92 | Etender_Owner: |
| 106 | broker: Etender | 93 | broker: Etender |
| 107 | homepage: "https://stage.e-tender.ua/" | 94 | homepage: "https://stage.e-tender.ua/" |
| @@ -453,6 +453,23 @@ def test_complaint_data(): | @@ -453,6 +453,23 @@ def test_complaint_data(): | ||
| 453 | return munchify({'data': data}) | 453 | return munchify({'data': data}) |
| 454 | 454 | ||
| 455 | 455 | ||
| 456 | +def test_payment_data(token, complaint_value, complaint_uaid): | ||
| 457 | + data = { | ||
| 458 | + "amount": str(complaint_value), | ||
| 459 | + "currency": "UAH", | ||
| 460 | + "description": generate_payment_description(token, complaint_uaid), | ||
| 461 | + "type": "credit" | ||
| 462 | + } | ||
| 463 | + return data | ||
| 464 | + | ||
| 465 | + | ||
| 466 | +def generate_payment_description(token, complaint_uaid): | ||
| 467 | + full_hash = hashlib.sha512(token).hexdigest() | ||
| 468 | + short_hash = full_hash[0:8] | ||
| 469 | + description = complaint_uaid + '-' + short_hash + ' [TESTING, ROBOT TESTS]' | ||
| 470 | + return description | ||
| 471 | + | ||
| 472 | + | ||
| 456 | def test_accept_complaint_data(): | 473 | def test_accept_complaint_data(): |
| 457 | data = { | 474 | data = { |
| 458 | "status": "accepted", | 475 | "status": "accepted", |
| @@ -298,6 +298,12 @@ Get Broker Property By Username | @@ -298,6 +298,12 @@ Get Broker Property By Username | ||
| 298 | [Return] ${complaint} | 298 | [Return] ${complaint} |
| 299 | 299 | ||
| 300 | 300 | ||
| 301 | +Підготувати дані для оплати скарги | ||
| 302 | + [Arguments] ${complaint_token} ${complaint_value} ${complaint_uaid} | ||
| 303 | + ${payment_data}= test_payment_data ${complaint_token} ${complaint_value} ${complaint_uaid} | ||
| 304 | + [Return] ${payment_data} | ||
| 305 | + | ||
| 306 | + | ||
| 301 | Підготувати дані для прийняття скарги до розгляду | 307 | Підготувати дані для прийняття скарги до розгляду |
| 302 | ${confirmation_data}= test_accept_complaint_data | 308 | ${confirmation_data}= test_accept_complaint_data |
| 303 | [Return] ${confirmation_data} | 309 | [Return] ${confirmation_data} |
| @@ -14,3 +14,6 @@ ${DASU_API_VERSION} 2.4 | @@ -14,3 +14,6 @@ ${DASU_API_VERSION} 2.4 | ||
| 14 | 14 | ||
| 15 | ${DS_REGEXP} ^https?:\/\/public-docs(?:-staging)?\.prozorro\.gov\.ua\/get\/([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}) | 16 | ${AUCTION_REGEXP} ^https?:\/\/auction(?:-staging)?\.prozorro\.gov\.ua\/(esco-)?tenders\/([0-9A-Fa-f]{32}) |
| 17 | + | ||
| 18 | +${PAYMENT_API} https://integration-sandbox-2.prozorro.gov.ua/liqpay | ||
| 19 | +${PAYMENT_API_VERSION} v1 |
| @@ -84,7 +84,8 @@ from .initial_data import ( | @@ -84,7 +84,8 @@ from .initial_data import ( | ||
| 84 | test_accept_complaint_data, | 84 | test_accept_complaint_data, |
| 85 | test_reject_complaint_data, | 85 | test_reject_complaint_data, |
| 86 | test_cancellation_data, | 86 | test_cancellation_data, |
| 87 | - test_cancel_pending_data | 87 | + test_cancel_pending_data, |
| 88 | + test_payment_data | ||
| 88 | ) | 89 | ) |
| 89 | from barbecue import chef | 90 | from barbecue import chef |
| 90 | from restkit import request | 91 | from restkit import request |
Please
register
or
login
to post a comment