Joseph Nuthalapati ce231254f0
searx: Add functional test for app availability
Add a functional test that checks whether the SearX web application is
available. This can catch the case of an Internal Server Error thrown by
uWSGI server. See Debian bug https://bugs.debian.org/965095

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-19 08:01:25 -04:00

51 lines
1.6 KiB
Gherkin

# 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
And the search form should be visible
@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