summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2023-09-14test_is_slow_msgpack: skip test on expected slow msgpack environmentsThomas Waldmann
2023-09-14allow msgpack 1.0.6 (which has py312 wheels), fixes #7810Thomas Waldmann
2023-09-14allow msgpack 1.0.6(rc1)Thomas Waldmann
2023-09-14avoid tarfile deprecation warning for py312Thomas Waldmann
2023-09-05fix src code formattingThomas Waldmann
not sure why this changed!?
2023-09-04replace flake8 by ruffThomas Waldmann
2023-09-03rlist: remove support for {tam} placeholderThomas Waldmann
archives are now always TAM-authenticated.
2023-09-03always implicitly require archive TAMsThomas Waldmann
they must be there since the upgrade to borg 1.2.6 (or other borg versions that also have a fix for CVE-2023-36811).
2023-09-03always implicitly require manifest TAMsThomas Waldmann
remove a lot of complexity from the code that was just there to support legacy borg versions < 1.0.9 which did not TAM authenticate the manifest. since then, borg writes TAM authentication to the manifest, even if the repo is unencrypted. if the repo is unencrypted, it did not check the somehow pointless authentication that was generated without any secret, but if we add that fake TAM, we can also verify the fake TAM. if somebody explicitly switches off all crypto, they can not expect authentication. for everybody else, borg now always generates the TAM and also verifies it.
2023-09-03check: improve logging for TAM issues, fixes #7797Thomas Waldmann
2023-09-02docs: remove zstd compat hintThomas Waldmann
borg2 repos are not compatible with borg1 anyway, so no need to mention that.
2023-08-30add tests for archive TAMsThomas Waldmann
2023-08-30rebuild_refcounts: keep archive ID, if possibleThomas Waldmann
rebuild_refcounts verifies and recreates the TAM. Now it re-uses the salt, so that the archive ID does not change just because of a new salt if the archive has still the same data.
2023-08-30TAM msgs: be more specific: archives vs. manifestThomas Waldmann
2023-08-30list: support {tam} placeholder. check archive TAM.Thomas Waldmann
list: shows either "verified" or "none", depending on whether a TAM auth tag could be verified or was missing (old archives from borg < 1.0.9). when loading an archive, we now try to verify the archive TAM, but we do not require it. people might still have old archives in their repos and we want to be able to list such repos without fatal exceptions.
2023-08-30cache sync: check archive TAMThomas Waldmann
2023-08-30check: rebuild_refcounts verify and recreate TAMThomas Waldmann
This part of the archive checker recreates the Archive items (always, just in case some missing chunks needed repairing). When loading the Archive item, we now verify the TAM. When saving the (potentially modified) Archive item, we now (re-)generate the TAM. Archives without a valid TAM are dropped rather than TAM-authenticated when saving them. There shouldn't be any archives without a valid TAM: - borg writes an archive TAM since long (1.0.9) - users are expected to TAM-authenticate archives created by older borg when upgrading to borg 1.2.5. Also: Archive.set_meta: TAM-authenticate new archive This is also used by Archive.rename and .recreate.
2023-08-29fixup with msgpack data types related fixesThomas Waldmann
2023-08-29check: rebuild_manifest must verify archive TAMThomas Waldmann
2023-08-27use skipif_acls_not_working decorator for freebsd alsoThomas Waldmann
use platform-specific ACLs to check. for unsupported platform, just return False.
2023-08-27linux: move ACL definitions to platform_linux test moduleThomas Waldmann
they are only used from there.
2023-08-27freebsd: add some ACL tests, fixes #7745Thomas Waldmann
enable ACL support in freebsd vagrant machine's filesystem
2023-08-27get_*_dir tests: use create=FalseThomas Waldmann
In these tests, we only compare paths, but we do not need to create these paths for that. By not trying to create them, we can avoid permission issues, e.g. under fakeroot.
2023-08-27get_*_dir: add create=True kw argumentThomas Waldmann
... and only call ensure_dir if create is True.
2023-08-24docs: improve rcreate / related repos docsThomas Waldmann
2023-07-30Merge pull request #7750 from ↵TW
ThomasWaldmann/fix-unreadable-parent-of-root-master do not try to read parent dir of recursion root (master)
2023-07-30`platform_freebsd.py` dummy test file (#7748)Ted Lawson
2023-07-29remove unused "flags_root" open flagsThomas Waldmann
2023-07-29create: do not try to read parent dir of recursion root, fixes #7746Thomas Waldmann
2023-07-29add a test for unreadable parent dir, see #7746Thomas Waldmann
2023-07-29reverted import groupingbigtedde
2023-07-28Merge remote-tracking branch 'upstream/master' into remove-BaseTestCasebigtedde
2023-07-28parametrize helper.pybigtedde
2023-07-27seperated platform tests into seperate modulesbigtedde
2023-07-27linux tests converted, renamed tests for consistencybigtedde
2023-07-26mac and posix tests converted, removed BaseTestCase and unittestbigtedde
2023-07-26removed BaseTestCase from chunker_slow.pybigtedde
2023-07-26removed BaseTestCase from helpers.pybigtedde
2023-07-26removed TestCaseBase from testsuite/archive.pybigtedde
2023-07-26fix E501Thomas Waldmann
2023-07-26fix E741Thomas Waldmann
2023-07-26fix F401Thomas Waldmann
2023-07-25simplify flake8 configurationThomas Waldmann
we use black since a while, so some stuff does not need to be ignored any more.
2023-07-25fix test_disk_full, fixes #7617Thomas Waldmann
- master branch has different free space requirements from 1.2-maint, so we now use a 700MB filesystem - used pytest.mark.parametrize for the test passes, kind of a progress display - fix bug in rcreate call, encryption arg is needed - fix bug in lock file cleanup - added repo space cleanup - updated docstring with current linux instructions (ubuntu) - stopped using the "reserved" files, the "input" files are good enough to get some space freed. -
2023-07-25simplify BaseTestCase.assert_raisesThomas Waldmann
2023-07-25simplify changedir with @contextmanagerThomas Waldmann
2023-07-25remove unused methods of BaseTestCaseThomas Waldmann
also: clean up imports / comments
2023-07-25tests: remove usage of environment_variable context managerThomas Waldmann
rather use monkeypatch.setenv/delenv.
2023-07-24`cmd` function now creates repo_location argument (#7734)Ted Lawson
f'repo={repo_location}' moved to 'cmd' function
2023-07-23Merge pull request #7722 from bigtedde/archiver-testsTW
Archiver folder - all tests converted from unittest to pytest