From ca5fc5769ab785b84f64db845e7ec2ad3405af1d Mon Sep 17 00:00:00 2001 From: Andrey Bienkowski Date: Tue, 30 Nov 2021 20:38:38 +0300 Subject: [PATCH] Test that archive name is not mentioned; see #6014 --- src/borg/testsuite/archiver.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/borg/testsuite/archiver.py b/src/borg/testsuite/archiver.py index 2305cdaab..384751179 100644 --- a/src/borg/testsuite/archiver.py +++ b/src/borg/testsuite/archiver.py @@ -3529,6 +3529,14 @@ class RemoteArchiverTestCase(ArchiverTestCase): res = self.cmd('extract', "--debug", self.repository_location + '::test', '--strip-components', '0') self.assert_true(marker not in res) + @pytest.mark.xfail(raises=AssertionError, strict=True) + 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): def setUp(self):