38 Commits

Author SHA1 Message Date
Miguel Jacq
f5f940d335 Test javascript MIME type in different modes 2021-12-17 17:59:34 +11:00
Micah Lee
16c6a9f89d Merge branch 'develop' of https://github.com/a1346054/onionshare into a1346054-develop 2021-12-04 20:34:07 -08:00
Miguel Jacq
ff45a5c76b Support sending a custom Content-Security-Policy header in Website mode 2021-11-08 16:31:05 +11:00
a1346054
f56f3ae95f Fix spelling 2021-10-14 21:48:12 +00:00
Micah Lee
b0c790cd2a Merge pull request #1406 from SaptakS/fix-filelisting
Fixes directory listing in send mode
2021-09-09 16:52:25 -07:00
Miguel Jacq
6f5d2bd825 Add more GUI test coverage of the Client Auth private key and toggle button 2021-09-09 13:04:40 +10:00
Saptak S
460c25f0f3 Updates the tests to use a full path instead of basename 2021-09-04 19:17:31 +05:30
Micah Lee
f797db0242 Revert "Don't show private key"
This reverts commit b93c5c788a4227c6651a936c741b2fc858967046.
2021-09-03 14:24:45 -07:00
Miguel Jacq
b93c5c788a Don't show private key 2021-08-31 14:52:27 +10:00
Miguel Jacq
bfdebc4d96 Client Auth UX improvements 2021-08-31 14:17:23 +10:00
Miguel Jacq
5f16be8bf3 Test that the Private Key button is not present in public mode, in GUI share tests 2021-08-28 09:41:31 +10:00
Miguel Jacq
593918b429 remove more public_mode stuff in receive mode test 2021-08-27 16:43:00 +10:00
Miguel Jacq
0a24c3905d remove basic auth stuff in receive mode tests 2021-08-27 16:32:44 +10:00
Miguel Jacq
f8b3187359 remove persistent mode test for now, doesn't have much value now that there's no password to check in local mode as to whether it's the same 2021-08-27 16:26:31 +10:00
Miguel Jacq
b15651e27e Tweak test 2021-08-27 16:10:53 +10:00
Miguel Jacq
5d9554438f ClientAuthV3 fixes
* Remove Client Auth as an explicit option (it's on by default).
 * Update wording about Public mode
 * Fix tuple error when raising TorTooOldStealth exception in CLI
 * Move Private Key button next to URL button in GUI
 * Replace visual references of ClientAuth to Private Key
 * Remove HTTPAuth Flask dependency and remove a lot of code to do with password generation,
   401 auth triggers/invalid password rate limit detection etc
 * Test updates
 * Remove obsolete locale keys
2021-08-27 15:52:29 +10:00
Miguel Jacq
b43e7fee13 merge develop branch into client_auth_v3 branch and use our forked stem which works with poetry 2021-08-27 09:44:43 +10:00
Micah Lee
8e284f1027 Merge branch 'fix_405_error_and_other_methods' of https://github.com/mig5/onionshare into mig5-fix_405_error_and_other_methods 2021-05-25 16:27:26 -07:00
Miguel Jacq
1e5e886577 Prevent usernames in Chat mode of length 128 chars or more 2021-05-14 10:44:14 +10:00
Miguel Jacq
45f798c5d2 Merge branch 'develop' into client_auth_v3 2021-05-11 14:40:07 +10:00
Miguel Jacq
9aedb0cc00 Add the 'Test 405 HTTP response for bad methods' test to the Chat mode GUI tests, which uncovered the exception that the previous commit fixes 2021-05-11 08:41:56 +10:00
Miguel Jacq
8967470f95 Merge branch 'develop' into fix_405_error_and_other_methods 2021-05-11 08:15:35 +10:00
Miguel Jacq
e409141362 Website mode doesn't need to support POST as a method 2021-05-11 08:14:49 +10:00
Miguel Jacq
772d12b4bb Add tests for Chat, and fix the server_status message bar when in Chat mode 2021-05-10 15:05:16 +10:00
Miguel Jacq
7b5b2d32f6 Add comment to test function 2021-05-10 12:34:38 +10:00
Miguel Jacq
dbdb04a3bf Fix receive mode test 2021-05-10 11:42:13 +10:00
Miguel Jacq
92027345d0 Register the 405 error handler properly. Enforce the appropriate methods for each route (GET or POST only, with OPTIONS disabled). Add tests for invalid methods. Add a friendlier 500 internal server error handler 2021-05-10 11:23:44 +10:00
Miguel Jacq
d86ce6c9af Rename things with client_auth_v3_ in the name because there is only one type of client_auth now that v2 is gone. 2021-05-06 18:02:40 +10:00
Miguel Jacq
5ed2188156 GUI tests for v3 Client Auth (albeit only in local mode, so kind of stubbed 2021-05-06 15:24:26 +10:00
Micah Lee
50027a6327 Test sending messages in GUI receive mode 2021-05-02 14:51:33 -07:00
Micah Lee
ddbd7a2fb9 Fix GUI tests 2021-05-02 14:34:09 -07:00
Micah Lee
bf08e29162 Fix flake8 warnings in desktop 2021-04-30 11:38:23 -07:00
Aksh Gupta
6805f6acae chore: refactor code quality issues 2021-03-10 22:59:47 +05:30
Micah Lee
64227a9445 End web thread successfully when cleaning up after a tab, which prevents crashes after running the tests; and fix msi_filename in Windows build script 2020-11-09 19:47:57 -08:00
Micah Lee
e877855827 Load onionshare_cli from source tree instead of pip dependency, and start making tests work with PySide2 2020-10-14 20:17:08 -07:00
Micah Lee
decf703cd9 Port from PyQt5 to PySide2 2020-10-13 22:28:21 -07:00
Micah Lee
5eb2bb6353 Move docs back to root, move onionshare_gui into briefcase app, and make modifications so briefcase app will work 2020-10-13 17:28:54 -07:00
Micah Lee
a54f99adf6 Add onionshare CLI to cli folder, move GUI to desktop folder, and start refactoring it to work with briefcase 2020-10-12 22:40:55 -07:00