Commit 68dc92c532b502badae9489df8de59a6b4fd3a07

Authored by Krokop
1 parent 825d126a

add api_version to prepare_edr_wrapper, add auth_edr block to users.yaml, add ED…

…R_HOST_URL, EDR_VERSION
@@ -27,11 +27,9 @@ Library openprocurement_client_helper.py @@ -27,11 +27,9 @@ Library openprocurement_client_helper.py
27 ${id_map}= Create Dictionary 27 ${id_map}= Create Dictionary
28 Set To Dictionary ${USERS.users['${username}']} id_map=${id_map} 28 Set To Dictionary ${USERS.users['${username}']} id_map=${id_map}
29 Log ${EDR_HOST_URL} 29 Log ${EDR_HOST_URL}
30 - Log ${EDR_USERNAME}  
31 - Log ${EDR_PASSWORD}  
32 - ${edr_wrapper}= prepare edr wrapper ${EDR_HOST_URL} ${EDR_USERNAME} ${EDR_PASSWORD} 30 + Log ${EDR_VERSION}
  31 + ${edr_wrapper}= prepare_edr_wrapper ${EDR_HOST_URL} ${EDR_VERSION} ${USERS.users['${username}'].auth_edr[0]} ${USERS.users['${username}'].auth_edr[1]}
33 Set To Dictionary ${USERS.users['${username}']} edr_client=${edr_wrapper} 32 Set To Dictionary ${USERS.users['${username}']} edr_client=${edr_wrapper}
34 - Log Variables  
35 33
36 34
37 Завантажити документ 35 Завантажити документ
@@ -700,7 +698,7 @@ Library openprocurement_client_helper.py @@ -700,7 +698,7 @@ Library openprocurement_client_helper.py
700 # Bid operations 698 # Bid operations
701 ############################################################################## 699 ##############################################################################
702 700
703 -Перевірити учасника за ЕДРПОУ 701 +Перевірити учасника за ЄДРПОУ
704 [Arguments] ${username} ${edrpou} 702 [Arguments] ${username} ${edrpou}
705 ${reply}= Call Method ${USERS.users['${username}'].edr_client} verify_member ${edrpou} 703 ${reply}= Call Method ${USERS.users['${username}'].edr_client} verify_member ${edrpou}
706 Log ${reply} 704 Log ${reply}
@@ -708,7 +706,7 @@ Library openprocurement_client_helper.py @@ -708,7 +706,7 @@ Library openprocurement_client_helper.py
708 706
709 Подати цінову пропозицію 707 Подати цінову пропозицію
710 [Arguments] ${username} ${tender_uaid} ${bid} ${lots_ids}=${None} ${features_ids}=${None} 708 [Arguments] ${username} ${tender_uaid} ${bid} ${lots_ids}=${None} ${features_ids}=${None}
711 - ${verify_response}= Run As ${username} Перевірити учасника за ЕДРПОУ ${bid.data.tenderers[0].identifier.id} 709 + ${verify_response}= Run As ${username} Перевірити учасника за ЄДРПОУ ${bid.data.tenderers[0].identifier.id}
712 Log ${verify_response} 710 Log ${verify_response}
713 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid} 711 ${tender}= openprocurement_client.Пошук тендера по ідентифікатору ${username} ${tender_uaid}
714 ${lots_ids}= Run Keyword IF ${lots_ids} Set Variable ${lots_ids} 712 ${lots_ids}= Run Keyword IF ${lots_ids} Set Variable ${lots_ids}
@@ -35,8 +35,8 @@ class StableEDRClient(EDRClient): @@ -35,8 +35,8 @@ class StableEDRClient(EDRClient):
35 return super(StableEDRClient, self).request(*args, **kwargs) 35 return super(StableEDRClient, self).request(*args, **kwargs)
36 36
37 37
38 -def prepare_edr_wrapper(host_url, username, password=''):  
39 - return StableEDRClient(host_url, username, password) 38 +def prepare_edr_wrapper(host_url, api_version, username, password):
  39 + return StableEDRClient(host_url, api_version, username, password)
40 40
41 41
42 def get_complaint_internal_id(tender, complaintID): 42 def get_complaint_internal_id(tender, complaintID):
@@ -2,12 +2,15 @@ users: @@ -2,12 +2,15 @@ users:
2 Tender_Owner: 2 Tender_Owner:
3 api_key: e9c3ccb8e8124f26941d5f9639a4ebc3 3 api_key: e9c3ccb8e8124f26941d5f9639a4ebc3
4 broker: Quinta 4 broker: Quinta
  5 + auth_edr: [test.quintagroup.com, f5111c99a97a45348d8165ba8fcf0d62]
5 Tender_User: 6 Tender_User:
6 api_key: e9c3ccb8e8124f26941d5f9639a4ebc3 7 api_key: e9c3ccb8e8124f26941d5f9639a4ebc3
7 broker: Quinta 8 broker: Quinta
  9 + auth_edr: [test.quintagroup.com, f5111c99a97a45348d8165ba8fcf0d62]
8 Tender_User1: 10 Tender_User1:
9 api_key: e9c3ccb8e8124f26941d5f9639a4ebc3 11 api_key: e9c3ccb8e8124f26941d5f9639a4ebc3
10 broker: Quinta 12 broker: Quinta
  13 + auth_edr: [test.quintagroup.com, f5111c99a97a45348d8165ba8fcf0d62]
11 Tender_User2: 14 Tender_User2:
12 api_key: e9c3ccb8e8124f26941d5f9639a4ebc3 15 api_key: e9c3ccb8e8124f26941d5f9639a4ebc3
13 broker: Quinta 16 broker: Quinta
@@ -3,3 +3,5 @@ ${API_HOST_URL} https://lb.api-sandbox.openprocurement.org @@ -3,3 +3,5 @@ ${API_HOST_URL} https://lb.api-sandbox.openprocurement.org
3 ${API_VERSION} 2.3 3 ${API_VERSION} 2.3
4 ${BROKER} Quinta 4 ${BROKER} Quinta
5 ${ROLE} viewer 5 ${ROLE} viewer
  6 +${EDR_HOST_URL} #TODO: set url
  7 +${EDR_VERSION} 1.0
Please register or login to post a comment