Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
My Nagios Plugin Wrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
My Nagios Plugin Wrapper
Commits
74f9c7ce
Commit
74f9c7ce
authored
3 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Spelling.
- Add the code-spell pre-commit hook. - Correct the spelling errors it found.
parent
f5410600
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.pre-commit-config.yaml
+5
-0
5 additions, 0 deletions
.pre-commit-config.yaml
README.rst
+2
-2
2 additions, 2 deletions
README.rst
tests/test_nagios.py
+2
-2
2 additions, 2 deletions
tests/test_nagios.py
with
9 additions
and
4 deletions
.pre-commit-config.yaml
+
5
−
0
View file @
74f9c7ce
...
...
@@ -13,6 +13,11 @@ repos:
hooks
:
-
id
:
detect-secrets
-
repo
:
https://github.com/codespell-project/codespell.git
rev
:
v2.1.0
hooks
:
-
id
:
codespell
-
repo
:
https://github.com/adrienverge/yamllint
rev
:
v1.26.1
hooks
:
...
...
This diff is collapsed.
Click to expand it.
README.rst
+
2
−
2
View file @
74f9c7ce
...
...
@@ -10,7 +10,7 @@ It is intended for my personal use as the warning and critical alerts go to `my
notification mechanism <https://git.shore.co.il/nimrod/nextcloud-notifier>`_.
There is a small-ish binary that is created in the CI pipeline that doesn't have
any external dependencies (like the Python VM or any 3rd party Python packages).
The latest binary is avaiable at
The latest binary is avai
l
able at
https://git.shore.co.il/shore/mnpw/-/jobs/artifacts/master/raw/dist/mnpw?job=build-executable
and should work all Linux distro with glibc 2.17 or newer.
...
...
@@ -73,7 +73,7 @@ To run all of the tests locally:
All of those tests (and more) run in the `CI pipeline
<https://git.shore.co.il/shore/mnpw/-/pipelines>`_ on each push.
To release a new verion:
To release a new ver
s
ion:
.. code:: shell
...
...
This diff is collapsed.
Click to expand it.
tests/test_nagios.py
+
2
−
2
View file @
74f9c7ce
...
...
@@ -47,14 +47,14 @@ PERF_DATA = [
],
)
def
test_check_exec
(
command
,
args
,
exit_code
):
"""
Test the execut
at
ion of checks.
"""
"""
Test the execution of checks.
"""
check
=
nagios
.
Check
(
command
,
args
)
check
.
run
()
assert
check
.
ExitCode
==
exit_code
def
test_check_command_not_found
():
"""
Test check with a nonexist
a
nt command.
"""
"""
Test check with a nonexist
e
nt command.
"""
check
=
nagios
.
Check
(
"
/abcdef
"
,
[])
with
pytest
.
raises
(
RuntimeError
):
check
.
run
()
...
...
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