84 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
e0b0b0f532
functional_tests: Fix create snapshot test failure
When there are no snapshots present in the list of snapshots, operation to
delete all snapshots first checks that select all button and then submits the
delete snapshots button. After that it looks for delete confirmation and then
submits again. When the confirmation page is not shown, as is the case when
there are no snapshots, the button being submitted happens to be 'Create
Snapshot' button. This creates a new snapshot and the total number of snapshots
at the end of create snapshot test is 2 instead of 1.

Tests:

- Run `py.test-3 --include-functional -k snapshot`.

Closes: #1630.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-08-26 18:14:13 -04:00
Joseph Nuthalpati
fe02b9f1e3
functional_tests: Fix site.is_available not handling default paths
Sites might have default paths like /mediawiki/Main_Page or /transmission/web.
The tests are doing an exact match on the path which is causing test failures.
Modified the support function site.is_available to handle default paths.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-08-18 13:33:08 -07:00
James Valleroy
a89190b700
functional_tests: Fix delete backup path
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-07-30 16:45:30 -07:00
Joseph Nuthalapati
6e0671e142
sharing: Add functional test for public shares
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-07-22 17:56:45 -04:00
Joseph Nuthalapati
7684814a5c
backups: Fix functional tests broken due to URL changes
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-07-03 12:42:37 +05:30
James Valleroy
6064067a3a
functional_tests: Add shortcut- prefix to test home page config
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-06-13 18:38:14 -07:00
James Valleroy
1600c25ae8
monkeysphere: Hide by default
Update functional test to show advanced apps.

Closes #1453.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-06-10 11:16:01 -07:00
Joseph Nuthalapati
2d85b61199
searx: Add option to allow public access to the application
[jvalleroy] Resolved merge conflict to use shortcut component.

Fixes #1590

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-06-09 10:37:16 -04:00
Sunil Mohan Adapa
e7181bb18a
mediawiki: Fix tests to allow running from any directory
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-10 09:54:21 -04:00
Sunil Mohan Adapa
0e2315486d
tests: Read functional tests conf file without assuming CWD
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-03-10 09:54:07 -04:00
Joseph Nuthalapati
a4e01eb629
pagekite: Bring subsubmenu below description. Remove About section.
- Fixed broken functional tests
- Pagekite index page directly takes to configuration

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-08 14:25:26 -08:00
Joseph Nuthalapati
b18ac14377
snapshot: Fix failing functional test
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-03-02 10:11:33 -08:00
James Valleroy
1eed7d581d
ttrss: Add backup support
- Use backup hooks to dump and restore database.
- Add functional test for backup and restore.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-26 15:23:47 -08:00
Joseph Nuthalapati
8bc34f84c3
config: Rename Default App to Webserver Home Page
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-23 10:30:59 -05:00
Sunil Mohan Adapa
22dd2d26f3
mldonkey: Add functional test for uploading
- Run yapf for automatic formatting.

- Move disable test to the end so that after all test are run, app is usually
  disabled.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 10:54:53 -08:00
J. Carlos Romero
1c8c9d067a
mldonkey: Add backup/restore support
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 10:54:27 -08:00
James Valleroy
b8737ad663
help: Add functional test to check status logs page
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 09:57:02 -08:00
Sunil Mohan Adapa
c35cecb34a
openvpn: Add backup/restore support
- Add functional tests

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-27 08:16:24 -05:00
James Valleroy
af018e3018
radicale: Add functional tests for setting access rights
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-26 22:06:57 -08:00
Sunil Mohan Adapa
529c281734
syncthing: Add backup/restore support
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-26 21:30:29 -05:00
Joseph Nuthalapati
0b9922434c
snapshot: Fix failing tests
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-08 14:00:11 -08:00
James Valleroy
6adec225d3
radicale: Add tests for well-known URLs
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-01-06 17:57:43 -05:00
Michael Pimmer
067fea7d17
Backups: functional tests update; restoring backup bugfix
- updated functional tests to work with changed UI
- fixed bug when restoring an uploaded file

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:31 -05:00
Michael Pimmer
6651c0468e
Backups: remove archive name when creating an archive
- use datetime as archive name w/o asking user
- updated functional tests

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:28:10 -05:00
Michael Pimmer
13e8ae1bb2
Backups, remote repository: adapt functional tests
- fix functional tests of backups
- rename export-and-download url to download

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-12-13 18:27:57 -05:00
James Valleroy
6dc3fbfb97
functional_tests: Confirm when deleting all snapshots
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-29 20:05:48 -05:00
Prachi Srivastava
09da8535a7
Changes functional test to select All and delete snapshots
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-29 20:05:44 -05:00
Michael Pimmer
5632326802
Functional tests: assert that module installation succeeded
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-17 16:22:28 -05:00
Michael Pimmer
bcd84ab92f
Functional tests: fix waiting for redirects
wait_for_page_update has an 'expected_url' argument that you can use
to make the browser wait until it reaches an expected URL after a
redirect.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-17 16:22:22 -05:00
Michael Pimmer
33dde221d1
Functional tests: check that browser waits for redirects to finish
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-17 16:22:17 -05:00
Michael Pimmer
5fd8abcc1f
Backups: minor fixes of functional tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-17 09:00:51 -05:00
Michael Pimmer
c988d468f2
Backups: functional test to download and restore an archive
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-17 09:00:42 -05:00
James Valleroy
82a4a5fc5e
functional_tests: Remove backup export steps
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-17 09:00:09 -05:00
Joseph Nuthalapati
78950b1ba3
tahoe: Add functional tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-11-01 20:39:52 -04:00
Joseph Nuthalapati
f52e13d316
monkeysphere: Add functional tests for import/publish keys
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-29 23:22:31 -04:00
Joseph Nuthalapati
37d84c0f50
upgrades: Add functional tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-29 23:22:05 -04:00
Joseph Nuthalapati
6dd7823c9e
tor: Add functional tests for relays and hidden services
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-29 23:21:51 -04:00
Joseph Nuthalapati
c33b192f71
backups: Don't rely on disk labels during export/restore
Disk labels are unreliable. They may not exist. There are not unique and two
disks in the system may have the same label. Instead use the device path of the
disk/partition.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-22 19:26:22 -04:00
James Valleroy
cf6d0aa938
functional_tests: When creating backup, scroll window to top
Ensures that the checkbox for selected app can be scrolled into view.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:58 -04:00
James Valleroy
92d128a4b3
deluge: Handle prompt to change default password
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:49 -04:00
Joseph Nuthalapati
1eacbf1be7
ssh: Enable backup/restore
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:19:05 -04:00
Joseph Nuthalapati
2c1372c26d
snapshot: Add functional tests for setting configuration
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:45 -04:00
Joseph Nuthalapati
b04ac3c76c
security: Add functional tests for restricted logins
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:26 -04:00
Joseph Nuthalapati
a043063ee2
bind: Add functional tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:18:17 -04:00
Joseph Nuthalapati
4c7781a34a
deluge: Add functional test for uploading a torrent
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:17:52 -04:00
Joseph Nuthalapati
996e5932a2
tests: More accurately compute waited time
If test function takes significant time, this will ensure that we don't wait
more the requested wait time.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-21 19:17:38 -04:00
Joseph Nuthalapati
f16fe404f2
datetime: Add functional test for setting time zone
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-15 16:12:41 -04:00
Joseph Nuthalapati
78f1737788
pagekite: Enable backup/restore
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 18:29:16 -04:00
Joseph Nuthalapati
382e23636a
pagekite: Add functional tests
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 18:29:11 -04:00
Joseph Nuthalapati
5ee0f71e62
shadowsocks: Enable backup/restore
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-10-08 18:28:45 -04:00