Skip to content

Commit 3a38b6d

Browse files
committed
adding cls.client_secret, cls.rootca)
1 parent cb9f78f commit 3a38b6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

qiita_client/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def __call__(self, server_url, job_id, output_dir):
250250
# this value will prevent underlying libraries
251251
# from validating the server's cert using
252252
# certifi's pem cache.
253-
ca_cert=environ['QIITA_ROOTCA_CERT'])
253+
ca_cert=config.get('oauth2', 'SERVER_CERT'))
254254

255255
if job_id == 'register':
256256
self._register(qclient)

qiita_client/testing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def setUpClass(cls):
3030
# do not rely on defining ca_cert for these tests. Instead append
3131
# the appropriate CA cert to certifi's pem file.
3232
cls.qclient = QiitaClient("https://localhost:%d" % qiita_port,
33-
cls.client_id, cls.rootca)
33+
cls.client_id, cls.client_secret, cls.rootca)
3434

3535
logger.debug(
3636
'PluginTestCase.setUpClass() token %s' % cls.qclient._token)

0 commit comments

Comments
 (0)