Skip to content
Snippets Groups Projects
Commit 5208f107 authored by ml bonhomme's avatar ml bonhomme :bee: Committed by Erwan Rouchet
Browse files

Make metrics tests run in CI + fix prometheus port override in tests

parent 2aee068b
No related branches found
No related tags found
1 merge request!2170Make metrics tests run in CI + fix prometheus port override in tests
......@@ -10,7 +10,7 @@ class TestMetricsAPI(FixtureAPITestCase):
response = self.client.get(reverse('metrics:base-metrics'))
self.assertEqual(response.status_code, 404)
@override_settings(PROMETHEUS_METRICS_PORT='42', PUBLIC_HOSTNAME="hostname", ARKINDEX_ENV="test")
@override_settings(PROMETHEUS_METRICS_PORT=42, PUBLIC_HOSTNAME="hostname", ARKINDEX_ENV="test")
def test_metrics_base(self):
response = self.client.get(reverse('metrics:base-metrics'), SERVER_PORT=42)
self.assertEqual(response.status_code, 200)
......
......@@ -20,6 +20,7 @@ def run():
failures = test_runner.run_tests([
'arkindex.documents.tests',
'arkindex.images.tests',
'arkindex.metrics.tests',
'arkindex.ponos.tests',
'arkindex.project.tests',
'arkindex.process.tests',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment