backups: Validate backup manifests

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
James Valleroy authored and Joseph Nuthalapati committed 2018-09-24 19:39:07 +05:30
1 parent f1527bb7df
commit 623dbb4cbf
10 files changed
+77 -18

No files matched your search

+3 -2
View File
@@ -18,6 +18,7 @@
from django.utils.translation import ugettext_lazy as _
from plinth import cfg
from plinth.backup import validate as validate_backup
from plinth.clients import validate
from plinth.utils import format_lazy
@@ -46,7 +47,7 @@ clients = validate([{
}]
}])
backup = {
backup = validate_backup({
'config': {
'directories': [],
'files': [],
@@ -63,4 +64,4 @@ backup = {
],
},
'services': ['infinoted']
}
})