test_: set proxy creds (#6211)
This commit is contained in:
parent
2172abe953
commit
6a5623bac6
|
@ -47,6 +47,11 @@ pipeline {
|
||||||
credentialsId: 'codecov-repository-upload-token',
|
credentialsId: 'codecov-repository-upload-token',
|
||||||
variable: 'CODECOV_TOKEN'
|
variable: 'CODECOV_TOKEN'
|
||||||
),
|
),
|
||||||
|
usernamePassword(
|
||||||
|
credentialsId: "api-proxy-devel",
|
||||||
|
usernameVariable: 'STATUS_BUILD_PROXY_USER',
|
||||||
|
passwordVariable: 'STATUS_BUILD_PROXY_PASSWORD'
|
||||||
|
),
|
||||||
]) {
|
]) {
|
||||||
nix.shell('make test-functional', pure: false)
|
nix.shell('make test-functional', pure: false)
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,6 +130,22 @@ class StatusBackend(RpcClient, SignalClient):
|
||||||
}
|
}
|
||||||
return self.api_valid_request(method, data)
|
return self.api_valid_request(method, data)
|
||||||
|
|
||||||
|
def _set_proxy_credentials(self, data):
|
||||||
|
if not "STATUS_BUILD_PROXY_USER" in os.environ:
|
||||||
|
return data
|
||||||
|
|
||||||
|
user = os.environ["STATUS_BUILD_PROXY_USER"]
|
||||||
|
password = os.environ["STATUS_BUILD_PROXY_PASSWORD"]
|
||||||
|
|
||||||
|
data["StatusProxyMarketUser"] = user
|
||||||
|
data["StatusProxyMarketPassword"] = password
|
||||||
|
data["StatusProxyBlockchainUser"] = user
|
||||||
|
data["StatusProxyBlockchainPassword"] = password
|
||||||
|
|
||||||
|
data["StatusProxyEnabled"] = True
|
||||||
|
data["StatusProxyStageName"] = "test"
|
||||||
|
return data
|
||||||
|
|
||||||
def create_account_and_login(
|
def create_account_and_login(
|
||||||
self,
|
self,
|
||||||
data_dir=USER_DIR,
|
data_dir=USER_DIR,
|
||||||
|
@ -146,6 +162,7 @@ class StatusBackend(RpcClient, SignalClient):
|
||||||
"logEnabled": True,
|
"logEnabled": True,
|
||||||
"logLevel": "DEBUG",
|
"logLevel": "DEBUG",
|
||||||
}
|
}
|
||||||
|
data = self._set_proxy_credentials(data)
|
||||||
return self.api_valid_request(method, data)
|
return self.api_valid_request(method, data)
|
||||||
|
|
||||||
def restore_account_and_login(
|
def restore_account_and_login(
|
||||||
|
@ -183,6 +200,7 @@ class StatusBackend(RpcClient, SignalClient):
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
data = self._set_proxy_credentials(data)
|
||||||
return self.api_valid_request(method, data)
|
return self.api_valid_request(method, data)
|
||||||
|
|
||||||
def login(self, keyUid, user=user_1):
|
def login(self, keyUid, user=user_1):
|
||||||
|
@ -192,6 +210,7 @@ class StatusBackend(RpcClient, SignalClient):
|
||||||
"keyUid": keyUid,
|
"keyUid": keyUid,
|
||||||
"kdfIterations": 256000,
|
"kdfIterations": 256000,
|
||||||
}
|
}
|
||||||
|
data = self._set_proxy_credentials(data)
|
||||||
return self.api_valid_request(method, data)
|
return self.api_valid_request(method, data)
|
||||||
|
|
||||||
def logout(self, user=user_1):
|
def logout(self, user=user_1):
|
||||||
|
|
Loading…
Reference in New Issue