Commit Graph

340 Commits

Author SHA1 Message Date
Dan Helfman be1e483e66 Add check_repositories regression fix to NEWS (#662). 2023-03-31 11:46:38 +02:00
Divyansh Singh ce040a1a2b add and update tests 2023-03-31 11:46:38 +02:00
Divyansh Singh c53455c49d add tests for repo labels 2023-03-31 11:46:38 +02:00
Divyansh Singh 698468e322 rename repository arg to repository_path in all borg actions 2023-03-31 11:46:38 +02:00
Divyansh Singh 71296cfa0d check all tests 2023-03-31 11:46:38 +02:00
Divyansh Singh 6be334d388 remove optional label for repos from tests 2023-03-31 11:46:38 +02:00
Divyansh Singh 4c8600aa5d use repository["path"] instead of repository 2023-03-31 11:45:02 +02:00
Dan Helfman 1d79fa3910 When a database command errors, display and log the error message instead of swallowing it (#396). 2023-03-31 11:36:15 +02:00
Dan Helfman 7d1b8ed393 Add code style plugins to enforce use of Python f-strings and prevent single-letter variables. 2023-03-31 11:36:15 +02:00
Dan Helfman 81c81792f7 Add missing source directory error fix to NEWS (#655). 2023-03-31 11:36:15 +02:00
Divyansh Singh a0810671bd review 2023-03-31 11:36:15 +02:00
Divyansh Singh 9bff81ed1f use exit_code_indicates_error and modify it to accept a command 2023-03-31 11:36:13 +02:00
Divyansh Singh 419678e0a3 fix: no error on database backups without source dirs 2023-03-31 11:35:34 +02:00
Dan Helfman a241b8a38b Remove unused module and outdated test expectations (#576). 2023-03-31 11:35:34 +02:00
Divyansh Singh f4b3681013 add tests and remove magic number 2023-03-31 11:35:34 +02:00
Dan Helfman 52a64f6a2c Add "source_directories_must_exist" option to NEWS (#501). 2023-03-31 11:35:34 +02:00
Divyansh Singh 91a916967c reformat 2023-03-31 11:35:34 +02:00
Divyansh Singh 58798e0592 add tests 2023-03-31 11:35:34 +02:00
Soumik Dutta e1a182418a add test to ensure integers are converted to string
before setting them up to be environment variable values

Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:35:34 +02:00
Dan Helfman 7129e20141 Add "--repository" flag to all actions where it makes sense (#564). 2023-03-31 11:35:34 +02:00
Nain 44f9e2d723 Update tests
Make them more explicit. Also formatting.
2023-03-31 11:35:34 +02:00
Nain 5c89ad6eda Add "--repository" flag to the "create" action 2023-03-31 11:35:34 +02:00
Nain a0dbe93554 Add "--repository" flag to the "compact" action 2023-03-31 11:35:34 +02:00
Nain 5af6d784bd Add "--repository" flag to the "check" action 2023-03-31 11:35:34 +02:00
Nain 9ded51b78a Merge mostly repetetive tests 2023-03-31 11:35:34 +02:00
Nain c804793453 Add "--repository" flag to the "prune" action
part of ticket #564
2023-03-31 11:35:34 +02:00
Dan Helfman 9f1d183712 Add "--strip-components all" on the "extract" action to remove leading path components (#647). 2023-03-31 11:35:34 +02:00
Dan Helfman 9fa57b3190 Change the default action order to: "create", "prune", "compact", "check" (#304). 2023-03-31 11:35:33 +02:00
Dan Helfman 15ca234349 Run any command-line actions in the order specified instead of using a fixed ordering (#304). 2023-03-31 11:35:33 +02:00
Dan Helfman fc9bf03409 Add Healthchecks "log" state feature to NEWS. 2023-03-31 11:35:33 +02:00
Soumik Dutta e66afc8d8a fix tests
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:35:33 +02:00
Soumik Dutta 8cac207fc6 added tests to make sure unsupported log states are detected
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:35:33 +02:00
Soumik Dutta e3c46d0084 fix logs_monitor_start_error()
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:35:33 +02:00
Soumik Dutta 4ef65a5411 update test_borgmatic.py
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:35:32 +02:00
Soumik Dutta 850021b749 add test for healthchecks
Signed-off-by: Soumik Dutta <shalearkane@gmail.com>
2023-03-31 11:35:29 +02:00
Dan Helfman dbb39d0b10 Add flake8-quotes to complain about incorrect quoting so I don't have to! 2023-03-31 11:33:18 +02:00
Divyansh Singh d854d40472 mock os.remove instead of actually removing a file 2023-03-31 11:33:18 +02:00
Divyansh Singh 1804967bdc use os.remove and improve tests 2023-03-31 11:33:18 +02:00
Divyansh Singh f8f9debee8 code review 2023-03-31 11:33:18 +02:00
Divyansh Singh c80f3c8265 formatting fix 2023-03-31 11:33:18 +02:00
Divyansh Singh 4231405c80 feat: add dump-restore support for sqlite databases 2023-03-31 11:33:17 +02:00
Dan Helfman 228f55a1de With the "create" action and the "--list" ("--files") flag, only show excluded files at verbosity 2 (#620). 2023-03-31 11:33:17 +02:00
Dan Helfman 7beb935122 Add "checkpoint_volume" configuration option to creates checkpoints every specified number of bytes. 2023-03-31 11:33:17 +02:00
Dan Helfman 37a32b0943 Fix tests. 2023-03-31 11:33:17 +02:00
Dan Helfman 52889c646f Support status character changes in Borg 2.0.0b5 when filtering out special files that cause Borg to hang. 2023-03-31 11:33:17 +02:00
Dan Helfman 49950c2c77 Fix the "create" action with the "--dry-run" flag querying for databases when a PostgreSQL/MySQL "all" database is configured. 2023-03-31 11:33:17 +02:00
Dan Helfman a66542cce1 Internally support new Borg 2.0.0b5 "--filter" status characters / item flags for the "create" action. 2023-03-31 11:33:17 +02:00
Tom Hubrecht 608dbcedc7 Add auth test for the ntfy hook 2023-03-31 11:33:17 +02:00
Dan Helfman 6bdb1974cf Add MySQL database hook "add_drop_database" configuration option to control whether dumped MySQL databases get dropped right before restore (#642). 2023-03-31 11:33:17 +02:00
Dan Helfman 339ffc9c22 Fix for potential data loss (data not getting backed up) when dumping large "directory" format PostgreSQL/MongoDB databases (#643). 2023-03-31 11:33:17 +02:00