1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 07:43:09 +00:00
vorta/tests/unit/borg_json_output
jetchirag b015368fee
Integration Tests for Borg (#1716)
Move existing tests into subfolder `tests/unit`. Write integration tests that actually run the installed borg executable. Those tests can be found in `tests/integration`.  Those pytest fixtures that are the same for both kinds of tests remain in `tests/conftest.py`. The others can be found in `tests/integration/conftest.py` or `tests/unit/conftest.py`. This adds nox to the project and configures it to run the tests with different borg versions. This also updates the ci workflow to run the integration tests using nox.

* noxfile.py : Run pytest with a matrix of borg versions OR a specific borg version

* Makefile : Run using nox. Add phonies `test-unit` and `test-integration`.

* tests/conftest.py : Move some fixtures/functions to `tests/unit/conftest.py`.

* tests/test_*.py --> tests/unit/ : Move unittests and assets into subfolder

* tests/integration/ : Write integration tests.

* requirements.d/dev.txt: Add `nox` and `pkgconfig`. The latter is needed for installing new borg versions.

* .github/actions/setup/action.yml : Update to install pre-commit and nox when needed. The action now no longer installs Vorta.

* .github/actions/install-dependencies/action.yml : Install system deps of borg with this new composite action.

* .github/workflows/test.yml : Rename `test` ci to `test-unit` and update it for the new test setup.
                                              Implement `test-integration` ci.

Signed-off-by: Chirag Aggarwal <thechiragaggarwal@gmail.com>
2023-08-05 13:49:45 +00:00
..
check_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
check_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
compact_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
compact_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
create_break_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
create_break_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
create_lock_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
create_lock_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
create_perm_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
create_perm_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
create_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
create_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
delete_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
delete_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
diff_archives_dict_issue_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
diff_archives_dict_issue_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
diff_archives_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
diff_archives_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
info_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
info_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
list_archive_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
list_archive_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
list_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
list_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
prune_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
prune_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
rename_stderr.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00
rename_stdout.json Integration Tests for Borg (#1716) 2023-08-05 13:49:45 +00:00