Show periodic rclone progress and remote verification phases

This commit is contained in:
admin committed 2026-09-10 16:04:09 +02:00
1 parent ff152c7f0f
commit fe50bb42a1
8 files changed
+83

No files matched your search

+9
View File
@@ -949,9 +949,18 @@ if '--no-block' not in args:
def test_real_crypt_upload_readback_remote_restore(self):
self.crypt_config()
# Exercise periodic stderr statistics during a real throttled crypt
# transfer; they must not contaminate captured COMPLETE-marker stdout.
(self.wp/'statistics-test.bin').write_bytes(os.urandom(512*1024))
with self.config.open('a') as f:
f.write('RCLONE_STATS_INTERVAL="100ms"\nRCLONE_BWLIMIT="256k"\n')
run=self.backup()
self.assertTrue((run/'UPLOADED').is_file())
self.assertFalse(list((self.base/'encrypted').rglob('wordpress.tar.zst')))
log=next((self.base/'logs').glob('backup_*.log')).read_text()
self.assertIn('NOTICE:',log)
self.assertIn('Remote upload started',log)
self.assertIn('Remote readback passed',log)
self.run_script('app-restore.sh','--remote-run',run.name,'--verify-only')
def test_failed_readback_does_not_publish_remote_marker(self):