37 Commits

Author SHA1 Message Date
Micah Lee
7c1854193a Merge branch 'develop' into censorship 2022-03-06 13:55:36 -08:00
Micah Lee
2da1174408 Merge branch 'develop' into censorship 2022-02-13 11:28:16 -08:00
Micah Lee
b3fe2b6fac Fix CLI web tests 2022-02-13 10:43:02 -08:00
Micah Lee
31bf763baa Remove cleanup_tempfiles altogether because they are not being used 2022-02-13 10:40:55 -08:00
Micah Lee
c7a671699b Update onionshare_cli poetry deps, and fix tests 2022-01-17 11:11:35 -08:00
Micah Lee
5b0093cc54 Merge branch 'censorship' into 1422_autodetect_location 2021-12-12 10:27:01 -08:00
Micah Lee
33e0b549a8 Merge branch 'censorship_automatically_attempt_and_reconnect' of https://github.com/mig5/onionshare into mig5-censorship_automatically_attempt_and_reconnect 2021-12-04 20:40:58 -08:00
Micah Lee
16e7aa2755 Merge pull request #1478 from mig5/fetch-builtin-bridges
Fetch the built-in bridges from Tor's Censorship Circumvention API, rather than hardcode them
2021-12-04 20:28:04 -08:00
Saptak S
03890f6e5e Fixes CLI tests 2021-12-03 20:03:22 +05:30
Micah Lee
6c72e9e7a5 Fix CLI tests 2021-12-01 21:01:32 -08:00
Miguel Jacq
57bec79c61 Built-in bridge refactoring.
Store the built-in bridges in OnionShare settings as a dict, and try writing those into the torrc if present.

If they aren't present in OnionShare settings, use the hardcoded templates instead.

Fetch the latest built-in bridges over Tor, once connected to Tor.

If we can't fetch the bridges over Tor, fall back to Meek (domain-fronting) and try again.

Then write those as the dict to the OnionShare settings, to take precedence next time.
2021-11-24 17:55:47 +11:00
Miguel Jacq
67458fec39 Initial work on supporting the option to automatically attempt to fetch bridges based on the user's location if Tor fails to connect (censorship circumvention) 2021-11-11 17:33:19 +11:00
Micah Lee
0220c0049b Remove all references to old settings 2021-10-26 21:07:38 -07:00
Micah Lee
bed9596ce3 Update bridge related settings in Settings, and use those new settings in Onion 2021-10-26 21:06:05 -07:00
Miguel Jacq
476e4bd441 Add meek_client stuff to CLI tests 2021-10-20 15:55:24 +11:00
Micah Lee
70dce471cd Save/load moat bridges to/from settings 2021-10-17 14:26:56 -07:00
Micah Lee
879dd0452e Fix CLI tests 2021-10-15 09:21:58 -07:00
Kushal Das
ba3fdc277e Fixes typos about Linux as platform name
It is `linux` not 'Linux' in sys.platform
2021-09-02 08:31:30 +05:30
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
SIDDHANT DIXIT
fecedd26ed Updated test cli settings
Added theme key in test_cli_settings.py.
2021-07-22 02:37:24 +05:30
Miguel Jacq
ff5e73a2ae Move the cleanup() function from Onionshare class to Web class, so that the list of files to be cleaned up is always available (needed for website temp files) 2021-05-04 16:21:42 +10:00
Micah Lee
90d9a3f753 Fix CLI tests in macOS 2021-05-02 15:51:39 -07:00
Micah Lee
da2659b77c Remove deprecated pytest stuff 2021-05-02 15:33:42 -07:00
Micah Lee
3049d066e2 Fix CLI tests in Windows 2021-05-02 15:32:45 -07:00
Micah Lee
3303586068 Write receive mode CLI tests to confirm messages and files get uploaded, and when no files are uploaded an empty folder is not created 2021-05-02 12:42:56 -07:00
Micah Lee
cfbf07b903 Fix flake8 issues found in cli 2021-04-29 17:13:05 -07:00
Micah Lee
8c9d101f31 Merge pull request #1321 from SaptakS/range-requests-revisited
Reviving the old range request PR
2021-04-25 18:07:35 -04:00
Saptak Sengupta
774e77ae51 Merge pull request #1326 from micahflee/pretty_verbose
Make verbose output prettier with terminal colors
2021-04-13 02:45:12 +05:30
Micah Lee
c1d1462299 Fix log tests 2021-04-12 15:42:16 -04:00
Saptak S
83f4560784 Fixes tests for normal range requests, curl and wget 2021-04-12 22:57:10 +05:30
Saptak S
dbb13e6a43 Fixes parameters in the test function 2021-04-12 22:57:09 +05:30
Saptak S
a36e90eeaf Reviving the old range request PR
This commit basically just adds the codes from the PR
https://github.com/micahflee/onionshare/pull/804/commits
on the newly structured and refactored code and also
fixes import dependencies and changed any code that was
relevant with the new code of onionshare
2021-04-12 22:57:08 +05:30
Micah Lee
aea387a328 Test webhook in CLI 2021-04-12 09:34:12 -07:00
Aksh Gupta
6805f6acae chore: refactor code quality issues 2021-03-10 22:59:47 +05:30
Micah Lee
1ef0603f53 Fix start_onion_service test 2020-11-27 14:57:49 -08:00
Micah Lee
c358031c37 Remove obsolete resource path tests 2020-11-08 14:51:45 -08: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