Commit 68d941793a7f218aed10d9dbe9c05f8e876fe119
1 parent
329508be
Edit Document service upload check
Showing
2 changed files
with
14 additions
and
10 deletions
| ... | ... | @@ -25,6 +25,17 @@ Resource resource.robot |
| 25 | 25 | Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID} |
| 26 | 26 | |
| 27 | 27 | |
| 28 | +Можливість перевірити завантаження документів через Document Service | |
| 29 | + :FOR ${username} IN ${viewer} ${tender_owner} | |
| 30 | + \ ${status}= Run Keyword And Return Status List Should Contain Value ${USERS.users['${username}'].tender_data.data} documents | |
| 31 | + \ Run Keyword If ${status} Exit For Loop | |
| 32 | + ${documents}= Get From Dictionary ${USERS.users['${username}'].tender_data.data} documents | |
| 33 | + ${doc_number}= Get Length ${documents} | |
| 34 | + :FOR ${doc_index} IN RANGE ${doc_number} | |
| 35 | + \ ${document_url}= Get From Dictionary ${USERS.users['${username}'].tender_data.data.documents[${doc_index}]} url | |
| 36 | + \ Should Match Regexp ${document_url} ^https?:\/\/public.docs(?:-sandbox)?\.openprocurement\.org\/get\/([0-9A-Fa-f]{32}) msg=Not a Document Service Upload | |
| 37 | + | |
| 38 | + | |
| 28 | 39 | Можливість знайти тендер по ідентифікатору для усіх користувачів |
| 29 | 40 | :FOR ${username} IN ${tender_owner} ${provider} ${provider1} ${viewer} |
| 30 | 41 | \ Можливість знайти тендер по ідентифікатору для користувача ${username} | ... | ... |
| ... | ... | @@ -1998,14 +1998,7 @@ ${ITEM_MEAT} ${True} |
| 1998 | 1998 | |
| 1999 | 1999 | Перевірка завантаження документів до тендера через Document Service |
| 2000 | 2000 | [Tags] ${USERS.users['${viewer}'].broker}: Document Service |
| 2001 | - ... viewer | |
| 2002 | - ... ${USERS.users['${tender_owner}'].broker} | |
| 2001 | + ... viewer tender_owner | |
| 2002 | + ... ${USERS.users['${viewer}'].broker} ${USERS.users['${tender_owner}'].broker} | |
| 2003 | 2003 | ... document_service |
| 2004 | - [Setup] Дочекатись синхронізації з майданчиком ${viewer} | |
| 2005 | - ${documents}= Get From Dictionary ${USERS.users['${tender_owner}'].tender_data.data} documents | |
| 2006 | - ${doc_number}= Get Length ${documents} | |
| 2007 | - Log ${documents} | |
| 2008 | - :FOR ${doc_index} IN RANGE ${doc_number} | |
| 2009 | - \ ${document_url}= Get From Dictionary ${documents[${doc_index}]} url | |
| 2010 | - \ Should Match Regexp ${document_url} ^https?:\/\/public.docs(?:-sandbox)?\.openprocurement\.org\/get\/([0-9A-Fa-f]{32}) msg=Not a Document Service Upload | |
| 2011 | - # Url pattern may differ, because document service is being developed | |
| 2004 | + Можливість перевірити завантаження документів через Document Service | ... | ... |
Please
register
or
login
to post a comment