|
13 | 13 | from json import dumps
|
14 | 14 | from tempfile import mkdtemp
|
15 | 15 |
|
16 |
| -from qiita_client.testing import PluginTestCase |
| 16 | +from qiita_client.testing import PluginTestCase, URL |
17 | 17 | from qiita_client import (QiitaPlugin, QiitaTypePlugin, QiitaCommand,
|
18 | 18 | QiitaArtifactType, ArtifactInfo)
|
19 | 19 |
|
20 |
| -URL = 'https://localhost:21174' |
21 | 20 |
|
22 | 21 | class QiitaCommandTest(TestCase):
|
23 | 22 | def setUp(self):
|
@@ -169,7 +168,7 @@ def html_generator_func(a, b, c, d):
|
169 | 168 | validate_func, html_generator_func, atypes)
|
170 | 169 |
|
171 | 170 | # Generate the config file for the new plugin
|
172 |
| - tester.generate_config('ls', 'echo') |
| 171 | + tester.generate_config('ls', 'echo', self.ca_cert) |
173 | 172 | # Ask Qiita to reload the plugins
|
174 | 173 | self.qclient.post('/apitest/reload_plugins/')
|
175 | 174 |
|
@@ -213,7 +212,7 @@ def func(qclient, job_id, job_params, working_dir):
|
213 | 212 | {'out1': 'Demultiplexed'})
|
214 | 213 | tester.register_command(a_cmd)
|
215 | 214 |
|
216 |
| - tester.generate_config('ls', 'echo') |
| 215 | + tester.generate_config('ls', 'echo', self.ca_cert) |
217 | 216 | self.qclient.post('/apitest/reload_plugins/')
|
218 | 217 | tester(URL, 'register', 'ignored')
|
219 | 218 |
|
|
0 commit comments