mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
radicale: Add functional tests for setting access rights
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
24f1967b6a
commit
af018e3018
3 files changed
+71
No files matched your search
@@ -425,3 +425,17 @@ def tahoe_remove_introducer(browser, domain):
|
||||
"""Remove an introducer from tahoe-lafs."""
|
||||
introducer = tahoe_get_introducer(browser, domain, 'connected')
|
||||
submit(browser, element=introducer.find_by_css('.form-remove'))
|
||||
|
||||
|
||||
def radicale_get_access_rights(browser):
|
||||
access_rights_types = ['owner_only', 'owner_write', 'authenticated']
|
||||
interface.nav_to_module(browser, 'radicale')
|
||||
for access_rights_type in access_rights_types:
|
||||
if browser.find_by_value(access_rights_type).checked:
|
||||
return access_rights_type
|
||||
|
||||
|
||||
def radicale_set_access_rights(browser, access_rights_type):
|
||||
interface.nav_to_module(browser, 'radicale')
|
||||
browser.choose('access_rights', access_rights_type)
|
||||
interface.submit(browser, form_class='form-configuration')
|
||||
Reference in new issue
Block a user