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
27798420
Commit
27798420
authored
7 months ago
by
ml bonhomme
Browse files
Options
Downloads
Patches
Plain Diff
Update system checks doc URL + minor wording / missing punctuation updates
parent
8f709a1d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2425
Update system checks doc URL + minor wording / missing punctuation updates
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arkindex/project/checks.py
+5
-5
5 additions, 5 deletions
arkindex/project/checks.py
arkindex/project/tests/test_checks.py
+4
-4
4 additions, 4 deletions
arkindex/project/tests/test_checks.py
with
9 additions
and
9 deletions
arkindex/project/checks.py
+
5
−
5
View file @
27798420
...
...
@@ -2,8 +2,8 @@
Arkindex-specific Django system checks.
If you make any changes to those checks, you should consider updating the system
checks documentation
o
n the
wiki
:
<https://
wiki.vpn/en/
arkindex/deploy/checks>
checks documentation
i
n the
Arkindex documentation
:
<https://
doc.
arkindex
.org
/deploy
ment
/checks>
"""
import
os
import
re
...
...
@@ -48,7 +48,7 @@ def api_urls_check(*args, **kwargs):
return
[
Error
(
"
This API URL miss
es
a mandatory ending /
"
,
"
This API URL
is
miss
ing
a mandatory ending /
"
,
hint
=
str
(
url
),
id
=
"
arkindex.E001
"
,
)
...
...
@@ -72,7 +72,7 @@ def local_imageserver_check(*args, **kwargs):
ImageServer
.
objects
.
get
(
id
=
local_id
)
except
ImageServer
.
DoesNotExist
:
return
[
Warning
(
f
"
Local ImageServer with ID
{
local_id
}
does not exist
"
,
f
"
Local ImageServer with ID
{
local_id
}
does not exist
.
"
,
hint
=
f
"
settings.LOCAL_IMAGESERVER_ID =
{
local_id
}
"
,
id
=
"
arkindex.W009
"
,
)]
...
...
@@ -93,7 +93,7 @@ def ponos_env_check(*args, **kwargs):
if
variable
not
in
env
:
errors
.
append
(
Warning
(
f
"
The
{
variable
}
environment variable should be defined
"
"
to allow API client autoconfiguration in Ponos tasks
"
,
"
to allow API client autoconfiguration in Ponos tasks
.
"
,
hint
=
f
"
`ponos.default_env` in
{
settings
.
CONFIG_PATH
}
"
,
id
=
"
arkindex.W006
"
,
))
...
...
This diff is collapsed.
Click to expand it.
arkindex/project/tests/test_checks.py
+
4
−
4
View file @
27798420
...
...
@@ -29,7 +29,7 @@ class ChecksTestCase(TestCase):
api_urls_check
(),
[
Error
(
"
This API URL miss
es
a mandatory ending /
"
,
"
This API URL
is
miss
ing
a mandatory ending /
"
,
hint
=
str
(
bad_url
),
id
=
"
arkindex.E001
"
,
)
...
...
@@ -47,7 +47,7 @@ class ChecksTestCase(TestCase):
with
self
.
settings
(
LOCAL_IMAGESERVER_ID
=
42
):
self
.
assertListEqual
(
local_imageserver_check
(),
[
Warning
(
"
Local ImageServer with ID 42 does not exist
"
,
"
Local ImageServer with ID 42 does not exist
.
"
,
hint
=
"
settings.LOCAL_IMAGESERVER_ID = 42
"
,
id
=
"
arkindex.W009
"
,
),
...
...
@@ -72,13 +72,13 @@ class ChecksTestCase(TestCase):
self
.
assertListEqual
(
ponos_env_check
(),
[
Warning
(
"
The ARKINDEX_API_URL environment variable should be defined
"
"
to allow API client autoconfiguration in Ponos tasks
"
,
"
to allow API client autoconfiguration in Ponos tasks
.
"
,
hint
=
"
`ponos.default_env` in /somewhere/config.yml
"
,
id
=
"
arkindex.W006
"
,
),
Warning
(
"
The ARKINDEX_API_CSRF_COOKIE environment variable should be defined
"
"
to allow API client autoconfiguration in Ponos tasks
"
,
"
to allow API client autoconfiguration in Ponos tasks
.
"
,
hint
=
"
`ponos.default_env` in /somewhere/config.yml
"
,
id
=
"
arkindex.W006
"
,
),
...
...
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