1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 16:26:29 +00:00

Merge pull request #6076 from hexagonrecursion/fwdport-a-test

Forward port: Test that the archive name is not mentioned
This commit is contained in:
TW 2021-12-03 15:35:59 +01:00 committed by GitHub
commit 54b5ae4865
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3916,6 +3916,13 @@ def test_strip_components_doesnt_leak(self):
res = self.cmd('extract', "--debug", self.repository_location + '::test', '--strip-components', '0') res = self.cmd('extract', "--debug", self.repository_location + '::test', '--strip-components', '0')
self.assert_true(marker not in res) self.assert_true(marker not in res)
def test_do_not_mention_archive_if_you_can_not_find_repo(self):
"""https://github.com/borgbackup/borg/issues/6014"""
archive = self.repository_location + '-this-repository-does-not-exist' + '::test'
output = self.cmd('info', archive, exit_code=2, fork=True)
self.assert_in('this-repository-does-not-exist', output)
self.assert_not_in('this-repository-does-not-exist::test', output)
class ArchiverCorruptionTestCase(ArchiverTestCaseBase): class ArchiverCorruptionTestCase(ArchiverTestCaseBase):
def setUp(self): def setUp(self):