diff options
author | Iain R. Learmonth <irl@fsfe.org> | 2019-05-16 12:54:31 +0100 |
---|---|---|
committer | Iain R. Learmonth <irl@fsfe.org> | 2019-05-16 13:31:54 +0100 |
commit | 58cb98af32e8436eccf9536255b8158271f1c03d (patch) | |
tree | 364cbb1430dba74ffcdf4eeff480579171531b2b /src/test/test_options.c | |
parent | d86896b29c7a5278bedd89a7150ddbe7531b365b (diff) | |
download | tor-58cb98af32e8436eccf9536255b8158271f1c03d.tar.gz tor-58cb98af32e8436eccf9536255b8158271f1c03d.zip |
Prop 301: No longer vote on RecommendedPackages
This is the first half of implementing proposal 301. The
RecommendedPackages torrc option is marked as obsolete and
the test cases for the option removed. Additionally, the code relating
to generating and formatting package lines in votes is removed.
These lines may still appear in votes from other directory authorities
running earlier versions of the code and so consensuses may still
contain package lines. A new consensus method will be needed to stop
including package lines in consensuses.
Fixes: #28465
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r-- | src/test/test_options.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c index 396be6b18d..d693fe0568 100644 --- a/src/test/test_options.c +++ b/src/test/test_options.c @@ -1343,29 +1343,6 @@ test_options_validate__token_bucket(void *ignored) } static void -test_options_validate__recommended_packages(void *ignored) -{ - (void)ignored; - int ret; - char *msg; - setup_capture_of_logs(LOG_WARN); - options_test_data_t *tdata = get_options_test_data( - "RecommendedPackages foo 1.2 http://foo.com sha1=123123123123\n" - "RecommendedPackages invalid-package-line\n"); - - ret = options_validate(tdata->old_opt, tdata->opt, tdata->def_opt, 0, &msg); - tt_int_op(ret, OP_EQ, -1); - expect_no_log_msg("Invalid RecommendedPackage line " - "invalid-package-line will be ignored\n"); - - done: - escaped(NULL); // This will free the leaking memory from the previous escaped - teardown_capture_of_logs(); - free_options_test_data(tdata); - tor_free(msg); -} - -static void test_options_validate__fetch_dir(void *ignored) { (void)ignored; @@ -4200,7 +4177,6 @@ struct testcase_t options_tests[] = { LOCAL_VALIDATE_TEST(exclude_nodes), LOCAL_VALIDATE_TEST(node_families), LOCAL_VALIDATE_TEST(token_bucket), - LOCAL_VALIDATE_TEST(recommended_packages), LOCAL_VALIDATE_TEST(fetch_dir), LOCAL_VALIDATE_TEST(conn_limit), LOCAL_VALIDATE_TEST(paths_needed), |