Commit a877a3a04c99fda175433d0ea789ae6845ff48a3
Committed by
GitHub
Merge pull request #947 from ProzorroUKR/configurable
Configuration for regular expressions
Showing
5 changed files
with
11 additions
and
8 deletions
| ... | ... | @@ -97,7 +97,7 @@ Suite Teardown Test Suite Teardown |
| 97 | 97 | Можливість вичитати посилання на аукціон для ${username} |
| 98 | 98 | ${url}= Run As ${username} Отримати посилання на аукціон для глядача ${TENDER['TENDER_UAID']} ${TENDER['LOT_ID']} |
| 99 | 99 | Should Be True '${url}' |
| 100 | - Should Match Regexp ${url} ^https?:\/\/auction(?:-sandbox)?\.openprocurement\.org\/tenders\/([0-9A-Fa-f]{32}) | |
| 100 | + Should Match Regexp ${url} ${AUCTION_REGEXP} | |
| 101 | 101 | Log URL аукціону для глядача: ${url} |
| 102 | 102 | |
| 103 | 103 | |
| ... | ... | @@ -120,4 +120,4 @@ Suite Teardown Test Suite Teardown |
| 120 | 120 | ... Run Keywords |
| 121 | 121 | ... Wait Until Keyword Succeeds 5 times 30 s Page should not contain очікуємо розкриття учасників |
| 122 | 122 | ... AND |
| 123 | - ... Close browser | |
| \ No newline at end of file | ||
| 123 | + ... Close browser | ... | ... |
| ... | ... | @@ -200,7 +200,7 @@ Library Selenium2Library |
| 200 | 200 | ${url}= Run Keyword If '${username}' == '${viewer}' Run As ${viewer} Отримати посилання на аукціон для глядача ${TENDER['TENDER_UAID']} ${TENDER['LOT_ID']} |
| 201 | 201 | ... ELSE Run As ${username} Отримати посилання на аукціон для учасника ${TENDER['TENDER_UAID']} ${TENDER['LOT_ID']} |
| 202 | 202 | Should Be True '${url}' |
| 203 | - Should Match Regexp ${url} ^https?:\/\/auction(?:-sandbox)?\.openprocurement\.org\/tenders\/([0-9A-Fa-f]{32}) | |
| 203 | + Should Match Regexp ${url} ${AUCTION_REGEXP} | |
| 204 | 204 | Log URL: ${url} |
| 205 | 205 | [return] ${url} |
| 206 | 206 | ... | ... |
| ... | ... | @@ -48,7 +48,7 @@ Resource resource.robot |
| 48 | 48 | ${doc_number}= Get Length ${documents} |
| 49 | 49 | :FOR ${doc_index} IN RANGE ${doc_number} |
| 50 | 50 | \ ${document_url}= Get From Dictionary ${USERS.users['${username}'].tender_data.data.documents[${doc_index}]} url |
| 51 | - \ Should Match Regexp ${document_url} ^https?:\/\/public.docs(?:-sandbox)?\.openprocurement\.org\/get\/([0-9A-Fa-f]{32}) msg=Not a Document Service Upload | |
| 51 | + \ Should Match Regexp ${document_url} ${DS_REGEXP} msg=Not a Document Service Upload | |
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | Можливість створити план закупівлі |
| ... | ... | @@ -1377,4 +1377,4 @@ Resource resource.robot |
| 1377 | 1377 | |
| 1378 | 1378 | Перевірити документ кваліфікіції ${award_id} для користувача ${username} в тендері ${tender_uaid} |
| 1379 | 1379 | ${document}= openprocurement_client.Отримати останній документ кваліфікації з типом registerExtract ${username} ${tender_uaid} ${award_id} |
| 1380 | - Порівняти об'єкти ${document['documentType']} registerExtract | |
| \ No newline at end of file | ||
| 1380 | + Порівняти об'єкти ${document['documentType']} registerExtract | ... | ... |
| ... | ... | @@ -805,7 +805,7 @@ Require Failure |
| 805 | 805 | ... 15 s |
| 806 | 806 | ... Run As ${viewer} Отримати посилання на аукціон для глядача ${TENDER['TENDER_UAID']} |
| 807 | 807 | Should Be True '${url}' |
| 808 | - Should Match Regexp ${url} ^https?:\/\/auction(?:-sandbox)?\.openprocurement\.org\/tenders\/([0-9A-Fa-f]{32}) | |
| 808 | + Should Match Regexp ${url} ${AUCTION_REGEXP} | |
| 809 | 809 | Log URL аукціону для глядача: ${url} |
| 810 | 810 | |
| 811 | 811 | |
| ... | ... | @@ -820,7 +820,7 @@ Require Failure |
| 820 | 820 | ... 15 s |
| 821 | 821 | ... Run As ${username} Отримати посилання на аукціон для учасника ${TENDER['TENDER_UAID']} |
| 822 | 822 | Should Be True '${url}' |
| 823 | - Should Match Regexp ${url} ^https?:\/\/auction(?:-sandbox)?\.openprocurement\.org\/tenders\/([0-9A-Fa-f]{32}) | |
| 823 | + Should Match Regexp ${url} ${AUCTION_REGEXP} | |
| 824 | 824 | Log URL аукціону для учасника: ${url} |
| 825 | 825 | |
| 826 | 826 | ... | ... |
| ... | ... | @@ -10,4 +10,7 @@ ${EDR_VERSION} 0 |
| 10 | 10 | |
| 11 | 11 | ${DASU_RESOURCE} monitorings |
| 12 | 12 | ${DASU_API_HOST_URL} https://audit-api-sandbox.prozorro.gov.ua |
| 13 | -${DASU_API_VERSION} 2.4 | |
| \ No newline at end of file | ||
| 13 | +${DASU_API_VERSION} 2.4 | |
| 14 | + | |
| 15 | +${DS_REGEXP} ^https?:\/\/public.docs(?:-sandbox)?\.openprocurement\.org\/get\/([0-9A-Fa-f]{32}) | |
| 16 | +${AUCTION_REGEXP} ^https?:\/\/auction(?:-sandbox)?\.openprocurement\.org\/tenders\/([0-9A-Fa-f]{32}) | ... | ... |
Please
register
or
login
to post a comment