This commit is contained in:
Orsiris de Jong 2024-02-27 19:30:19 +01:00
parent caf34a5d4a
commit 5781599dde
3 changed files with 13 additions and 3 deletions

View file

@ -5,7 +5,7 @@
__intname__ = "restic_metrics" __intname__ = "restic_metrics"
__author__ = "Orsiris de Jong" __author__ = "Orsiris de Jong"
__copyright__ = "Copyright (C) 2022-2024 NetInvent" __copyright__ = "Copyright (C) 2022-2024 NetInvent"
__licence__ = "BSD-3-Clause" __license__ = "BSD-3-Clause"
__version__ = "2.0.0" __version__ = "2.0.0"
__build__ = "2024010101" __build__ = "2024010101"
__description__ = ( __description__ = (

View file

@ -5,7 +5,7 @@
__intname__ = "npbackup_cli_tests" __intname__ = "npbackup_cli_tests"
__author__ = "Orsiris de Jong" __author__ = "Orsiris de Jong"
__copyright__ = "Copyright (C) 2022-2024 NetInvent" __copyright__ = "Copyright (C) 2022-2024 NetInvent"
__licence__ = "BSD-3-Clause" __license__ = "BSD-3-Clause"
__build__ = "2024011501" __build__ = "2024011501"
__compat__ = "python3.6+" __compat__ = "python3.6+"
@ -66,6 +66,16 @@ def test_npbackup_cli_snapshots():
print(logs) print(logs)
def test_npbackup_cli_create_backup():
sys.argv = ['', '-c' 'npbackup-cli-test.conf', '-b']
try:
with RedirectedStdout() as logs:
e = __main__.main()
print(e)
except SystemExit:
print(logs)
if __name__ == "__main__": if __name__ == "__main__":
test_npbackup_cli_no_config() test_npbackup_cli_no_config()

View file

@ -5,7 +5,7 @@
__intname__ = "restic_metrics_tests" __intname__ = "restic_metrics_tests"
__author__ = "Orsiris de Jong" __author__ = "Orsiris de Jong"
__copyright__ = "Copyright (C) 2022-2024 NetInvent" __copyright__ = "Copyright (C) 2022-2024 NetInvent"
__licence__ = "BSD-3-Clause" __license__ = "BSD-3-Clause"
__build__ = "2024010101" __build__ = "2024010101"
__description__ = "Converts restic command line output to a text file node_exporter can scrape" __description__ = "Converts restic command line output to a text file node_exporter can scrape"
__compat__ = "python3.6+" __compat__ = "python3.6+"