mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
performance: Add basic functional tests
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
e465645594
commit
7f7b5b4e67
20
functional_tests/features/performance.feature
Normal file
20
functional_tests/features/performance.feature
Normal file
@ -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
|
||||||
@ -13,8 +13,8 @@ from .service import wait_for_page_update
|
|||||||
sys_modules = [
|
sys_modules = [
|
||||||
'avahi', 'backups', 'bind', 'cockpit', 'config', 'datetime', 'diagnostics',
|
'avahi', 'backups', 'bind', 'cockpit', 'config', 'datetime', 'diagnostics',
|
||||||
'dynamicdns', 'firewall', 'letsencrypt', 'monkeysphere', 'names',
|
'dynamicdns', 'firewall', 'letsencrypt', 'monkeysphere', 'names',
|
||||||
'networks', 'pagekite', 'power', 'security', 'snapshot', 'ssh', 'storage',
|
'networks', 'pagekite', 'performance', 'power', 'security', 'snapshot',
|
||||||
'upgrades', 'users'
|
'ssh', 'storage', 'upgrades', 'users'
|
||||||
]
|
]
|
||||||
|
|
||||||
default_url = config['DEFAULT']['url']
|
default_url = config['DEFAULT']['url']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user