summaryrefslogtreecommitdiff
path: root/src/test
AgeCommit message (Collapse)Author
2020-04-08Correct 'was not internal' to 'was internal' in test_external_ip()Mrigyen Sawant
2020-04-03Change starting file descriptor for tests.Putta Khunchalee
2020-03-30hs-v3: Relax severity of a log message when decoding descriptors.George Kadianakis
Make it LOG_PROTOCOL_WARN and also add the expiration timestamp in there to ease debugging in the future.
2020-03-23Merge branch 'tor-github/pr/1788' into maint-0.4.3George Kadianakis
2020-03-20Merge branch 'maint-0.4.2' into maint-0.4.3teor
2020-03-20Merge branch 'maint-0.4.1' into maint-0.4.2teor
2020-03-19Merge branch 'ticket33643_skip_035' into ticket33643_skip_041Nick Mathewson
2020-03-19Add a TOR_SKIP_TESTCASES environment variable for suppressing tests.Nick Mathewson
For example, "TOR_SKIP_TESTCASES=crypto/.. ./src/test/test" will run the tests and suppress all the "crypto/" tests. You could get the same effect by running "./src/test/test :crypto/..", but that can be harder to arrange from CI. Part of a fix/workaround for 33643.
2020-03-17Merge branch 'maint-0.4.2' into maint-0.4.3Nick Mathewson
2020-03-17Merge branch 'maint-0.4.1' into maint-0.4.2Nick Mathewson
2020-03-17Merge branch 'trove_2020_002_041' into maint-0.4.1Nick Mathewson
2020-03-17Merge branch 'trove_2020_002_035' into maint-0.3.5Nick Mathewson
2020-03-17Split a wide line.Nick Mathewson
2020-03-17Add unittest for TROVE-2020-003.George Kadianakis
This unittest currently fails on purpose (to demonstrate the bug) but it will stop failing after the next commit (the bugfix).
2020-03-17Merge branch 'trove_2020_002_035' into trove_2020_002_041Nick Mathewson
2020-03-17Add off-by-one checks for key length.Nick Mathewson
2020-03-16Merge branch 'ticket32672_042_squashed_w_test' into maint-0.4.3Nick Mathewson
2020-03-16Adjust unit tests for patch for 32672 (rejecting old version)Nick Mathewson
Patch by Neel Chauhan.
2020-03-14Merge branch 'trove_2020_002_035' into trove_2020_002_041Nick Mathewson
2020-03-14Add a test for crypto_pk_asn1_decode_private maxbits.Nick Mathewson
2020-03-13Merge remote-tracking branch 'tor-github/pr/1718/head' into maint-0.4.2Nick Mathewson
2020-03-12Merge branch 'ticket33361_035_01_squashed' into maint-0.4.3Nick Mathewson
2020-03-12Fix unit tests that look at contactinfo logs.Nick Mathewson
2020-03-11Merge branch 'bug33032_042' into bug33032_043Nick Mathewson
2020-03-11Merge branch 'bug33032_041' into bug33032_042Nick Mathewson
2020-03-11Merge branch 'maint-0.4.1' into bug33032_041Nick Mathewson
2020-03-11pem_decode(): Tolerate CRLF line endingsNick Mathewson
Fixes bug 33032; bugfix on 0.3.5.1-alpha when we introduced our own PEM decoder.
2020-02-26In typed_var_kvassign, include config names in error messages.Nick Mathewson
This should improve the usability of our configuration error messages.
2020-02-26confmgt: when a units value is invalid, include a meaningful error.Nick Mathewson
Part of 33460.
2020-02-26confmgt: when an int/enum value is invalid, say which values are ok.Nick Mathewson
Part of 33460.
2020-02-20Merge remote-tracking branch 'tor-github/pr/1719/head' into maint-0.4.3Nick Mathewson
2020-02-12Run "make autostyle".Nick Mathewson
2020-02-12Merge branch 'maint-0.4.1' into maint-0.4.2teor
2020-02-12Merge branch 'maint-0.3.5' into maint-0.4.1teor
2020-02-12Lowercase the BridgeDistribution value from torrc in descriptors.Alexander Færøy
This patch ensures that we always lowercase the BridgeDistribution from torrc in descriptors before submitting it. See: https://bugs.torproject.org/32753
2020-02-11Merge branch 'ticket33029_042_01' into ticket33029_043_03David Goulet
Conflicts: doc/tor.1.txt src/app/config/config.c src/app/config/or_options_st.h src/core/mainloop/connection.h Between 042 and 043, the dirauth options were modularized so this merge commit address this by moving the AuthDirRejectUncompressedRequests to the module along with a series of accessors. Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-02-11dirauth: Rename function for better clarityDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-02-11test: Add unit test for connection_dir_is_global_write_low()David Goulet
Part of #33029 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-02-10Merge branch 'bug33104_041'Nick Mathewson
2020-02-10Add tests for control_event_signal.Nick Mathewson
2020-02-06test: Missing hs_init() in some hs_control testsDavid Goulet
Without the hs_init(), the caches are not initialized and the previous commit was causing an assert due to the missing caches. But regardless of that, those tests were not initializing but were calling hs_free_all(). Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-02-06hs-v3: Remove descriptor when we remove client authorizationDavid Goulet
When the ONION_CLIENT_AUTH_REMOVE command is given to tor, now also remove the descriptor associated with the client authorization credentials. Fixes #33148 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-02-03hs-v3: Purge ephemeral client auth on NEWNYMDavid Goulet
Fixes #33139. Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-01-28Use print() function in both Python 2 and Python 3cclauss
2020-01-24tests for ticket 33039Taylor Yu
2020-01-20Merge branch 'tor-github/pr/1675'David Goulet
2020-01-20Merge branch 'tor-github/pr/1668'David Goulet
2020-01-20config: Make clients tell dual-stack exits they prefer IPv6teor
Make Tor clients tell dual-stack exits that they prefer IPv6 connections. This change is equivalent to setting the PreferIPv6 flag on SOCKSPorts (and most other listener ports). Tor Browser has been setting this flag for some time, and we want to remove a client distinguisher at exits. Also update the man page, putting all the IP flags in their non-default forms. Closes ticket 32637.
2020-01-20test/nodelist: Remove ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHODteor
When we removed obsolete consensus methods in 32695, we also removed ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD, so we need to remove it from the routerstatus format tests. Part of 20218.
2020-01-20Merge branch 'ticket20218_rebased_squashed' into ticket20218_mergedteor
* ticket 32695 removed networkstatus_consensus_has_ipv6(), keep that change in master. * ticket 20218 modifies the function name and comment for routerstatus_has_visibly_changed(), keep that change in ticket20218_rebased_squashed.