tests: functional: Merge into main source hierarchy

- Add pytest hooks to ignore all functional tests if pytest_bdd is not
installed.

- Update pytest hooks to skip tests in file named 'test_functional.py' if
--include-functional argument is not provided.

- Move functional_tests/install.py into plinth/tests/functional and update
reference in Vagrantfile.

- Move scenario files into individual app folders. Rename them after the app
they are testing. Merge TODO items listed in todo.org into corresponding feature
files.

- Add test_functional.py in each app to build tests from the features file using
pytest_bdd.

- Move all step_definitions, support and data into plinth/tests/functional/.
Include all step_definitions from conftest.py. Update to relative imports
instead of absolute imports.

Tests performed:

- Run py.test-3 --collect-only shows all functional tests and lists 574 tests.
No errors show that name of feature files are correct. The number says that all
functional test features are included.

- Remove pytest_bdd (or modify the import name) and run py.test-3 --collect-only
skips collecting all functional tests and shows only 300+ tests.

- Run functional tests for a few apps with py.test-3 --include-functional -m
app. For storage, deluge.

- Run unit tests with py.test-3. Functional tests are listed by skipped.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
Sunil Mohan Adapa authored and Joseph Nuthalapati committed 2020-05-22 21:26:05 +05:30
1 parent 1bf3a27174
commit 80d67c2054
122 files changed
+444 -73

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@system @essential @service_discovery
Feature: Service Discovery
Configure service discovery.
Background:
Given I'm a logged in user
Scenario: Disable service discovery application
Given the service discovery application is enabled
When I disable the service discovery application
Then the service discovery service should not be running
Scenario: Enable service discovery application
Given the service discovery application is disabled
When I enable the service discovery application
Then the service discovery service should be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for avahi app.
"""
from pytest_bdd import scenarios
scenarios('avahi.feature')
@@ -0,0 +1,26 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@backups @system
Feature: Backups module
Create and restore backups.
Background:
Given I'm a logged in user
Given the bind application is installed
Scenario: Browser waits for redirect after restoring a backup
Given the bind application is enabled
When I create a backup of the bind app data with name test_backups
And I restore the bind app data backup with name test_backups
And I open the main page
And I wait for 5 seconds
Then the main page should be shown
Scenario: Download, upload and restore a backup
Given the bind application is enabled
When I set bind forwarders to 1.1.1.1
And I create a backup of the bind app data with name test_backups
And I set bind forwarders to 1.0.0.1
And I download the app data backup with name test_backups
And I restore the downloaded app data backup
Then bind forwarders should be 1.1.1.1
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for backups app.
"""
from pytest_bdd import scenarios
scenarios('backups.feature')
+49
View File
@@ -0,0 +1,49 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @bind
Feature: Bind Domain Name Server
Configure the Bind Domain Name Server.
Background:
Given I'm a logged in user
Given the bind application is installed
Scenario: Enable bind application
Given the bind application is disabled
When I enable the bind application
Then the bind service should be running
Scenario: Set bind forwarders
Given the bind application is enabled
And bind forwarders are set to 1.1.1.1
When I set bind forwarders to 1.1.1.1 1.0.0.1
Then bind forwarders should be 1.1.1.1 1.0.0.1
Scenario: Enable bind DNSSEC
Given the bind application is enabled
And bind DNSSEC is disabled
When I enable bind DNSSEC
Then bind DNSSEC should be enabled
Scenario: Disable bind DNSSEC
Given the bind application is enabled
And bind DNSSEC is disabled
When I disable bind DNSSEC
Then bind DNSSEC should be disabled
@backups
Scenario: Backup and restore bind
Given the bind application is enabled
When I set bind forwarders to 1.1.1.1
And I disable bind DNSSEC
And I create a backup of the bind app data with name test_bind
And I set bind forwarders to 1.0.0.1
And I enable bind DNSSEC
And I restore the bind app data backup with name test_bind
Then bind forwarders should be 1.1.1.1
And bind DNSSEC should be disabled
Scenario: Disable bind application
Given the bind application is enabled
When I disable the bind application
Then the bind service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for bind app.
"""
from pytest_bdd import scenarios
scenarios('bind.feature')
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@system
Feature: Server Administration
Run server administration application - Cockpit.
Background:
Given I'm a logged in user
Given the cockpit application is installed
Scenario: Enable cockpit application
Given the cockpit application is disabled
When I enable the cockpit application
Then the cockpit site should be available
Scenario: Disable cockpit application
Given the cockpit application is enabled
When I disable the cockpit application
Then the cockpit site should not be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for cockpit app.
"""
from pytest_bdd import scenarios
scenarios('cockpit.feature')
@@ -0,0 +1,24 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@system @essential @configuration
Feature: Configuration
Configure the system.
Background:
Given I'm a logged in user
Scenario: Change hostname
When I change the hostname to mybox
Then the hostname should be mybox
Scenario: Change domain name
When I change the domain name to mydomain.example
Then the domain name should be mydomain.example
Scenario: Change webserver home page
Given the syncthing application is installed
And the syncthing application is enabled
And the home page is syncthing
When I change the home page to plinth
Then the home page should be plinth
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for config app.
"""
from pytest_bdd import scenarios
scenarios('config.feature')
Whitespace-only changes.
@@ -0,0 +1,57 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @coquelicot @backups @skip
Feature: Coquelicot File Sharing
Run Coquelicot File Sharing server.
Background:
Given I'm a logged in user
Given the coquelicot application is installed
Scenario: Enable coquelicot application
Given the coquelicot application is disabled
When I enable the coquelicot application
Then the coquelicot service should be running
Scenario: Modify maximum upload size
Given the coquelicot application is enabled
When I modify the maximum file size of coquelicot to 256
Then the maximum file size of coquelicot should be 256
Scenario: Modify upload password
Given the coquelicot application is enabled
When I modify the coquelicot upload password to whatever123
Then I should be able to login to coquelicot with password whatever123
Scenario: Modify maximum upload size in disabled case
Given the coquelicot application is disabled
When I modify the maximum file size of coquelicot to 123
Then the coquelicot service should not be running
Scenario: Upload a file to coquelicot
Given the coquelicot application is enabled
And a sample local file
When I modify the coquelicot upload password to whatever123
And I upload the sample local file to coquelicot with password whatever123
And I download the uploaded file from coquelicot
Then contents of downloaded sample file should be same as sample local file
Scenario: Backup and restore coquelicot
Given the coquelicot application is enabled
When I modify the coquelicot upload password to beforebackup123
And I modify the maximum file size of coquelicot to 128
And I upload the sample local file to coquelicot with password beforebackup123
And I create a backup of the coquelicot app data with name test_coquelicot
And I modify the coquelicot upload password to afterbackup123
And I modify the maximum file size of coquelicot to 64
And I restore the coquelicot app data backup with name test_coquelicot
And I download the uploaded file from coquelicot
Then the coquelicot service should be running
And I should be able to login to coquelicot with password beforebackup123
And the maximum file size of coquelicot should be 128
And contents of downloaded sample file should be same as sample local file
Scenario: Disable coquelicot application
Given the coquelicot application is enabled
When I disable the coquelicot application
Then the coquelicot service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for coquelicot app.
"""
from pytest_bdd import scenarios
scenarios('coquelicot.feature')
@@ -0,0 +1,27 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @coturn @backups
Feature: Coturn STUN/TURN Server
Run the Coturn STUN/TURN server.
Background:
Given I'm a logged in user
And advanced mode is on
And the coturn application is installed
Scenario: Enable coturn application
Given the coturn application is disabled
When I enable the coturn application
Then the coturn service should be running
# TODO: Improve this by checking that secret and domain did not change
Scenario: Backup and restore coturn
Given the coturn application is enabled
When I create a backup of the coturn app data with name test_coturn
And I restore the coturn app data backup
Then the coturn service should be running with name test_coturn
Scenario: Disable coturn application
Given the coturn application is enabled
When I disable the coturn application
Then the coturn service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for coturn app.
"""
from pytest_bdd import scenarios
scenarios('coturn.feature')
@@ -0,0 +1,32 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@essential @date_and_time @system
Feature: Date and Time
Configure time zone and network time service.
Background:
Given I'm a logged in user
Scenario: Disable network time application
Given the network time application can be disabled
And the network time application is enabled
When I disable the network time application
Then the network time service should not be running
Scenario: Enable network time application
Given the network time application can be disabled
And the network time application is disabled
When I enable the network time application
Then the network time service should be running
Scenario: Set timezone
When I set the time zone to Africa/Abidjan
Then the time zone should be Africa/Abidjan
@backups
Scenario: Backup and restore datetime
When I set the time zone to Africa/Accra
And I create a backup of the datetime app data with name test_datetime
And I set the time zone to Africa/Cairo
And I restore the datetime app data backup with name test_datetime
Then the time zone should be Africa/Accra
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for datetime app.
"""
from pytest_bdd import scenarios
scenarios('datetime.feature')
@@ -0,0 +1,36 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @deluge
Feature: Deluge BitTorrent Client
Run the Deluge BitTorrent client.
Background:
Given I'm a logged in user
Given the deluge application is installed
Scenario: Enable deluge application
Given the deluge application is disabled
When I enable the deluge application
Then the deluge site should be available
Scenario: Upload a torrent to deluge
Given the deluge application is enabled
When all torrents are removed from deluge
And I upload a sample torrent to deluge
Then there should be 1 torrents listed in deluge
@backups
Scenario: Backup and restore deluge
Given the deluge application is enabled
When all torrents are removed from deluge
And I upload a sample torrent to deluge
And I create a backup of the deluge app data with name test_deluge
And all torrents are removed from deluge
And I restore the deluge app data backup with name test_deluge
Then the deluge service should be running
And there should be 1 torrents listed in deluge
Scenario: Disable deluge application
Given the deluge application is enabled
When I disable the deluge application
Then the deluge site should not be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for deluge app.
"""
from pytest_bdd import scenarios
scenarios('deluge.feature')
@@ -0,0 +1,23 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
# TODO Scenario: Configure GnuDIP service
# TODO Scenario: Configure noip.com service
# TODO Scenario: Configure selfhost.bz service
# TODO Scenario: Configure freedns.afraid.org service
# TODO Scenario: Configure other update URL service
@apps @dynamicdns
Feature: Dynamic DNS Client
Update public IP to a GnuDIP server.
Background:
Given I'm a logged in user
And the dynamicdns application is installed
@backups
Scenario: Backup and restore configuration
Given dynamicdns is configured
When I create a backup of the dynamicdns app data with name test_dynamicdns
And I change the dynamicdns configuration
And I restore the dynamicdns app data backup with name test_dynamicdns
Then dynamicdns should have the original configuration
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for dynamicdns app.
"""
from pytest_bdd import scenarios
scenarios('dynamicdns.feature')
@@ -0,0 +1,41 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
# TODO Check service
# TODO Check domain name display
@apps @ejabberd
Feature: Ejabberd Chat Server
Run ejabberd chat server.
Background:
Given I'm a logged in user
Given the ejabberd application is installed
Scenario: Enable ejabberd application
Given the ejabberd application is disabled
When I enable the ejabberd application
Then the ejabberd service should be running
Scenario: Enable message archive management
Given the ejabberd application is enabled
When I enable message archive management
Then the ejabberd service should be running
Scenario: Disable message archive management
Given the ejabberd application is enabled
When I disable message archive management
Then the ejabberd service should be running
@backups
Scenario: Backup and restore ejabberd
Given the ejabberd application is enabled
And I have added a contact to my roster
When I create a backup of the ejabberd app data with name test_ejabberd
And I delete the contact from my roster
And I restore the ejabberd app data backup with name test_ejabberd
Then I should have a contact on my roster
Scenario: Disable ejabberd application
Given the ejabberd application is enabled
When I disable the ejabberd application
Then the ejabberd service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for ejabberd app.
"""
from pytest_bdd import scenarios
scenarios('ejabberd.feature')
@@ -0,0 +1,93 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @gitweb @sso
Feature: gitweb Simple Git Hosting
Git web interface.
Background:
Given I'm a logged in user
And the gitweb application is installed
Scenario: Enable gitweb application
Given the gitweb application is disabled
When I enable the gitweb application
Then the gitweb site should be available
Scenario: Create public repository
Given the gitweb application is enabled
And a public repository that doesn't exist
When I create the repository
Then the repository should be listed as a public
And the repository should be listed on gitweb
Scenario: Create private repository
Given the gitweb application is enabled
And a private repository that doesn't exist
When I create the repository
Then the repository should be listed as a private
And the repository should be listed on gitweb
Scenario: Delete repository
Given the gitweb application is enabled
And a repository
When I delete the repository
Then the repository should not be listed
@backups
Scenario: Backup and restore gitweb
Given the gitweb application is enabled
And a repository
When I create a backup of the gitweb app data with name test_gitweb
And I delete the repository
And I restore the gitweb app data backup with name test_gitweb
Then the repository should be restored
And the gitweb site should be available
Scenario: Public gitweb site shows only public repositories
Given the gitweb application is enabled
And both public and private repositories exist
When I log out
Then the public repository should be listed on gitweb
And the private repository should not be listed on gitweb
Scenario: Gitweb is not public if there are only private repositories
Given the gitweb application is enabled
And at least one repository exists
And all repositories are private
When I log out
And I access gitweb application
Then I should be prompted for login
And gitweb app should not be visible on the front page
Scenario: Edit repository metadata
Given the gitweb application is enabled
And a public repository that doesn't exist
And a repository metadata:
description: Test Description
owner: Test Owner
access: private
When I create the repository
And I set the metadata of the repository
Then the metadata of the repository should be as set
Scenario: Access public repository with git client
Given the gitweb application is enabled
And a public repository
When using a git client
Then the repository should be publicly readable
And the repository should not be publicly writable
And the repository should be privately writable
Scenario: Access private repository with git client
Given the gitweb application is enabled
And a private repository
When using a git client
Then the repository should not be publicly readable
And the repository should not be publicly writable
And the repository should be privately readable
And the repository should be privately writable
Scenario: Disable gitweb application
Given the gitweb application is enabled
When I disable the gitweb application
Then the gitweb site should not be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for gitweb app.
"""
from pytest_bdd import scenarios
scenarios('gitweb.feature')
+18
View File
@@ -0,0 +1,18 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
# TODO Scenario: Visit the wiki
# TODO Scenario: Visit the mailing list
# TODO Scenario: Visit the IRC channel
# TODO Scenario: View the manual
# TODO Scenario: View the about page
@help @system @essential
Feature: Help module
Show various information about the system.
Background:
Given I'm a logged in user
Scenario: Status logs
When I go to the status logs page
Then status logs should be shown
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for help app.
"""
from pytest_bdd import scenarios
scenarios('help.feature')
+19
View File
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @i2p
Feature: I2P Anonymity Network
Manage I2P configuration.
Background:
Given I'm a logged in user
Given the i2p application is installed
Scenario: Enable i2p application
Given the i2p application is disabled
When I enable the i2p application
Then the i2p service should be running
Scenario: Disable i2p application
Given the i2p application is enabled
When I disable the i2p application
Then the i2p service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for i2p app.
"""
from pytest_bdd import scenarios
scenarios('i2p.feature')
@@ -0,0 +1,28 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @ikiwiki
Feature: ikiwiki Wiki and Blog
Manage wikis and blogs.
Background:
Given I'm a logged in user
Given the wiki application is installed
Scenario: Enable wiki application
Given the wiki application is disabled
When I enable the wiki application
Then the wiki site should be available
@backups
Scenario: Backup and restore wiki
Given the wiki application is enabled
When there is an ikiwiki wiki
And I create a backup of the ikiwiki app data with name test_ikiwiki
And I delete the ikiwiki wiki
And I restore the ikiwiki app data backup with name test_ikiwiki
Then the ikiwiki wiki should be restored
Scenario: Disable wiki application
Given the wiki application is enabled
When I disable the wiki application
Then the wiki site should not be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for ikiwiki app.
"""
from pytest_bdd import scenarios
scenarios('ikiwiki.feature')
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @infinoted
Feature: Infinoted Collaborative Text Editor
Run Gobby Server - Infinoted
Background:
Given I'm a logged in user
Given the infinoted application is installed
Scenario: Enable infinoted application
Given the infinoted application is disabled
When I enable the infinoted application
Then the infinoted service should be running
Scenario: Disable infinoted application
Given the infinoted application is enabled
When I disable the infinoted application
Then the infinoted service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for infinoted app.
"""
from pytest_bdd import scenarios
scenarios('infinoted.feature')
+19
View File
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @jsxc
Feature: JSXC XMPP Client
Run the JSXC XMPP client.
Background:
Given I'm a logged in user
Scenario: Install jsxc application
Given the jsxc application is installed
Then the jsxc site should be available
@backups
Scenario: Backup and restore jsxc
Given the jsxc application is installed
When I create a backup of the jsxc app data with name test_jsxc
And I restore the jsxc app data backup with name test_jsxc
Then the jsxc site should be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for jsxc app.
"""
from pytest_bdd import scenarios
scenarios('jsxc.feature')
@@ -0,0 +1,21 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @matrixsynapse
Feature: Matrix Synapse VoIP and Chat Server
Run Matrix Synapse server
Background:
Given I'm a logged in user
Given the domain name is set to mydomain.example
Given the matrixsynapse application is installed
Given the domain name for matrixsynapse is set to mydomain.example
Scenario: Enable matrixsynapse application
Given the matrixsynapse application is disabled
When I enable the matrixsynapse application
Then the matrixsynapse service should be running
Scenario: Disable matrixsynapse application
Given the matrixsynapse application is enabled
When I disable the matrixsynapse application
Then the matrixsynapse service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for matrixsynapse app.
"""
from pytest_bdd import scenarios
scenarios('matrixsynapse.feature')
Whitespace-only changes.
@@ -0,0 +1,79 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @mediawiki
Feature: MediaWiki Wiki Engine
Manage wikis, multimedia and more.
Background:
Given I'm a logged in user
Given the mediawiki application is installed
Scenario: Enable mediawiki application
Given the mediawiki application is disabled
When I enable the mediawiki application
Then the mediawiki site should be available
Scenario: Enable public registrations
Given the mediawiki application is enabled
When I enable mediawiki public registrations
Then the mediawiki site should allow creating accounts
Scenario: Disable public registrations
Given the mediawiki application is enabled
When I disable mediawiki public registrations
Then the mediawiki site should not allow creating accounts
Scenario: Enable private mode
Given the mediawiki application is enabled
When I enable mediawiki private mode
Then the mediawiki site should not allow creating accounts
Then the mediawiki site should not allow anonymous reads and writes
Scenario: Disable private mode
Given the mediawiki application is enabled
When I disable mediawiki private mode
Then the mediawiki site should allow anonymous reads and writes
Scenario: Enabling private mode disables public registrations
Given the mediawiki application is enabled
When I enable mediawiki public registrations
And I enable mediawiki private mode
Then the mediawiki site should not allow creating accounts
# Requires JS
Scenario: Enabling public registrations disables private mode
Given the mediawiki application is enabled
When I enable mediawiki private mode
And I enable mediawiki public registrations
Then the mediawiki site should allow creating accounts
# Requires JS
Scenario: Logged in user can see upload files option
Given the mediawiki application is enabled
When I set the mediawiki admin password to whatever123
Then I should see the Upload File option in the side pane when logged in with credentials admin and whatever123
Scenario: Upload images
Given the mediawiki application is enabled
When I upload an image named noise.png to mediawiki with credentials admin and whatever123
Then there should be Noise.png image
Scenario: Upload SVG image
Given the mediawiki application is enabled
When I upload an image named apps-background.svg to mediawiki with credentials admin and whatever123
Then there should be Apps-background.svg image
@backups
Scenario: Backup and restore mediawiki
Given the mediawiki application is enabled
When I create a backup of the mediawiki app data with name test_mediawiki
When I enable mediawiki public registrations
And I delete the mediawiki main page
And I restore the mediawiki app data backup with name test_mediawiki
Then the mediawiki main page should be restored
Then the mediawiki site should allow creating accounts
Scenario: Disable mediawiki application
Given the mediawiki application is enabled
When I disable the mediawiki application
Then the mediawiki site should not be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for mediawiki app.
"""
from pytest_bdd import scenarios
scenarios('mediawiki.feature')
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @minetest
Feature: Minetest Block Sandbox
Run the Minetest server
Background:
Given I'm a logged in user
Given the minetest application is installed
Scenario: Enable minetest application
Given the minetest application is disabled
When I enable the minetest application
Then the minetest service should be running
Scenario: Disable minetest application
Given the minetest application is enabled
When I disable the minetest application
Then the minetest service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for minetest app.
"""
from pytest_bdd import scenarios
scenarios('minetest.feature')
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @minidlna
Feature: minidlna Simple Media Server
Run miniDLNA media server
Background:
Given I'm a logged in user
And the minidlna application is installed
Scenario: Enable minidlna application
Given the minidlna application is disabled
When I enable the minidlna application
Then the minidlna service should be running
Scenario: Disable minidlna application
Given the minidlna application is enabled
When I disable the minidlna application
Then the minidlna service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for minidlna app.
"""
from pytest_bdd import scenarios
scenarios('minidlna.feature')
Whitespace-only changes.
@@ -0,0 +1,38 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @mldonkey @sso
Feature: MLDonkey eDonkey Network Client
Run the eDonkey Network client.
Background:
Given I'm a logged in user
Given the mldonkey application is installed
Scenario: Enable mldonkey application
Given the mldonkey application is disabled
When I enable the mldonkey application
Then the mldonkey service should be running
Then the mldonkey site should be available
Scenario: Upload an ed2k file to mldonkey
Given the mldonkey application is enabled
When all ed2k files are removed from mldonkey
And I upload a sample ed2k file to mldonkey
Then there should be 1 ed2k files listed in mldonkey
@backups
Scenario: Backup and restore mldonkey
Given the mldonkey application is enabled
When all ed2k files are removed from mldonkey
And I upload a sample ed2k file to mldonkey
And I create a backup of the mldonkey app data with name test_mldonkey
And all ed2k files are removed from mldonkey
And I restore the mldonkey app data backup with name test_mldonkey
Then the mldonkey service should be running
And there should be 1 ed2k files listed in mldonkey
Scenario: Disable mldonkey application
Given the mldonkey application is enabled
When I disable the mldonkey application
Then the mldonkey service should not be running
Then the mldonkey site should not be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for mldonkey app.
"""
from pytest_bdd import scenarios
scenarios('mldonkey.feature')
@@ -0,0 +1,36 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @monkeysphere
Feature: Monkeysphere
Import and publish OpenPGP keys for SSH and HTTPS keys
Background:
Given I'm a logged in user
And advanced mode is on
And the monkeysphere application is installed
And the domain name is set to mydomain.example
Scenario: Import SSH keys
When I import SSH key for mydomain.example in monkeysphere
Then the SSH key should imported for mydomain.example in monkeysphere
Scenario: Import HTTPS keys
When I import HTTPS key for mydomain.example in monkeysphere
Then the HTTPS key should imported for mydomain.example in monkeysphere
Scenario: Publish SSH keys
Given the SSH key for mydomain.example is imported in monkeysphere
Then I should be able to publish SSH key for mydomain.example in monkeysphere
Scenario: Publish HTTPS keys
Given the HTTPS key for mydomain.example is imported in monkeysphere
Then I should be able to publish HTTPS key for mydomain.example in monkeysphere
@backups
Scenario: Backup and restore monkeysphere
When I import SSH key for mydomain.example in monkeysphere
And I import HTTPS key for mydomain.example in monkeysphere
And I create a backup of the monkeysphere app data with name test_monkeysphere
And I restore the monkeysphere app data backup with name test_monkeysphere
Then the SSH key should imported for mydomain.example in monkeysphere
And the HTTPS key should imported for mydomain.example in monkeysphere
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for monkeysphere app.
"""
from pytest_bdd import scenarios
scenarios('monkeysphere.feature')
@@ -0,0 +1,28 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @mumble
Feature: Mumble Voice Chat
Run Mumble voice chat server.
Background:
Given I'm a logged in user
Given the mumble application is installed
Scenario: Enable mumble application
Given the mumble application is disabled
When I enable the mumble application
Then the mumble service should be running
# TODO: Improve this to actually check that data such as rooms, identity or
# certificates are restored.
@backups
Scenario: Backup and restore mumble
Given the mumble application is enabled
When I create a backup of the mumble app data with name test_mumble
And I restore the mumble app data backup with name test_mumble
Then the mumble service should be running
Scenario: Disable mumble application
Given the mumble application is enabled
When I disable the mumble application
Then the mumble service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for mumble app.
"""
from pytest_bdd import scenarios
scenarios('mumble.feature')
@@ -0,0 +1,32 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @openvpn
Feature: OpenVPN - Virtual Private Network
Setup and configure OpenVPN
Background:
Given I'm a logged in user
Given the openvpn application is installed
Given the openvpn application is setup
Scenario: Enable openvpn application
Given the openvpn application is disabled
When I enable the openvpn application
Then the openvpn service should be running
Scenario: Download openvpn profile
Given the openvpn application is enabled
Then the openvpn profile should be downloadable
@backups
Scenario: Backup and restore openvpn
Given the openvpn application is enabled
And I download openvpn profile
When I create a backup of the openvpn app data with name test_openvpn
And I restore the openvpn app data backup with name test_openvpn
Then the openvpn profile downloaded should be same as before
Scenario: Disable openvpn application
Given the openvpn application is enabled
When I disable the openvpn application
Then the openvpn service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for openvpn app.
"""
from pytest_bdd import scenarios
scenarios('openvpn.feature')
@@ -0,0 +1,39 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
# TODO Scenario: Enable standard services
# TODO Scenario: Disable standard services
# TODO Scenario: Add custom service
# TODO Scenario: Delete custom service
@apps @pagekite
Feature: Pagekite Public Visibility
Configure Pagekite public visitbility server.
Background:
Given I'm a logged in user
Given the pagekite application is installed
Scenario: Enable pagekite application
Given the pagekite application is disabled
When I enable the pagekite application
Then the pagekite service should be running
Scenario: Configure pagekite application
Given the pagekite application is enabled
When I configure pagekite with host pagekite.example.com, port 8080, kite name mykite.example.com and kite secret mysecret
Then pagekite should be configured with host pagekite.example.com, port 8080, kite name mykite.example.com and kite secret mysecret
@backups
Scenario: Backup and restore pagekite
Given the pagekite application is enabled
When I configure pagekite with host beforebackup.example.com, port 8081, kite name beforebackup.example.com and kite secret beforebackupsecret
And I create a backup of the pagekite app data with name test_pagekite
And I configure pagekite with host afterbackup.example.com, port 8082, kite name afterbackup.example.com and kite secret afterbackupsecret
And I restore the pagekite app data backup with name test_pagekite
Then the pagekite service should be running
And pagekite should be configured with host beforebackup.example.com, port 8081, kite name beforebackup.example.com and kite secret beforebackupsecret
Scenario: Disable pagekite application
Given the pagekite application is enabled
When I disable the pagekite application
Then the pagekite service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for pagekite app.
"""
from pytest_bdd import scenarios
scenarios('pagekite.feature')
@@ -0,0 +1,20 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@system @performance
Feature: Performance - system monitoring
Run the Performance Co-Pilot app.
Background:
Given I'm a logged in user
And advanced mode is on
And the performance application is installed
Scenario: Enable performance application
Given the performance application is disabled
When I enable the performance application
Then the performance service should be running
Scenario: Disable performance application
Given the performance application is enabled
When I disable the performance application
Then the performance service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for performance app.
"""
from pytest_bdd import scenarios
scenarios('performance.feature')
@@ -0,0 +1,26 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @privoxy
Feature: Privoxy Web Proxy
Proxy web connections for enhanced privacy.
Background:
Given I'm a logged in user
Given the privoxy application is installed
Scenario: Enable privoxy application
Given the privoxy application is disabled
When I enable the privoxy application
Then the privoxy service should be running
@backups
Scenario: Backup and restore privoxy
Given the privoxy application is enabled
When I create a backup of the privoxy app data with name test_privoxy
And I restore the privoxy app data backup with name test_privoxy
Then the privoxy service should be running
Scenario: Disable privoxy application
Given the privoxy application is enabled
When I disable the privoxy application
Then the privoxy service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for privoxy app.
"""
from pytest_bdd import scenarios
scenarios('privoxy.feature')
@@ -0,0 +1,27 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @quassel
Feature: Quassel IRC Client
Run Quassel core.
Background:
Given I'm a logged in user
Given the quassel application is installed
Scenario: Enable quassel application
Given the quassel application is disabled
When I enable the quassel application
Then the quassel service should be running
# TODO: Improve this to actually check that data configured servers is restored.
@backups
Scenario: Backup and restore quassel
Given the quassel application is enabled
When I create a backup of the quassel app data with name test_quassel
And I restore the quassel app data backup with name test_quassel
Then the quassel service should be running
Scenario: Disable quassel application
Given the quassel application is enabled
When I disable the quassel application
Then the quassel service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for quassel app.
"""
from pytest_bdd import scenarios
scenarios('quassel.feature')
@@ -0,0 +1,44 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @radicale
Feature: Radicale Calendar and Addressbook
Configure CalDAV/CardDAV server.
Background:
Given I'm a logged in user
Given the radicale application is installed
Scenario: Enable radicale application
Given the radicale application is disabled
When I enable the radicale application
Then the radicale service should be running
And the calendar should be available
And the addressbook should be available
Scenario: Owner-only access rights
Given the radicale application is enabled
And the access rights are set to "any user can view, but only the owner can make changes"
When I change the access rights to "only the owner can view or make changes"
Then the radicale service should be running
And the access rights should be "only the owner can view or make changes"
Scenario: Owner-write access rights
Given the radicale application is enabled
And the access rights are set to "only the owner can view or make changes"
When I change the access rights to "any user can view, but only the owner can make changes"
Then the radicale service should be running
And the access rights should be "any user can view, but only the owner can make changes"
Scenario: Authenticated access rights
Given the radicale application is enabled
And the access rights are set to "only the owner can view or make changes"
When I change the access rights to "any user can view or make changes"
Then the radicale service should be running
And the access rights should be "any user can view or make changes"
Scenario: Disable radicale application
Given the radicale application is enabled
When I disable the radicale application
Then the radicale service should not be running
And the calendar should not be available
And the addressbook should not be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for radicale app.
"""
from pytest_bdd import scenarios
scenarios('radicale.feature')
@@ -0,0 +1,26 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @roundcube
Feature: Roundcube Email Client
Run webmail client.
Background:
Given I'm a logged in user
Given the roundcube application is installed
Scenario: Enable roundcube application
Given the roundcube application is disabled
When I enable the roundcube application
Then the roundcube site should be available
@backups
Scenario: Backup and restore roundcube
Given the roundcube application is enabled
When I create a backup of the roundcube app data with name test_roundcube
And I restore the roundcube app data backup with name test_roundcube
Then the roundcube site should be available
Scenario: Disable roundcube application
Given the roundcube application is enabled
When I disable the roundcube application
Then the roundcube site should not be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for roundcube app.
"""
from pytest_bdd import scenarios
scenarios('roundcube.feature')
+53
View File
@@ -0,0 +1,53 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @samba
Feature: Samba File Sharing
Configure samba file sharing service.
Background:
Given I'm a logged in user
Given the network device is in the internal firewall zone
Given the samba application is installed
Scenario: Enable samba application
Given the samba application is disabled
When I enable the samba application
Then the samba service should be running
Scenario: Enable open samba share
Given the samba application is enabled
When I enable the open samba share
Then I can write to the open samba share
And a guest user can write to the open samba share
Scenario: Enable group samba share
Given the samba application is enabled
When I enable the group samba share
Then I can write to the group samba share
And a guest user can't access the group samba share
Scenario: Enable home samba share
Given the samba application is enabled
When I enable the home samba share
Then I can write to the home samba share
And a guest user can't access the home samba share
Scenario: Disable open samba share
Given the samba application is enabled
When I disable the open samba share
Then the open samba share should not be available
@backups
Scenario: Backup and restore samba
Given the samba application is enabled
When I enable the home samba share
And I create a backup of the samba app data with name test_samba
And I disable the home samba share
And I restore the samba app data backup with name test_samba
Then the samba service should be running
And I can write to the home samba share
Scenario: Disable samba application
Given the samba application is enabled
When I disable the samba application
Then the samba service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for samba app.
"""
from pytest_bdd import scenarios
scenarios('samba.feature')
Whitespace-only changes.
+49
View File
@@ -0,0 +1,49 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @searx @sso
Feature: Searx Web Search
Run Searx metasearch engine.
Background:
Given I'm a logged in user
Given the searx application is installed
Scenario: Enable searx application
Given the searx application is disabled
When I enable the searx application
Then the searx site should be available
@backups
Scenario: Backup and restore searx
Given the searx application is enabled
When I create a backup of the searx app data with name test_searx
And I restore the searx app data backup with name test_searx
Then the searx site should be available
Scenario: Enable public access
Given the searx application is enabled
When I enable public access in searx
And I log out
Then searx app should be visible on the front page
And the searx site should be available
Scenario: Disable public access
Given the searx application is enabled
When I disable public access in searx
And I log out
Then searx app should not be visible on the front page
And the searx site should not be available
Scenario: Preserve public access setting
Given the searx application is enabled
And public access is enabled in searx
When I disable the searx application
And I enable the searx application
And I log out
Then searx app should be visible on the front page
And the searx site should be available
Scenario: Disable searx application
Given the searx application is enabled
When I disable the searx application
Then the searx site should not be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for searx app.
"""
from pytest_bdd import scenarios
scenarios('searx.feature')
@@ -0,0 +1,25 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@security @essential @system
Feature: Security
Configure security options.
Background:
Given I'm a logged in user
Scenario: Disable restricted console logins
Given restricted console logins are enabled
When I disable restricted console logins
Then restricted console logins should be disabled
Scenario: Backup and restore security
When I enable restricted console logins
And I create a backup of the security app data with name test_security
And I disable restricted console logins
And I restore the security app data backup with name test_security
Then restricted console logins should be enabled
Scenario: Enable restricted console logins
Given restricted console logins are disabled
When I enable restricted console logins
Then restricted console logins should be enabled
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for security app.
"""
from pytest_bdd import scenarios
scenarios('security.feature')
@@ -0,0 +1,30 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @shadowsocks
Feature: Shadowsocks Socks5 Proxy
Run the Shadowsocks Socks5 proxy client.
Background:
Given I'm a logged in user
Given the shadowsocks application is installed
Given the shadowsocks application is configured
Scenario: Enable shadowsocks application
Given the shadowsocks application is disabled
When I enable the shadowsocks application
Then the shadowsocks service should be running
@backups
Scenario: Backup and restore shadowsocks
Given the shadowsocks application is enabled
When I configure shadowsocks with server example.com and password beforebackup123
And I create a backup of the shadowsocks app data with name test_shadowsocks
And I configure shadowsocks with server example.org and password afterbackup123
And I restore the shadowsocks app data backup with name test_shadowsocks
Then the shadowsocks service should be running
And shadowsocks should be configured with server example.com and password beforebackup123
Scenario: Disable shadowsocks application
Given the shadowsocks application is enabled
When I disable the shadowsocks application
Then the shadowsocks service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for shadowsocks app.
"""
from pytest_bdd import scenarios
scenarios('shadowsocks.feature')
Whitespace-only changes.
@@ -0,0 +1,52 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @sharing
Feature: Sharing
Share server folders over HTTP, etc.
Background:
Given I'm a logged in user
Scenario: Add new share
Given share tmp is not available
When I add a share tmp from path /tmp for admin
Then the share tmp should be listed from path /tmp for admin
And the share tmp should be accessible
Scenario: Edit a share
Given share tmp is not available
When I remove share boot
And I add a share tmp from path /tmp for admin
And I edit share tmp to boot from path /boot for admin
Then the share tmp should not be listed
And the share tmp should not exist
And the share boot should be listed from path /boot for admin
And the share boot should be accessible
Scenario: Remove a share
When I remove share tmp
And I add a share tmp from path /tmp for admin
And I remove share tmp
Then the share tmp should not be listed
And the share tmp should not exist
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 the share tmp should not be accessible
Scenario: Public share
When I edit share tmp to be public
And I log out
Then the share_tmp site should be available
@backups
Scenario: Backup and restore sharing
Given share tmp is not available
When I add a share tmp from path /tmp for admin
And I create a backup of the sharing app data with name test_sharing
And I remove share tmp
And I restore the sharing app data backup with name test_sharing
Then the share tmp should be listed from path /tmp for admin
And the share tmp should be accessible
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for sharing app.
"""
from pytest_bdd import scenarios
scenarios('sharing.feature')
@@ -0,0 +1,27 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@system @snapshot
Feature: Storage Snapshots
Run storage snapshots application - Snapper.
Background:
Given I'm a logged in user
Given the snapshot application is installed
Scenario: Create a snapshot
Given the list of snapshots is empty
When I manually create a snapshot
Then there should be 1 snapshot in the list
Scenario: Configure snapshots
Given snapshots are configured with free space 30, timeline snapshots disabled, software snapshots disabled, hourly limit 10, daily limit 3, weekly limit 2, monthly limit 2, yearly limit 0
When I configure snapshots with free space 20, timeline snapshots enabled, software snapshots enabled, hourly limit 3, daily limit 2, weekly limit 1, monthly limit 1, yearly limit 1
Then snapshots should be configured with free space 20, timeline snapshots enabled, software snapshots enabled, hourly limit 3, daily limit 2, weekly limit 1, monthly limit 1, yearly limit 1
@backups
Scenario: Backup and restore snapshot
When I configure snapshots with free space 30, timeline snapshots disabled, software snapshots disabled, hourly limit 10, daily limit 3, weekly limit 2, monthly limit 2, yearly limit 0
And I create a backup of the snapshot app data with name test_storage_snapshots
And I configure snapshots with free space 20, timeline snapshots enabled, software snapshots enabled, hourly limit 3, daily limit 2, weekly limit 1, monthly limit 1, yearly limit 1
And I restore the snapshot app data backup with name test_storage_snapshots
Then snapshots should be configured with free space 30, timeline snapshots disabled, software snapshots disabled, hourly limit 10, daily limit 3, weekly limit 2, monthly limit 2, yearly limit 0
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for snapshot app.
"""
from pytest_bdd import scenarios
scenarios('snapshot.feature')
+28
View File
@@ -0,0 +1,28 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @ssh
Feature: Secure Shell Server
Run secure shell server.
Background:
Given I'm a logged in user
Given the ssh application is installed
Scenario: Enable ssh application
Given the ssh application is disabled
When I enable the ssh application
Then the ssh service should be running
Scenario: Disable ssh application
Given the ssh application is enabled
When I disable the ssh application
Then the ssh service should not be running
# TODO: Improve this to actually check that earlier ssh certificate has been
# restored.
@backups
Scenario: Backup and restore ssh
Given the ssh application is enabled
When I create a backup of the ssh app data with name test_ssh
And I restore the ssh app data backup with name test_ssh
Then the ssh service should be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for ssh app.
"""
from pytest_bdd import scenarios
scenarios('ssh.feature')
Whitespace-only changes.
+20
View File
@@ -0,0 +1,20 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@sso @essential @system
Feature: Single Sign On
Test Single Sign On features.
Background:
Given I'm a logged in user
Given the syncthing application is installed
Given the syncthing application is enabled
Scenario: Logged out Plinth user cannot access Syncthing web interface
Given I'm a logged out user
When I access syncthing application
Then I should be prompted for login
Scenario: Logged in Plinth user can access Syncthing web interface
When I access syncthing application
Then the syncthing site should be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for sso app.
"""
from pytest_bdd import scenarios
scenarios('sso.feature')
@@ -0,0 +1,12 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@system @storage @essential
Feature: Storage
Show information about the disks.
Background:
Given I'm a logged in user
Scenario: List disks
Given I'm on the storage page
Then the root disk should be shown
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for storage app.
"""
from pytest_bdd import scenarios
scenarios('storage.feature')
Whitespace-only changes.
@@ -0,0 +1,41 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @syncthing @sso
Feature: Syncthing File Synchronization
Run Syncthing File Synchronization server.
Background:
Given I'm a logged in user
Given the syncthing application is installed
Scenario: Enable syncthing application
Given the syncthing application is disabled
When I enable the syncthing application
Then the syncthing service should be running
Scenario: Add a syncthing folder
Given the syncthing application is enabled
And syncthing folder Test is not present
When I add a folder /tmp as syncthing folder Test
Then syncthing folder Test should be present
Scenario: Remove a syncthing folder
Given the syncthing application is enabled
And folder /tmp is present as syncthing folder Test
When I remove syncthing folder Test
Then syncthing folder Test should not be present
@backups
Scenario: Backup and restore syncthing
Given the syncthing application is enabled
And syncthing folder Test is not present
When I add a folder /tmp as syncthing folder Test
And I create a backup of the syncthing app data with name test_syncthing
And I remove syncthing folder Test
And I restore the syncthing app data backup with name test_syncthing
Then syncthing folder Test should be present
Scenario: Disable syncthing application
Given the syncthing application is enabled
When I disable the syncthing application
Then the syncthing service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for syncthing app.
"""
from pytest_bdd import scenarios
scenarios('syncthing.feature')
Whitespace-only changes.
+53
View File
@@ -0,0 +1,53 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
# TODO: When tahoe-lafs is restarted, it leaves a .gnupg folder in
# /var/lib/tahoe-lafs and failes to start in the next run. Enable tests after
# this is fixed.
@apps @tahoe @skip
Feature: Tahoe-LAFS distribute file storage
Run the Tahoe distribute file storage server
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
Scenario: Enable tahoe application
Given the tahoe application is disabled
When I enable the tahoe application
Then the tahoe service should be running
Scenario: Default tahoe introducers
Given the tahoe application is enabled
Then mydomain.example should be a tahoe local introducer
And mydomain.example should be a tahoe connected introducer
Scenario: Add tahoe introducer
Given the tahoe application is enabled
And anotherdomain.example is not a tahoe introducer
When I add anotherdomain.example as a tahoe introducer
Then anotherdomain.example should be a tahoe connected introducer
Scenario: Remove tahoe introducer
Given the tahoe application is enabled
And anotherdomain.example is a tahoe introducer
When I remove anotherdomain.example as a tahoe introducer
Then anotherdomain.example should not be a tahoe connected introducer
@backups
Scenario: Backup and restore tahoe
Given the tahoe application is enabled
And backupdomain.example is a tahoe introducer
When I create a backup of the tahoe app data with name test_tahoe
And I remove backupdomain.example as a tahoe introducer
And I restore the tahoe app data backup with name test_tahoe
Then the tahoe service should be running
And backupdomain.example should be a tahoe connected introducer
Scenario: Disable tahoe application
Given the tahoe application is enabled
When I disable the tahoe application
Then the tahoe service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for tahoe app.
"""
from pytest_bdd import scenarios
scenarios('tahoe.feature')
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for tor app.
"""
from pytest_bdd import scenarios
scenarios('tor.feature')
+60
View File
@@ -0,0 +1,60 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @tor
Feature: Tor Anonymity Network
Manage Tor configuration.
Background:
Given I'm a logged in user
Given the tor application is installed
Scenario: Enable tor application
Given the tor application is disabled
When I enable the tor application
Then the tor service should be running
Scenario: Set tor relay configuration
Given tor relay is disabled
When I enable tor relay
Then tor relay should be enabled
And tor orport port should be displayed
Scenario: Set tor bridge relay configuration
Given tor bridge relay is disabled
When I enable tor bridge relay
Then tor bridge relay should be enabled
And tor obfs3 port should be displayed
And tor obfs4 port should be displayed
Scenario: Set tor hidden services configuration
Given tor hidden services are disabled
When I enable tor hidden services
Then tor hidden services should be enabled
And tor hidden services information should be displayed
Scenario: Set download software packages over tor
Given download software packages over tor is enabled
When I disable download software packages over tor
Then download software packages over tor should be disabled
# TODO: Test more thoroughly by checking same hidden service is restored and by
# actually connecting using Tor.
@backups
Scenario: Backup and restore tor
Given the tor application is enabled
And tor relay is enabled
And tor bridge relay is enabled
And tor hidden services are enabled
When I create a backup of the tor app data with name test_tor
And I disable tor relay
And I disable tor hidden services
And I restore the tor app data backup with name test_tor
Then the tor service should be running
And tor relay should be enabled
And tor bridge relay should be enabled
And tor hidden services should be enabled
Scenario: Disable tor application
Given the tor application is enabled
When I disable the tor application
Then the tor service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for transmission app.
"""
from pytest_bdd import scenarios
scenarios('transmission.feature')
@@ -0,0 +1,36 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @transmission @sso
Feature: Transmission BitTorrent Client
Run the Transmission BitTorrent client.
Background:
Given I'm a logged in user
Given the transmission application is installed
Scenario: Enable transmission application
Given the transmission application is disabled
When I enable the transmission application
Then the transmission site should be available
Scenario: Upload a torrent to transmission
Given the transmission application is enabled
When all torrents are removed from transmission
And I upload a sample torrent to transmission
Then there should be 1 torrents listed in transmission
@backups
Scenario: Backup and restore transmission
Given the transmission application is enabled
When all torrents are removed from transmission
And I upload a sample torrent to transmission
And I create a backup of the transmission app data with name test_transmission
And all torrents are removed from transmission
And I restore the transmission app data backup with name test_transmission
Then the transmission service should be running
And there should be 1 torrents listed in transmission
Scenario: Disable transmission application
Given the transmission application is enabled
When I disable the transmission application
Then the transmission site should not be available
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for ttrss app.
"""
from pytest_bdd import scenarios
scenarios('ttrss.feature')
+29
View File
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@apps @ttrss @sso
Feature: TT-RSS News Feed Reader
Run TT-RSS News Feed Reader.
Background:
Given I'm a logged in user
Given the ttrss application is installed
Scenario: Enable ttrss application
Given the ttrss application is disabled
When I enable the ttrss application
Then the ttrss service should be running
@backups
Scenario: Backup and restore ttrss
Given the ttrss application is enabled
And I subscribe to a feed in ttrss
When I create a backup of the ttrss app data with name test_ttrss
And I unsubscribe from the feed in ttrss
And I restore the ttrss app data backup with name test_ttrss
Then the ttrss service should be running
And I should be subscribed to the feed in ttrss
Scenario: Disable ttrss application
Given the ttrss application is enabled
When I disable the ttrss application
Then the ttrss service should not be running
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for upgrades app.
"""
from pytest_bdd import scenarios
scenarios('upgrades.feature')
@@ -0,0 +1,26 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
@essential @upgrades @system
Feature: Software Upgrades
Configure automatic software upgrades
Background:
Given I'm a logged in user
Scenario: Enable automatic upgrades
Given automatic upgrades are disabled
When I enable automatic upgrades
Then automatic upgrades should be enabled
@backups
Scenario: Backup and restore upgrades
When I enable automatic upgrades
And I create a backup of the upgrades app data with name test_upgrades
And I disable automatic upgrades
And I restore the upgrades app data backup with name test_upgrades
Then automatic upgrades should be enabled
Scenario: Disable automatic upgrades
Given automatic upgrades are enabled
When I disable automatic upgrades
Then automatic upgrades should be disabled
Loaded 100 of 122 files, more files were not shown because too many files have changed in this diff. Show more