Commit Graph

416 Commits

Author SHA1 Message Date
Dan Helfman fcdd839278 Add missing Docker Compose depends. 2023-03-31 11:46:38 +02:00
Dan Helfman e105799296 Error out if run-full-tests is run not inside a test container. 2023-03-31 11:46:38 +02:00
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 0aa554cfa5 reformat 2023-03-31 11:46:36 +02:00
Divyansh Singh 74abc19df6 pass all tests 2023-03-31 11:45:34 +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
Divyansh Singh d5ad78d9af add test for complex constant 2023-03-31 11:36:15 +02:00
Divyansh Singh 0ae811c25d feat: constants support 2023-03-31 11:36:15 +02:00
Dan Helfman 8edd5db1cb Rename scripts/run-full-dev-tests to scripts/run-end-to-end-dev-tests and make it run end-to-end tests only. 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 667a40cb0b Remove test now that --repository isn't expected to error
As discussed #652#issuecomment-5579
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 41b3975198 e2e tests schema update 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