mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
- Do not require a user password when creating a user. Generate a password if not provided. - Before creating a user, delete previous user with the same name. - Delete user: Do not skip if the user doesn't exist. It avoids the situation that some @when tests may silently skip. - Update openvpn and deluge functional tests assuming passwords were not under the tests. Tests performed: - users, openvpn and deluge app functional tests pass. Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
49 lines
1.6 KiB
Gherkin
49 lines
1.6 KiB
Gherkin
# 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: User of 'bit-torrent' group
|
|
Given the deluge application is enabled
|
|
And the user delugeuser in group bit-torrent exists
|
|
When I'm logged in as the user delugeuser
|
|
Then the deluge site should be available
|
|
|
|
Scenario: User not of 'bit-torrent' group
|
|
Given the deluge application is enabled
|
|
And the user nogroupuser exists
|
|
When I'm logged in as the user nogroupuser
|
|
Then the deluge site should not 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
|