Forward port: Test that the archive name is not mentioned

This test was originally added in #6071
This commit is contained in:
Andrey Bienkowski 2021-12-02 17:27:13 +03:00
parent 13f2600fb2
commit 17d12b520c
1 changed files with 7 additions and 0 deletions

View File

@ -3916,6 +3916,13 @@ class RemoteArchiverTestCase(ArchiverTestCase):
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):