Commit 9d23a464e5de06566763e2300d185c3e42375f66

Authored by alexdiatlov
Committed by GitHub
2 parents 99e8c892 0ddc974c

Merge pull request #194 from ProzorroUKR/dev_prozorro

Dev prozorro
... ... @@ -14,8 +14,6 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
14 14 ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
15 15 ${ARTIFACT}= load_data_from ${file_path}
16 16 Log ${ARTIFACT.tender_uaid}
17   - Log ${ARTIFACT.tender_id}
18   - Log ${ARTIFACT.tender_owner_access_token}
19 17 ${NUMBER_OF_LOTS}= Convert To Integer ${NUMBER_OF_LOTS}
20 18 ${NUMBER_OF_ITEMS}= Convert To Integer ${NUMBER_OF_ITEMS}
21 19 ${NUMBER_OF_MILESTONES}= Convert To Integer ${NUMBER_OF_MILESTONES}
... ... @@ -44,7 +42,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
44 42 Log ${plan_data}
45 43 ${tender_data}= Підготувати дані для створення тендера ${tender_parameters} ${plan_data}
46 44 ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data}
47   - ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data} ${ARTIFACT.tender_id} ${ARTIFACT.tender_owner_access_token}
  45 + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data} ${ARTIFACT.tender_uaid}
48 46 Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data}
49 47 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
50 48
... ... @@ -78,8 +76,6 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
78 76 ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
79 77 ${ARTIFACT}= load_data_from ${file_path}
80 78 Log ${ARTIFACT.tender_uaid}
81   - Log ${ARTIFACT.tender_id}
82   - Log ${ARTIFACT.tender_owner_access_token}
83 79 [Arguments] ${data_version}
84 80 ${NUMBER_OF_LOTS}= Convert To Integer ${NUMBER_OF_LOTS}
85 81 ${NUMBER_OF_ITEMS}= Convert To Integer ${NUMBER_OF_ITEMS}
... ... @@ -107,7 +103,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
107 103 ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data}
108 104 ${adapted_data_mnn}= edit_tender_data_for_mnn ${adapted_data} ${MODE} ${data_version}
109 105 Log ${adapted_data_mnn}
110   - ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_mnn} ${ARTIFACT.tender_id} ${ARTIFACT.tender_owner_access_token}
  106 + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_mnn} ${ARTIFACT.tender_uaid}
111 107 Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data_mnn}
112 108 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
113 109
... ... @@ -117,8 +113,6 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
117 113 ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
118 114 ${ARTIFACT}= load_data_from ${file_path}
119 115 Log ${ARTIFACT.tender_uaid}
120   - Log ${ARTIFACT.tender_id}
121   - Log ${ARTIFACT.tender_owner_access_token}
122 116 ${NUMBER_OF_LOTS}= Convert To Integer ${NUMBER_OF_LOTS}
123 117 ${NUMBER_OF_ITEMS}= Convert To Integer ${NUMBER_OF_ITEMS}
124 118 ${NUMBER_OF_MILESTONES}= Convert To Integer ${NUMBER_OF_MILESTONES}
... ... @@ -145,7 +139,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
145 139 ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data}
146 140 ${adapted_data_cost}= edit_tender_data_for_cost ${adapted_data} ${MODE} ${data_version}
147 141 Log ${adapted_data_cost}
148   - ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_cost} ${ARTIFACT.tender_id} ${ARTIFACT.tender_owner_access_token}
  142 + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_cost} ${ARTIFACT.tender_uaid}
149 143 Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data_cost}
150 144 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
151 145
... ... @@ -155,8 +149,6 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
155 149 ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
156 150 ${ARTIFACT}= load_data_from ${file_path}
157 151 Log ${ARTIFACT.tender_uaid}
158   - Log ${ARTIFACT.tender_id}
159   - Log ${ARTIFACT.tender_owner_access_token}
160 152 ${NUMBER_OF_LOTS}= Convert To Integer ${NUMBER_OF_LOTS}
161 153 ${NUMBER_OF_ITEMS}= Convert To Integer ${NUMBER_OF_ITEMS}
162 154 ${NUMBER_OF_MILESTONES}= Convert To Integer ${NUMBER_OF_MILESTONES}
... ... @@ -183,7 +175,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
183 175 ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data}
184 176 ${adapted_data_gmdn}= edit_tender_data_for_gmdn ${adapted_data} ${MODE} ${data_version}
185 177 Log ${adapted_data_gmdn}
186   - ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_gmdn} ${ARTIFACT.tender_id} ${ARTIFACT.tender_owner_access_token}
  178 + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_gmdn} ${ARTIFACT.tender_uaid}
187 179 Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data_gmdn}
188 180 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
189 181
... ... @@ -193,8 +185,6 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
193 185 ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
194 186 ${ARTIFACT}= load_data_from ${file_path}
195 187 Log ${ARTIFACT.tender_uaid}
196   - Log ${ARTIFACT.tender_id}
197   - Log ${ARTIFACT.tender_owner_access_token}
198 188 ${NUMBER_OF_LOTS}= Convert To Integer ${NUMBER_OF_LOTS}
199 189 ${NUMBER_OF_ITEMS}= Convert To Integer ${NUMBER_OF_ITEMS}
200 190 ${NUMBER_OF_MILESTONES}= Convert To Integer ${NUMBER_OF_MILESTONES}
... ... @@ -221,7 +211,7 @@ ${ERROR_PLAN_MESSAGE}= Calling method 'get_plan' failed: ResourceGone: {"status
221 211 ${adapted_data}= Адаптувати дані для оголошення тендера ${tender_data}
222 212 ${adapted_data_plan_tender}= edit_tender_data_for_plan_tender ${adapted_data} ${MODE} ${data_version}
223 213 Log ${adapted_data_plan_tender}
224   - ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_plan_tender} ${ARTIFACT.tender_id} ${ARTIFACT.tender_owner_access_token}
  214 + ${TENDER_UAID}= Run As ${tender_owner} Створити тендер ${adapted_data_plan_tender} ${ARTIFACT.tender_uaid}
225 215 Set To Dictionary ${USERS.users['${tender_owner}']} initial_data=${adapted_data_plan_tender}
226 216 Set To Dictionary ${TENDER} TENDER_UAID=${TENDER_UAID}
227 217
... ...
... ... @@ -189,15 +189,15 @@ Library openprocurement_client.utils
189 189
190 190
191 191 Створити тендер
192   - [Arguments] ${username} ${tender_data} ${plan_id} ${plan_access_token}
193   - #${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
194   - #${ARTIFACT}= load_data_from ${file_path}
195   - #Log ${ARTIFACT.tender_owner_access_token}
196   - #Log ${ARTIFACT.tender_id}
  192 + [Arguments] ${username} ${tender_data} ${plan_uaid}
  193 + ${file_path}= Get Variable Value ${ARTIFACT_FILE} artifact_plan.yaml
  194 + ${ARTIFACT}= load_data_from ${file_path}
  195 + Log ${ARTIFACT.tender_owner_access_token}
  196 + Log ${ARTIFACT.tender_id}
197 197 ${tender}= Call Method ${USERS.users['${username}'].tender_create_client} create_tender
198   - ... ${plan_id}
  198 + ... ${ARTIFACT.tender_id}
199 199 ... ${tender_data}
200   - ... access_token=${plan_access_token}
  200 + ... access_token=${ARTIFACT.tender_owner_access_token}
201 201 Log ${tender}
202 202 ${access_token}= Get Variable Value ${tender.access.token}
203 203 ${status}= Set Variable If 'open' in '${MODE}' active.tendering ${EMPTY}
... ...
1 1 *** Variables ***
2 2 ${RESOURCE} tenders # possible values: tenders, auctions
3   -${API_HOST_URL} https://lb-api-sandbox.prozorro.gov.ua
  3 +${API_HOST_URL} https://lb-api-staging.prozorro.gov.ua
4 4 ${API_VERSION} 2.4
5 5 ${BROKER} Quinta
6   -${DS_HOST_URL} https://upload-docs-sandbox.prozorro.gov.ua
  6 +${DS_HOST_URL} https://upload-docs-staging.prozorro.gov.ua
7 7 ${ROLE} viewer
8   -${EDR_HOST_URL} https://lb-edr-sandbox.prozorro.gov.ua
  8 +${EDR_HOST_URL} https://lb-edr-staging.prozorro.gov.ua
9 9 ${EDR_VERSION} 0
10 10
11 11 ${DASU_RESOURCE} monitorings
12   -${DASU_API_HOST_URL} https://audit-api-sandbox.prozorro.gov.ua
  12 +${DASU_API_HOST_URL} https://audit-api-staging.prozorro.gov.ua
13 13 ${DASU_API_VERSION} 2.4
14 14
15   -${DS_REGEXP} ^https?:\\/\\/public-docs(?:-sandbox)?\\.prozorro\\.gov\\.ua\\/get\\/([0-9A-Fa-f]{32})
16   -${AUCTION_REGEXP} ^https?:\\/\\/auction(?:-sandbox)?\\.prozorro\\.gov\\.ua\\/(esco-)?tenders\\/([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})
... ...
Please register or login to post a comment