From 566fef18b27b746288db4e70843f204507f2f068 Mon Sep 17 00:00:00 2001 From: Veiko Aasa Date: Fri, 22 Jan 2021 14:19:46 +0200 Subject: [PATCH] sharing: Update functional test to use syncthing-access group 'syncthing' group name was replaced by 'syncthing-access' in MR !1995, update the sharing app functional test to use this new group name. Test: - Update the sharing app Apache2 configuration. Run the sharing app tests. All tests pass. Signed-off-by: Veiko Aasa Reviewed-by: Sunil Mohan Adapa --- plinth/modules/sharing/tests/sharing.feature | 4 ++-- plinth/modules/sharing/tests/test_functional.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plinth/modules/sharing/tests/sharing.feature b/plinth/modules/sharing/tests/sharing.feature index 3d3c16765..fc75661ee 100644 --- a/plinth/modules/sharing/tests/sharing.feature +++ b/plinth/modules/sharing/tests/sharing.feature @@ -32,8 +32,8 @@ Scenario: Remove a share Scenario: Share permissions When I remove share tmp - And I add a share tmp from path /tmp for syncthing - Then the share tmp should be listed from path /tmp for syncthing + And I add a share tmp from path /tmp for syncthing-access + Then the share tmp should be listed from path /tmp for syncthing-access And the share tmp should not be accessible Scenario: Public share diff --git a/plinth/modules/sharing/tests/test_functional.py b/plinth/modules/sharing/tests/test_functional.py index 7ce837e68..0717038ca 100644 --- a/plinth/modules/sharing/tests/test_functional.py +++ b/plinth/modules/sharing/tests/test_functional.py @@ -17,7 +17,7 @@ def remove_share(session_browser, name): _remove_share(session_browser, name) -@when(parsers.parse('I add a share {name:w} from path {path} for {group:w}')) +@when(parsers.parse('I add a share {name:w} from path {path} for {group:S}')) def add_share(session_browser, name, path, group): _add_share(session_browser, name, path, group) @@ -41,7 +41,7 @@ def edit_share_public_access(session_browser, name): @then( parsers.parse( - 'the share {name:w} should be listed from path {path} for {group:w}')) + 'the share {name:w} should be listed from path {path} for {group:S}')) def verify_share(session_browser, name, path, group): _verify_share(session_browser, name, path, group)