bundlewrap/hooks/test_backup_metadata.py
Franzi e515378497
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
bundles/backup-server: dummy nodes never do backups
2020-11-13 21:58:35 +01:00

9 lines
306 B
Python

def test_node(repo, node, **kwargs):
if node.metadata.get('backups', {}).get('exclude_from_backups', False):
return
if node.dummy:
return
assert len(node.metadata.get('backups', {}).get('paths', set())) > 0, f'{node.name} has backups configured, but no backup paths defined!'