performance: Add basic functional tests

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2020-05-11 22:26:45 -07:00
parent e465645594
commit 7f7b5b4e67
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 22 additions and 2 deletions

View 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

View File

@ -13,8 +13,8 @@ from .service import wait_for_page_update
sys_modules = [
'avahi', 'backups', 'bind', 'cockpit', 'config', 'datetime', 'diagnostics',
'dynamicdns', 'firewall', 'letsencrypt', 'monkeysphere', 'names',
'networks', 'pagekite', 'power', 'security', 'snapshot', 'ssh', 'storage',
'upgrades', 'users'
'networks', 'pagekite', 'performance', 'power', 'security', 'snapshot',
'ssh', 'storage', 'upgrades', 'users'
]
default_url = config['DEFAULT']['url']