mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
functional_tests: Test ejabberd backup and restore
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
1 parent
46e603bc9b
commit
5f24cc0042
4 files changed
+83
-3
No files matched your search
@@ -19,7 +19,7 @@ from time import sleep
|
||||
|
||||
import splinter
|
||||
|
||||
from support import config, interface
|
||||
from support import config, interface, site
|
||||
from support.interface import submit
|
||||
from support.service import eventually, wait_for_page_update
|
||||
|
||||
@@ -269,6 +269,21 @@ def disable_ejabberd_message_archive_management(browser):
|
||||
checkbox_id='id_MAM_enabled')
|
||||
|
||||
|
||||
def ejabberd_add_contact(browser):
|
||||
"""Add a contact to Ejabberd user's roster."""
|
||||
site.jsxc_add_contact(browser)
|
||||
|
||||
|
||||
def ejabberd_delete_contact(browser):
|
||||
"""Delete the contact from Ejabberd user's roster."""
|
||||
site.jsxc_delete_contact(browser)
|
||||
|
||||
|
||||
def ejabberd_has_contact(browser):
|
||||
"""Check whether the contact is in Ejabberd user's roster."""
|
||||
return site.jsxc_has_contact(browser)
|
||||
|
||||
|
||||
def ikiwiki_create_wiki_if_needed(browser):
|
||||
"""Create wiki if it does not exist."""
|
||||
interface.nav_to_module(browser, 'ikiwiki')
|
||||
|
||||
Reference in new issue
Block a user