Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Commits
5208f107
Commit
5208f107
authored
1 year ago
by
ml bonhomme
Committed by
Erwan Rouchet
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Make metrics tests run in CI + fix prometheus port override in tests
parent
2aee068b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2170
Make metrics tests run in CI + fix prometheus port override in tests
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arkindex/metrics/tests/test_metrics_api.py
+1
-1
1 addition, 1 deletion
arkindex/metrics/tests/test_metrics_api.py
arkindex/project/runtests.py
+1
-0
1 addition, 0 deletions
arkindex/project/runtests.py
with
2 additions
and
1 deletion
arkindex/metrics/tests/test_metrics_api.py
+
1
−
1
View file @
5208f107
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
arkindex/project/runtests.py
+
1
−
0
View file @
5208f107
...
...
@@ -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
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment