Commit 6d8c7ad1 authored by James Valleroy's avatar James Valleroy

functional_tests: Test repro config backup and restore

Signed-off-by: James Valleroy's avatarJames Valleroy <>
parent ed55f62a
......@@ -15,7 +15,7 @@
# along with this program. If not, see <>.
@apps @sip
@apps @sip @backups
Feature: Repro SIP Server
Make audio and video calls.
......@@ -32,3 +32,12 @@ Scenario: Disable repro application
Given the repro application is enabled
When I disable the repro application
Then the repro service should not be running
Scenario: Backup and restore repro
Given the repro application is enabled
And repro has been configured
When I create a backup of the repro app data
And I delete the repro configuration
And I export the repro app data backup
And I restore the repro app data backup
Then the repro configuration should be restored
......@@ -96,3 +96,18 @@ def mediawiki_delete_main_page(browser):
@then('the mediawiki main page should be restored')
def mediawiki_verify_text(browser):
assert site.mediawiki_has_main_page(browser)
@given('repro has been configured')
def repro_configure(browser):
@when('I delete the repro configuration')
def repro_delete_config(browser):
@then('the repro configuration should be restored')
def repro_is_configured(browser):
assert site.repro_is_configured(browser)
......@@ -141,3 +141,24 @@ def mediawiki_has_main_page(browser):
content = browser.find_by_id('mw-content-text').first
return 'This page has been deleted.' not in content.text
def repro_configure(browser):
"""Configure repro."""
def repro_delete_config(browser):
"""Delete the repro config."""
def repro_is_configured(browser):
"""Check whether repro is configured."""
remove = browser.find_by_name('remove.freedombox.local')
return bool(remove)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment