coquelicot: Implement functional tests with uploading file

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati authored and James Valleroy committed 2018-10-03 19:19:11 -04:00
1 parent 95664015ac
commit c83a3cd22e
5 files changed
+85 -4

No files matched your search

@@ -48,15 +48,25 @@ Scenario: Modify maximum upload size in disabled case
When I modify the maximum file size of coquelicot to 123
Then the coquelicot service should not be running
Scenario: Upload a file to coquelicot
Given a sample local file
When I modify the coquelicot upload password to whatever123
And I upload the sample local file to coquelicot with password whatever123
And I download the uploaded file from coquelicot
Then contents of downloaded sample file should be same as sample local file
Scenario: Backup and restore coquelicot
Given the coquelicot application is enabled
When I modify the coquelicot upload password to beforebackup123
And I modify the maximum file size of coquelicot to 128
And I upload the sample local file to coquelicot with password beforebackup123
And I create a backup of the coquelicot app data
And I export the coquelicot app data backup
And I modify the coquelicot upload password to afterbackup123
And I modify the maximum file size of coquelicot to 64
And I restore the coquelicot app data backup
And I download the uploaded file from coquelicot
Then the coquelicot service should be running
And I should be able to login to coquelicot with password beforebackup123
And the maximum file size of coquelicot should be 128
And contents of downloaded sample file should be same as sample local file