From cd1e7b649d2965f3abb84c318cf6aa8c74124f55 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 8 Nov 2019 22:33:24 +0530 Subject: [PATCH] tahoe: Mark Tahoe-LAFS as an advanced app Tahoe LAFS is an app requiring some technical knowledge to use and its support in FreedomBox is experimental. The use case of a cluster of FreedomBoxes running Tahoe-LAFS nodes isn't tested yet. It's intended use case as a backend for the backups app isn't implemented yet. - Fixed functional test implementation for advanced mode - Did not fix failing Tahoe-LAFS tests, keeping them skipped for now. Signed-off-by: Joseph Nuthalapati Reviewed-by: Sunil Mohan Adapa --- functional_tests/features/tahoe.feature | 1 + functional_tests/support/system.py | 2 +- plinth/modules/tahoe/__init__.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/functional_tests/features/tahoe.feature b/functional_tests/features/tahoe.feature index d9532e8af..43ac3d540 100644 --- a/functional_tests/features/tahoe.feature +++ b/functional_tests/features/tahoe.feature @@ -25,6 +25,7 @@ Feature: Tahoe-LAFS distribute file storage Background: Given I'm a logged in user + And advanced mode is on And the domain name is set to mydomain.example And the tahoe application is installed And the domain name for tahoe is set to mydomain.example diff --git a/functional_tests/support/system.py b/functional_tests/support/system.py index 72a71c3d5..6f3b28df1 100644 --- a/functional_tests/support/system.py +++ b/functional_tests/support/system.py @@ -75,7 +75,7 @@ def set_home_page(browser, home_page): def set_advanced_mode(browser, mode): nav_to_module(browser, 'config') - advanced_mode = browser.find_by_name('configuration-advanced_mode') + advanced_mode = browser.find_by_id('id_advanced_mode') if mode: advanced_mode.check() else: diff --git a/plinth/modules/tahoe/__init__.py b/plinth/modules/tahoe/__init__.py index c3ff91624..ba2a1a66e 100644 --- a/plinth/modules/tahoe/__init__.py +++ b/plinth/modules/tahoe/__init__.py @@ -71,7 +71,7 @@ class TahoeApp(app_module.App): super().__init__() menu_item = menu.Menu('menu-tahoe', name, short_description, 'tahoe-lafs', 'tahoe:index', - parent_url_name='apps') + parent_url_name='apps', advanced=True) self.add(menu_item) shortcut = frontpage.Shortcut(