Commit graph

101 commits

Author SHA1 Message Date
Dan Helfman
ef409ad23c
Store configs used to create an archive in the archive and add borgmatic bootstrap ().
Merge pull request  from diivi/feat/store-config-in-archive
2023-06-10 14:39:53 -07:00
Divyansh Singh
3315555d06 cleaner test 2023-06-09 00:21:41 +05:30
Divyansh Singh
6475345a8f attempt to test parse_subparser_arguments 2023-06-08 01:02:43 +05:30
Divyansh Singh
8384eaefb1 reformat 2023-06-08 00:07:36 +05:30
Divyansh Singh
dcb90bba50 some tests remaining 2023-06-07 23:56:02 +05:30
Divyansh Singh
2d761dd86b coverage at 100 2023-06-07 01:43:01 +05:30
Divyansh Singh
f82631e3bb tests for arguments.py 2023-06-07 00:56:19 +05:30
Dan Helfman
b222f6a60b Mention new verbosity level to NEWS (). 2023-05-30 15:52:49 -07:00
Soumik Dutta
a7f81d538d nit changes
- help strings in borgmatic commands
- test fixes in test_logger and test_borgmatic

Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-05-29 01:09:00 +05:30
Soumik Dutta
d556a23f97 update borgmatic tests
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-05-26 08:57:12 +05:30
Dan Helfman
15ef37d89f Add test coverage for exact_options_completion() raising (). 2023-05-06 16:25:26 -07:00
Dan Helfman
e84bac29e5 Remove value type for compatibility with Python 3.8 (). 2023-05-06 16:18:37 -07:00
Isaac
66964f613c
formatting! 2023-05-06 15:56:50 -07:00
Isaac
614c1bf2e4
rename test to make function under test clearer 2023-05-06 15:52:42 -07:00
Isaac
aa770b98f9
follow unit test module convention 2023-05-06 15:50:37 -07:00
Isaac
453b78c852
drop messages 2023-05-06 15:49:07 -07:00
Isaac
0657106893
clarify dedent test name 2023-05-06 15:46:15 -07:00
Isaac
43c532bc57
add test for dedent strip 2023-05-06 11:51:35 -07:00
Isaac
ccfdd6806f
test the value of completions 2023-05-06 11:29:14 -07:00
Isaac
aa564ac5fe
fix the error thrown, unit test for it, and add string explanations 2023-05-06 11:25:15 -07:00
Isaac
77dbb5c499
create way for test cases to be shared 2023-05-06 11:16:45 -07:00
Isaac
e623f401b9
write more unit tests 2023-05-06 10:56:54 -07:00
Isaac
469e0ccace
create doccomments, start writing unit tests 2023-05-06 10:42:06 -07:00
Dan Helfman
5dbb71709c Upgrade test requirements and code style requirements. Auto-reformat code accordingly. 2023-04-14 19:35:24 -07:00
Divyansh Singh
16d7131fb7 refactor tests 2023-04-07 01:00:38 +05:30
Divyansh Singh
091d60c226 refactor and improve tests 2023-04-06 12:36:10 +05:30
Divyansh Singh
0fbdf8d860 feat: add logfile name to hook context for interpolation 2023-04-06 09:31:24 +05:30
Divyansh Singh
a136fda92d check all tests 2023-03-26 23:35:47 +05:30
Divyansh Singh
b511e679ae remove optional label for repos from tests 2023-03-26 16:59:29 +05:30
Divyansh Singh
e83ad9e1e4 use repository["path"] instead of repository 2023-03-25 01:04:57 +05:30
Dan Helfman
b343363bb8 Change the default action order to: "create", "prune", "compact", "check" (). 2023-03-08 14:05:06 -08:00
Dan Helfman
9db31bd1e9 Run any command-line actions in the order specified instead of using a fixed ordering (). 2023-03-08 13:19:41 -08:00
Soumik Dutta
f442aeae9c fix logs_monitor_start_error()
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-06 05:21:56 +05:30
Soumik Dutta
e211863cba update test_borgmatic.py
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-06 05:12:24 +05:30
Dan Helfman
0e6b2c6773 Optionally dump "all" PostgreSQL databases to separate files instead of one combined dump file (, ). 2023-01-25 23:31:07 -08:00
Dan Helfman
c657764367 Fix logs that interfere with JSON output by making warnings go to stderr instead of stdout (). 2022-12-02 12:12:10 -08:00
Dan Helfman
d7f1c10c8c To prevent Borg hangs, unconditionally delete stale named pipes before dumping databases (). 2022-10-12 10:26:09 -07:00
Dan Helfman
ba8fbe7a44 Add "break-lock" action for removing any repository and cache locks leftover from Borg aborting (). 2022-10-04 13:42:18 -07:00
Dan Helfman
317dc7fbce Add "before_actions" and "after_actions" command hooks that run before/after all the actions for each repository, update docs to cover per-repository configurations (). 2022-08-21 21:48:37 -07:00
Dan Helfman
462326406e Drop only-style actions like "--create", rename "prune --files" to "prune --list", and add "--list" alias to "create" and "export-tar" (). 2022-08-21 14:25:16 -07:00
Dan Helfman
7dee6194a2 Add new "transfer" action for Borg 2 (). 2022-08-18 23:06:51 -07:00
Dan Helfman
43d711463c Add additional command-line flags to rcreate action (). 2022-08-18 14:28:12 -07:00
Dan Helfman
3b6ed06686 Add --other-repo flag to rcreate action (). 2022-08-17 17:33:09 -07:00
Dan Helfman
28d847b8b1 Warn and tranform on non-ssh://-style repositories (). 2022-08-17 10:13:11 -07:00
Dan Helfman
cc04bf57df Update list action for Borg 2 support, add rinfo action, and update extract consistency check for Borg 2. 2022-08-15 15:04:40 -07:00
Dan Helfman
c7176bd00a Add rinfo action for Borg 2 support (). 2022-08-12 23:06:56 -07:00
Dan Helfman
622caa0c21 Support for Borg 2's rcreate and rinfo sub-commands (). 2022-08-12 14:53:20 -07:00
Dan Helfman
9aece3936a Modify "mount" and "extract" actions to require the "--repository" flag when multiple repositories are configured (). 2022-07-25 11:30:02 -07:00
Dan Helfman
457ed80744 Fix environment variable plumbing so options in one configuration file aren't used for others (). 2022-06-30 13:42:17 -07:00
Dan Helfman
8fa90053cf Add "borgmatic check --force" flag to ignore configured check frequencies (). 2022-05-28 19:29:33 -07:00