mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-24 07:01:59 +00:00
add test for borg change-passphrase / BORG_NEW_PASSPHRASE
This commit is contained in:
parent
0a0b913739
commit
fa8ce2d977
1 changed files with 8 additions and 0 deletions
|
@ -1363,6 +1363,14 @@ def test_compression_lzma_uncompressible(self):
|
|||
size, csize = self._get_sizes('lzma', compressible=False)
|
||||
assert csize >= size
|
||||
|
||||
def test_change_passphrase(self):
|
||||
self.cmd('init', self.repository_location)
|
||||
os.environ['BORG_NEW_PASSPHRASE'] = 'newpassphrase'
|
||||
# here we have both BORG_PASSPHRASE and BORG_NEW_PASSPHRASE set:
|
||||
self.cmd('change-passphrase', self.repository_location)
|
||||
os.environ['BORG_PASSPHRASE'] = 'newpassphrase'
|
||||
self.cmd('list', self.repository_location)
|
||||
|
||||
def test_break_lock(self):
|
||||
self.cmd('init', self.repository_location)
|
||||
self.cmd('break-lock', self.repository_location)
|
||||
|
|
Loading…
Reference in a new issue