2020-11-13 12:36:52 +01:00
|
|
|
def test_node(repo, node, **kwargs):
|
2021-02-18 15:21:27 +01:00
|
|
|
if not node.has_bundle('backup-client'):
|
2020-11-13 21:56:15 +01:00
|
|
|
return
|
|
|
|
|
2021-02-18 18:12:25 +01:00
|
|
|
if node.metadata.get('backups/exclude_from_backups', False):
|
2020-11-13 21:56:15 +01:00
|
|
|
return
|
|
|
|
|
2021-02-18 18:12:25 +01:00
|
|
|
assert len(node.metadata.get('backups/paths', set())) > 0, f'{node.name} has backups configured, but no backup paths defined!'
|