aboutsummaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2024-10-21Revert "Handle empty DNS reply without error as NOERROR"David Goulet
Closes #40984 This reverts commit 3d2f7c3467e7aff545d8e22ffd4153d7598c6d7c.
2024-10-10Merge branch 'empty-dns' into 'main'David Goulet
Handle empty DNS reply without error as NOERROR Closes #40248 See merge request tpo/core/tor!830
2024-09-24Fix unit test in test_entrynodes.cCecylia Bocovich
2024-09-24Handle empty DNS reply without error as NOERRORDaniel Winzen
2024-09-10test: Add unit tests for prop351David Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-06-26Update supported protovers for prop350Nick Mathewson
Relay=1 is no longer supported; it corresponds to TAP. Microdesc=3 and Desc=3 are now supported; they correspond to the ability to handle (micro)descriptors without TAP onion keys.
2024-06-26Add a test for parsing a routerdesc with no TAP key.Nick Mathewson
2024-06-26Add a test for a microdesc with no onion key.Nick Mathewson
2024-06-26Rename "onion_pkey" fields in routerinfo_t, and make them optional.Nick Mathewson
(Renaming them has forced me to look at every place where they are used, so I can make sure that they are really optional now.)
2024-06-26Remove TAP key from extend_info_tNick Mathewson
2024-06-24prop350: Remove all support for TAP, CREATE, and EXTEND.Nick Mathewson
2024-06-18Merge branch 'maint-0.4.8'David Goulet
2024-06-18bridge: Always put transport-info lineDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-06-18Clean-up Managed Proxy state in PT tests.Alexander Færøy
This patch makes sure we clean up our version and implementation fields in our Managed Proxy struct after each test run. This was detected by LeakSanitizer. See: tpo/core/tor#11101.
2024-06-18Add changes file for tpo/core/tor#11101.Alexander Færøy
2024-06-18Include "IMPLEMENTATION" parameter to STATUS TYPE=version PT messages.Alexander Færøy
2024-06-18Add support for PT STATUS TYPE=version messages.Alexander Færøy
This patch adds support for handling the version status message. Once we receive such message, we add the given version string to the managed_proxy_t instance. Note this value can be NULL and the value can change throughout the lifetime of the PT as multiple status version messages are handled. See: tpo/core/tor#11101
2024-05-30Merge branch 'ticket40689_048_01' into 'main'David Goulet
dirauth: Add new faravahar Closes #40689 See merge request tpo/core/tor!819
2024-05-30dirauth: Add new faravaharDavid Goulet
Brand new address, brand new keys, brand new day. Closes #40689 Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-03-20test: Disable unit test causing issue with nightly packageDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-02-28Merge branch 'maint-0.4.8'Alexander Færøy
2024-02-01Update test stringsSebastian Hahn
2024-01-30Merge branch 'maint-0.4.8'David Goulet
2024-01-30dirauth: Reject 0.4.7.x series at the authority levelDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2024-01-30bwauth: Allow "node_id" KeyValue without "$"juga
Allow "node_id" KeyValue without the dollar sign at the start of the hexdigit in the BandwidthFiles, in order to easier database queries combining Tor documents in which the relays fingerprint doesn't include it. Bugfix on all supported versions of Tor. Closes #40891
2023-11-21bwauth: Allow "node_id" KeyValue without "$"juga
Allow "node_id" KeyValue without the dollar sign at the start of the hexdigit in the BandwidthFiles, in order to easier database queries combining Tor documents in which the relays fingerprint doesn't include it. Bugfix on all supported versions of Tor. Closes #40891
2023-10-18add rate limit on BEGIN and RESOLVE cell per circuittrinity-1686a
2023-10-18Merge branch 'ticket40870_048_02' into 'main'David Goulet
conflux: Flag set as in full teardown in the free path Closes #40870 See merge request tpo/core/tor!777
2023-10-16conflux: Flag set as in full teardown in the free pathDavid Goulet
We suspect a shutdown race of some sort for which the full teardown is not noticed during the close but should be during the free. For that, we flag the conflux set as in full teardown (if so) in the free path in case the close path didn't caught it. Fixes #40870 Signed-off-by: David Goulet <dgoulet@torproject.org>
2023-10-05Fix the spelling of maxunmeasur(e)dbw.Nick Mathewson
This has been misspelled when using consensus method 31 or later since 0.4.6.1-alpha. Fixes bug 40869.
2023-10-05Remove MIN_METHOD_FOR_CORRECT_BWWEIGHTSCALENick Mathewson
This also lets us discard extract_param_buggy, which we've been wanting to do.
2023-10-05Remove tests that checked for obsolete microdesc encoding.Nick Mathewson
2023-10-05Whoops: test the "wrong" name for maxunmeasurdbw (sic).Nick Mathewson
Now that we never use an earlier consensus method, our tests actually hit this, and we find that we have misspelled "maxunmeasurdbw" (sic) in dirvote.c. I have opened ticket #40869 to track this misspelling.
2023-10-05Update consensus methods in dir_umbw tests.Nick Mathewson
These tests had previously listed methods that we no longer support.
2023-09-25Merge branch 'ahf/40638' into 'main'David Goulet
Handle ntor and ntor_v3 individually in rephist and for MetricsPort. Closes #40638 See merge request tpo/core/tor!767
2023-09-19Handle ntor and ntor_v3 individually in rephist and for MetricsPort.Alexander Færøy
This patch should not mess with the DoS protection here. Fixes tpo/core/tor#40638.
2023-09-18Merge branch 'sandbox-aarch64-riscv-fixes' into 'main'David Goulet
Fix sandbox on AArch64, RISC-V Closes #24454 See merge request tpo/core/tor!446
2023-09-13Add diagnostic log message for compression bombs.Alexander Færøy
This patch causes `tor_compress_is_compression_bomb()` to emit a warning-level log message that lets us learn the potential ratio of the input to output buffer sizes. Hopefully, this will give us a bit of a better idea whether the compression bomb ratio needs some tuning. See: tpo/core/tor#40739.
2023-08-22Merge remote-tracking branch 'mbeth-private/ticket40821_mr'David Goulet
2023-08-15CI: Diagnostic for failure in test_rebind cleanupMicah Elizabeth Scott
I saw this test fail intermittently due to what seemed like a filesystem race in docker? The cleanup task was failing with a 'directory not empty' error, despite trying to do a recursive 'rm'. This patch adds an 'ls' to the same directory, hoping the output might be useful to diagnose future intermittent failures.
2023-08-11test_dos: Fixes for uninitialized stack memoryMicah Elizabeth Scott
This was causing CI failures that didn't reproduce on my local machine. The DoS subsystem now has a new assert() which triggers a BUG on some nonzero memory contents (or_conn->tracked_for_dos_mitigation), and uninitialized stack memory might be nonzero.
2023-08-11Extend DoS protection to IP addresses with known relaysMicah Elizabeth Scott
This exemption used to be helpful in keeping exit relays from tripping the DoS detection subsystem and losing Tor connectivity. Now exit relays block re-entry into the network (tor issue #2667) so it's no longer needed. We'd like to re-enable protection on these addresses to avoid giving attackers a way around our DoS mitigations.
2023-08-09Extend DoS protection to partially-open channelsMicah Elizabeth Scott
tor only marks a channel as 'open' once the TLS and OR handshakes have both completed, and normal "client" (ORPort) DoS protection is not enabled until the channel becomes open. This patch adds an additional earlier initialization path for DoS protection on incoming TLS connections. This leaves the existing dos_new_client_conn() call sites intact, but adds a guard against multiple-initialization using the existing tracked_for_dos_mitigation flag. Other types of channels shouldn't be affected by this patch.
2023-06-27Bug 40566: Remove unused BDP estimatorsMike Perry
2023-06-23Add congestion control tests to build.Mike Perry
2023-06-23Add CWND test vectorsMike Perry
2023-06-23Add RTT Test VectorsMike Perry
2023-06-23Add clock heuristic test vector for congestion control.Mike Perry
2023-06-23Export variables and functions for CC unit tests.Mike Perry
2023-06-23Bug 40709: Update and clean up tests for consensus paramsMike Perry