update
This commit is contained in:
@@ -54,20 +54,21 @@ If you don't have one, make it with the settings from your torrc:
|
||||
>>> print("yaml", file=sys.stderr)
|
||||
>>> import yaml
|
||||
>>> try:
|
||||
... sFacts = open('/usr/local/etc/testforge/testforge.yml').read()
|
||||
... sFacts = open('/usr/local/etc/testforge/testforge.yml').read()
|
||||
... assert sFacts, sFacts
|
||||
... except:
|
||||
... dFacts = {
|
||||
... HTTPS_PROXYHOST: "127.0.0.1",
|
||||
... HTTPS_PROXYPORT: 9128,
|
||||
... HTTPS_PROXYTYPE: "http",
|
||||
... SOCKS_PROXYHOST: "127.0.0.1",
|
||||
... SOCKS_PROXYPORT: 9050,
|
||||
... SOCKS_PROXYTYPE: "socks5",
|
||||
... }
|
||||
... dFacts = dict(
|
||||
... HTTPS_PROXYHOST="127.0.0.1",
|
||||
... HTTPS_PROXYPORT=9128,
|
||||
... HTTPS_PROXYTYPE="http",
|
||||
... SOCKS_PROXYHOST="127.0.0.1",
|
||||
... SOCKS_PROXYPORT=9050,
|
||||
... SOCKS_PROXYTYPE="socks5",
|
||||
... )
|
||||
... else:
|
||||
... assert sFacts
|
||||
... dFacts = yaml.safe_load(sFacts)
|
||||
... dFacts = yaml.safe_load(sFacts)
|
||||
|
||||
|
||||
FixMe: use the settings for the ports and directories below.
|
||||
|
||||
>>> import os
|
||||
@@ -94,7 +95,7 @@ and then the descriptor-signing-key-cert:
|
||||
>>> introduction_points.iMain(lKNOWN_ONIONS) #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
||||
0
|
||||
|
||||
hs-descriptor 3
|
||||
hs-descriptor 3
|
||||
descriptor-lifetime ...
|
||||
<BLANKLINE>
|
||||
|
||||
@@ -106,11 +107,17 @@ How can you figure out what exit you're using?
|
||||
|
||||
>>> print("exit_used", file=sys.stderr)
|
||||
>>> import exit_used
|
||||
>>> exit_used.iMain([])
|
||||
|
||||
## relay_connections Connection Summary
|
||||
|
||||
>>> print("relay_connections", file=sys.stderr)
|
||||
>>> import relay_connections
|
||||
>>> relay_connections.iMain([]) #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
||||
+------------------------------+------+------+
|
||||
...
|
||||
+------------------------------+------+------+
|
||||
<BLANKLINE>
|
||||
|
||||
The following provides a summary of your relay's inbound and outbound connections.
|
||||
You must be root or tor to run this:
|
||||
@@ -124,25 +131,22 @@ provides an easy method for accessing this information.
|
||||
|
||||
>>> print("connection_resolution", file=sys.stderr)
|
||||
>>> import connection_resolution
|
||||
>>> connection_resolution.iMain() #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
||||
>>> connection_resolution.iMain([]) #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
||||
0
|
||||
|
||||
INFO Our platform supports connection resolution via: ...
|
||||
<BLANKLINE>
|
||||
|
||||
## outdated_relays List Outdated Relays
|
||||
## interpreter
|
||||
|
||||
Time marches on. Tor makes new releases, and at some point needs to drop
|
||||
support for old ones. Below is the script we used on ticket 9476 to reach out
|
||||
to relay operators that needed to upgrade.
|
||||
|
||||
>>> print("outdated_relays", file=sys.stderr)
|
||||
>>> import outdated_relays
|
||||
>>> outdated_relays.iMain() #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
||||
0
|
||||
|
||||
Checking for outdated relays ...
|
||||
>>> print("interpreter", file=sys.stderr)
|
||||
>>> import interpreter
|
||||
>>> lArgs = ['GETINFO', 'version']
|
||||
>>> interpreter.iMain(lArgs) #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
||||
250-version=0.4.8.10
|
||||
250 OK
|
||||
<BLANKLINE>
|
||||
0
|
||||
|
||||
## tor_bootstrap_check
|
||||
|
||||
@@ -152,9 +156,35 @@ to relay operators that needed to upgrade.
|
||||
A script by adrelanos@riseup.net to check what percentage of boostrapping
|
||||
tor is at. This fails under doctest but not from the cmdline
|
||||
|
||||
>>> tor_bootstrap_check.iMain() #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
||||
>>> tor_bootstrap_check.iMain([]) #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
||||
0
|
||||
|
||||
NOTICE ...
|
||||
<BLANKLINE>
|
||||
|
||||
## check_digests
|
||||
|
||||
>>> print("check_digests", file=sys.stderr)
|
||||
>>> from support_testing import ignoreStdout
|
||||
>>> from check_digests import iMain
|
||||
>>> sKNOWN_ONION = 'facebookwkhpilnemxj7asaniu7vnjjbiltxjqhye3mhbshg7kx5tfyd' # facebook
|
||||
>>> from stem_examples.introduction_points import lMain as lIPMain
|
||||
>>> with ignoreStdout():
|
||||
... lArgs = lIPMain([sKNOWN_ONION])
|
||||
>>> iMain(lArgs)
|
||||
0
|
||||
|
||||
## outdated_relays List Outdated Relays
|
||||
|
||||
Time marches on. Tor makes new releases, and at some point needs to drop
|
||||
support for old ones. Below is the script we used on ticket 9476 to reach out
|
||||
to relay operators that needed to upgrade.
|
||||
|
||||
>>> print("outdated_relays", file=sys.stderr)
|
||||
>>> import outdated_relays
|
||||
>>> outdated_relays.iMain([]) #doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
|
||||
0
|
||||
|
||||
Checking for outdated relays ...
|
||||
<BLANKLINE>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user