1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-03-06 19:58:14 +00:00
vorta/tests/unit/profile_exports/valid.json
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

96 lines
2.7 KiB
JSON

{
"id": 1,
"name": "Test Profile Restoration",
"added_at": "2020-09-10 01:09:03.402268",
"repo": {
"url": "/tmp/asdf",
"added_at": "2020-09-10 21:48:21.427080",
"encryption": "repokey-blake2",
"unique_size": null,
"unique_csize": null,
"total_size": null,
"total_unique_chunks": null,
"extra_borg_arguments": ""
},
"ssh_key": null,
"compression": "zstd,8",
"exclude_patterns": null,
"exclude_if_present": ".nobackup",
"schedule_mode": "off",
"schedule_interval_unit": "hours",
"schedule_interval_count": 2,
"schedule_fixed_hour": 16,
"schedule_fixed_minute": 0,
"validation_on": true,
"validation_weeks": 3,
"prune_on": true,
"prune_hour": 2,
"prune_day": 7,
"prune_week": 4,
"prune_month": 6,
"prune_year": 2,
"prune_keep_within": "10H",
"new_archive_name": "{hostname}-{profile_slug}-{now:%Y-%m-%dT%H:%M:%S}",
"prune_prefix": "{hostname}-{profile_slug}-",
"pre_backup_cmd": "",
"password": "Tr0ub4dor&3",
"post_backup_cmd": "",
"dont_run_on_metered_networks": true,
"SourceFileModel": [
{
"dir": "/this/is/a/test/file",
"profile": 1,
"added_at": "2020-07-03 03:39:35.226932"
},
{
"dir": "/this/is/another/test/file",
"profile": 1,
"added_at": "2020-07-03 04:37:02.367233"
},
{
"dir": "/why/are/you/reading/this",
"profile": 1,
"added_at": "2020-07-03 04:37:05.106150"
}
],
"WifiSettingModel": [],
"SchemaVersion": {
"id": 1,
"version": 15,
"changed_at": "2020-10-19 19:07:35.305493"
},
"SettingsModel": [
{
"id": 1,
"key": "enable_notifications",
"value": true,
"str_value": "",
"label": "Display notifications when background tasks fail",
"type": "checkbox"
},
{
"id": 2,
"key": "enable_notifications_success",
"value": false,
"str_value": "",
"label": "Also notify about successful background tasks",
"type": "checkbox"
},
{
"id": 3,
"key": "autostart",
"value": false,
"str_value": "",
"label": "Automatically start Vorta at login",
"type": "checkbox"
},
{
"id": 4,
"key": "foreground",
"value": true,
"str_value": "",
"label": "Open main window on startup",
"type": "checkbox"
}
]
}