From 6cb37ac19e2414e004dc24966115488e1bff0373 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Sat, 29 Sep 2018 17:33:31 -0700 Subject: [PATCH] roundcube: Enable backup/restore (no data) Reviewed-by: James Valleroy --- functional_tests/features/roundcube.feature | 9 ++++++++- plinth/modules/roundcube/__init__.py | 2 +- plinth/modules/roundcube/manifest.py | 3 +++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/functional_tests/features/roundcube.feature b/functional_tests/features/roundcube.feature index e054053d7..dc28365ab 100644 --- a/functional_tests/features/roundcube.feature +++ b/functional_tests/features/roundcube.feature @@ -15,7 +15,7 @@ # along with this program. If not, see . # -@apps @roundcube +@apps @roundcube @backups Feature: Roundcube Email Client Run webmail client. @@ -32,3 +32,10 @@ Scenario: Disable roundcube application Given the roundcube application is enabled When I disable the roundcube application Then the roundcube site should not be available + +Scenario: Backup and restore roundcube + Given the roundcube application is enabled + When I create a backup of the roundcube app data + And I export the roundcube app data backup + And I restore the roundcube app data backup + Then the roundcube site should be available diff --git a/plinth/modules/roundcube/__init__.py b/plinth/modules/roundcube/__init__.py index 638601c89..44fae5582 100644 --- a/plinth/modules/roundcube/__init__.py +++ b/plinth/modules/roundcube/__init__.py @@ -24,7 +24,7 @@ from plinth import service as service_module from plinth import action_utils, actions, frontpage from plinth.menu import main_menu -from .manifest import clients +from .manifest import backup, clients version = 1 diff --git a/plinth/modules/roundcube/manifest.py b/plinth/modules/roundcube/manifest.py index 45e49c647..d518856d8 100644 --- a/plinth/modules/roundcube/manifest.py +++ b/plinth/modules/roundcube/manifest.py @@ -18,6 +18,7 @@ from django.utils.translation import ugettext_lazy as _ from plinth.clients import validate +from plinth.modules.backups.api import validate as validate_backup clients = validate([{ 'name': _('Roundcube'), @@ -26,3 +27,5 @@ clients = validate([{ 'url': '/roundcube' }] }]) + +backup = validate_backup({})