[Tor] - Write tests to test the onion services. #578
Labels
No Label
administration
Akkoma
Android
Bare metal
bug
Communication
Community
Cryptpad
Discussion
Documentation
duplicate
enhancement
etherpad
Feature request
Feedback
finances
Fixed
forgejo
fun_project
Goal 2024
help wanted
Howto
🤔️ Investigate
ios
jitsi
lacre
Lacre Test
ldap
Lemmy
LibreTranslate
low prio
Lufi
macos
Mail
Merch
monitoring
movim
needs_refine
New Auth
Nextcloud
nice to have
on hold
proposal
question
Ready
refined
Roundcube
searX
spam-protection
Staging Server
Themes
TOR
Urgent!
Website
windows
wontfix
xmpp
Yearly Report
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Disroot/Disroot-Project#578
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Monitoring the service's internals to determine the state of the service will not give enough info to know when something's up. There are some things that can be seen in the log but it's best to test the onion links directly. You can't assume if plain works so should onion.
A simple script that extracts the onion URLs from the /en/tor page an then wget's them through a tor proxy should work just fine, and be simple to write. You could easily run this hourly etc.
You can check the http return code for get of the onion URL if the proxy of the testharness is setuo correctly.
Add a dependency to #369
Attached is a basic bash script to start testing.
@muppeth Running it is not a pretty sight:
sh /var/local/bin/privacy_test_disroot.bash 2>&1|grep ERROR
2023-08-01 01:41:50 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion retval=1
2023-08-01 01:41:50 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/akkoma retval=1
2023-08-01 01:41:51 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/audio retval=1
2023-08-01 01:41:51 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/calls' retval=1
2023-08-01 01:41:51 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/cryptpad retval=1
2023-08-01 01:41:52 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/email retval=1
2023-08-01 01:41:52 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/email/ retval=1
2023-08-01 01:41:53 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/git' retval=1
2023-08-01 01:41:53 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/nextcloud/ retval=1
2023-08-01 01:41:54 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/pads retval=1
2023-08-01 01:41:54 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/privatebin retval=1
2023-08-01 01:41:54 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/search retval=1
2023-08-01 01:41:55 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/upload retval=1
2023-08-01 01:41:55 ERROR 503: Forwarding failure.
ERROR http://j4dhkkxfcsvzvh3p5djkmuehhgd6t6l7wmzih6b4ss744hegwkiae7ad.onion/services/xmpp retval=1
@meaz I tried attaching the script as a file, but don't see it. It's simple enough...
What do you use as tools for testing the website?
Write tests to test the onion services.to [Tor] - Write tests to test the onion services.