@@ -130,6 +130,22 @@ def init_status_backend(self, data_dir=USER_DIR):
130
130
}
131
131
return self .api_valid_request (method , data )
132
132
133
+ def _set_proxy_credentials (self , data ):
134
+ if not "STATUS_BUILD_PROXY_USER" in os .environ :
135
+ return data
136
+
137
+ user = os .environ ["STATUS_BUILD_PROXY_USER" ]
138
+ password = os .environ ["STATUS_BUILD_PROXY_PASSWORD" ]
139
+
140
+ data ["StatusProxyMarketUser" ] = user
141
+ data ["StatusProxyMarketPassword" ] = password
142
+ data ["StatusProxyBlockchainUser" ] = user
143
+ data ["StatusProxyBlockchainPassword" ] = password
144
+
145
+ data ["StatusProxyEnabled" ] = True
146
+ data ["StatusProxyStageName" ] = "test"
147
+ return data
148
+
133
149
def create_account_and_login (
134
150
self ,
135
151
data_dir = USER_DIR ,
@@ -146,6 +162,7 @@ def create_account_and_login(
146
162
"logEnabled" : True ,
147
163
"logLevel" : "DEBUG" ,
148
164
}
165
+ data = self ._set_proxy_credentials (data )
149
166
return self .api_valid_request (method , data )
150
167
151
168
def restore_account_and_login (
@@ -183,6 +200,7 @@ def restore_account_and_login(
183
200
}
184
201
],
185
202
}
203
+ data = self ._set_proxy_credentials (data )
186
204
return self .api_valid_request (method , data )
187
205
188
206
def login (self , keyUid , user = user_1 ):
@@ -192,6 +210,7 @@ def login(self, keyUid, user=user_1):
192
210
"keyUid" : keyUid ,
193
211
"kdfIterations" : 256000 ,
194
212
}
213
+ data = self ._set_proxy_credentials (data )
195
214
return self .api_valid_request (method , data )
196
215
197
216
def logout (self , user = user_1 ):
0 commit comments