Skip to content

Commit

Permalink
21174 -> 8383
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Aug 13, 2024
1 parent 4793fd2 commit b1fe0af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This package includes the Qiita Client utility library, a library to simplify th

How to test this package?
-------------------------
In order to test the Qiita Client package, a local installation of Qiita should be running in test mode on the address `https://localhost:21174`, with the default test database created in Qiita's test suite.
In order to test the Qiita Client package, a local installation of Qiita should be running in test mode on the address `https://localhost:8383`, with the default test database created in Qiita's test suite.
Also, if Qiita is running with the default server SSL certificate, you need to export the variable `QIITA_ROOTCA_CERT` in your environment, so the Qiita Client can perform secure connections against the Qiita server:

```bash
Expand Down
6 changes: 3 additions & 3 deletions qiita_client/tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def html_generator_func(a, b, c, d):
self.qclient.post('/apitest/reload_plugins/')

# Install the current plugin
tester("https://localhost:21174", 'register', 'ignored')
tester("https://localhost:8383", 'register', 'ignored')

# Check that it has been installed
obs = self.qclient.get('/qiita_db/plugins/NewPlugin/1.0.0/')
Expand Down Expand Up @@ -214,7 +214,7 @@ def func(qclient, job_id, job_params, working_dir):

tester.generate_config('ls', 'echo')
self.qclient.post('/apitest/reload_plugins/')
tester("https://localhost:21174", 'register', 'ignored')
tester("https://localhost:8383", 'register', 'ignored')

obs = self.qclient.get('/qiita_db/plugins/NewPlugin/0.0.1/')
self.assertEqual(obs['name'], 'NewPlugin')
Expand All @@ -230,7 +230,7 @@ def func(qclient, job_id, job_params, working_dir):
'status': 'queued'}
job_id = self.qclient.post('/apitest/processing_job/',
data=data)['job']
tester("https://localhost:21174", job_id, self.outdir)
tester("https://localhost:8383", job_id, self.outdir)

status = self._wait_for_running_job(job_id)
self.assertEqual(status, 'success')
Expand Down
8 changes: 4 additions & 4 deletions qiita_client/tests/test_qiita_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ def test_format_payload_error(self):
class QiitaClientTests(PluginTestCase):
def setUp(self):
self.ca_cert = environ.get('QIITA_ROOT_CA', None)
self.tester = QiitaClient("https://localhost:21174",
self.tester = QiitaClient("https://localhost:8383",
CLIENT_ID,
CLIENT_SECRET,
self.ca_cert)
self.bad_tester = QiitaClient("https://localhost:21174",
self.bad_tester = QiitaClient("https://localhost:8383",
BAD_CLIENT_ID,
CLIENT_SECRET,
self.ca_cert)
Expand All @@ -118,11 +118,11 @@ def tearDown(self):
remove(fp)

def test_init(self):
obs = QiitaClient("https://localhost:21174",
obs = QiitaClient("https://localhost:8383",
CLIENT_ID,
CLIENT_SECRET,
ca_cert=self.ca_cert)
self.assertEqual(obs._server_url, "https://localhost:21174")
self.assertEqual(obs._server_url, "https://localhost:8383")
self.assertEqual(obs._client_id, CLIENT_ID)
self.assertEqual(obs._client_secret, CLIENT_SECRET)
self.assertEqual(obs._verify, self.ca_cert)
Expand Down

0 comments on commit b1fe0af

Please sign in to comment.