Commit Graph

689 Commits

Author SHA1 Message Date
iwakeh
18e542ea86 Change default for CompressRelayDescriptorDownloads to 'true'.
Implements task-19831.
2016-10-27 17:17:40 +02:00
iwakeh
1df211186e Reduce file-io by first writing all to temporary files and renaming
these temporary files after sync.
2016-10-27 09:30:32 +02:00
Karsten Loesing
90f074af25 Become Java 7 compliant again. 2016-10-26 09:27:45 +02:00
iwakeh
234b040259 Make tests for PersistenceUtils pass. 2016-10-25 17:45:48 +02:00
iwakeh
f2079ed440 Added tests for file-storage using PersistenceUtils. 2016-10-25 17:45:08 +02:00
iwakeh
f4cb959d1e Use a different history file for micro-consensus descriptors. 2016-10-25 17:43:57 +02:00
iwakeh
5c862a18f2 Corrected micro-consensus path (spotted by karsten). 2016-10-25 17:41:31 +02:00
iwakeh
b8386ce0e3 Make sure the sync-markers are used allover; added some constants,
and a sync-marker test.
2016-10-25 15:06:10 +02:00
iwakeh
58b27771b4 Replacing a non-ascii character in test. 2016-10-24 15:04:16 +02:00
Karsten Loesing
98e881d821 Generate jars and the tarball in generated/dist/. 2016-10-24 15:04:11 +02:00
Karsten Loesing
e5461f07ec Update to metrics-lib 1.5.0. 2016-10-24 15:04:06 +02:00
iwakeh
6703873d00 Index should not record temporary files,
i.e. files starting with "." or ending with ".tmp".
2016-10-24 15:04:00 +02:00
iwakeh
7e80f72393 Implements task-18910 sync-functionality.
ReferenceChecker had to be disabled (cf. #20335).
Added persistence and sync package as well as tests and test resources.
2016-10-24 15:03:52 +02:00
iwakeh
53235328ae Make checkstyle complain about unused imports. 2016-10-24 15:03:38 +02:00
iwakeh
6603811aa9 Tests should compile before being analyzed by checkstyle. 2016-10-24 15:03:31 +02:00
Karsten Loesing
f4e8983bff Recommend absolute paths in create-tarballs.sh.
Some of these paths might work okay if configured relative to the
working directory.  But it's safer to just use absolute paths.  This
works fine on the main CollecTor instance.

Fixes #20179.
2016-10-24 12:29:38 +02:00
iwakeh
8bb7de37ad Finishes task-20162: removed six configuration properties:
DownloadCurrentConsensus,
DownloadCurrentMicrodescConsensus,
DownloadCurrentVotes,
DownloadMissingServerDescriptors,
DownloadMissingExtraInfoDescriptors,
and DownloadMissingMicrodescriptors

Each was replaced by hard-coded 'true'.
2016-10-20 17:24:53 +02:00
Karsten Loesing
0397899166 Move index.json* files to index/ subdirectory.
Implements #20408.
2016-10-19 19:45:29 +02:00
iwakeh
3121a2692c Introduced *Sources and *Origins properties to simplify data
source definition.
Already provides properties for task-18910.
2016-10-13 09:04:41 +02:00
iwakeh
5003567318 Added property OutputPath and removed four obsolete path properties.
Added new methods to Configuration.
Implements part of task-20162 and prepares task-18910.
2016-10-12 17:30:12 +02:00
Karsten Loesing
4f15d8896c Bump version to 1.1.0-dev, yet once more. 2016-10-07 14:26:33 +02:00
Karsten Loesing
c43d0ad995 Prepare for 1.0.2 release. 2016-10-07 10:42:00 +02:00
iwakeh
e2f0bef10b More text for the redirect page.
Including some tweaks by Karsten.
2016-10-07 09:37:04 +02:00
iwakeh
96a4006fd1 Task-20234: the first description of CollecTor's client facing file structure.
Version 0.9
2016-09-30 15:54:50 +02:00
Karsten Loesing
32459655cd Add change log entries for bridgedescs changes. 2016-09-30 15:48:16 +02:00
Karsten Loesing
fff9443dfa Extend checkstyle to test sources.
Also fix MainTest.waitSec() by not oversleeping in case of an
interruption.
2016-09-30 15:32:43 +02:00
iwakeh
7ea23e7e52 Adapted cobertura-check to the new coverage rates. 2016-09-30 15:18:56 +02:00
iwakeh
813edcdb7d Added runTest() and assert stmt to testTarballContainsSameFileTwice.
Switched to use of java.nio.file package methods.
Make DescriptorBuilder extend ArrayList saves a few characters throughout
the builders.
2016-09-30 15:18:51 +02:00
iwakeh
105c1f82a9 Use try-with-resources and refer to new bridge auth in comment. 2016-09-30 12:01:47 +02:00
iwakeh
f3b4636632 Added binary literals as cobertura only warns, but all the results are
computed correctly.
Rather have more readable code.  Test tools will have to adapt.
2016-09-30 11:58:27 +02:00
iwakeh
2164508420 Added tests to point out areas for improvements with next refactoring.
Improved coverage a little as aside-effect.
2016-09-30 11:56:35 +02:00
iwakeh
afc2eac755 Add argument check to constructor and removed redundant code. 2016-09-30 11:55:01 +02:00
iwakeh
c6e58d9c54 Added the ShutdownGraceWaitMinutes property to RunOnce test for branch
diversity in testing.
2016-09-30 11:52:38 +02:00
Karsten Loesing
bcaed1a443 Add tests for transport and transport-info lines. 2016-09-28 21:26:56 +02:00
Karsten Loesing
61bd56b61c Add test for unknown bridge network status lines. 2016-09-28 21:26:56 +02:00
Karsten Loesing
01d55ee96a Add tests for sanitizing TCP ports. 2016-09-28 21:26:55 +02:00
Karsten Loesing
4f556ca13e Fix double assignment found by FindBugs. 2016-09-28 21:26:55 +02:00
Karsten Loesing
21fdc14694 Add test for new "proto" line. 2016-09-28 21:26:50 +02:00
Karsten Loesing
f4716c257c Actually check that ed25519 identities match. 2016-09-28 19:58:20 +02:00
Karsten Loesing
a66e7d350d Validate base64 input more carefully before parsing. 2016-09-28 19:24:37 +02:00
Karsten Loesing
5b6f2b50a4 Check "extra-info" lines more carefully. 2016-09-28 19:24:37 +02:00
Karsten Loesing
f0bc9b2aa7 Validate extra-info-digest lines more carefully. 2016-09-28 19:24:37 +02:00
Karsten Loesing
125d1c065f Add tests for sanitizing IP addresses and TCP ports. 2016-09-28 19:24:37 +02:00
Karsten Loesing
9f15d44712 Add tests for Tonga/Bifroest migration. 2016-09-28 19:24:37 +02:00
Karsten Loesing
2a02c61e43 Check "r" lines in bridge statuses more carefully. 2016-09-28 19:24:37 +02:00
Karsten Loesing
7af5f1e018 Fix possible NullPointerException.
Spotted while writing tests for the bridgedescs module and also
reported independently as #20044.
2016-09-28 19:24:36 +02:00
Karsten Loesing
5da91cae11 Add initial set of tests for bridgedescs module. 2016-09-28 19:24:30 +02:00
Karsten Loesing
0925494bb9 Keep "proto" lines in bridge server descriptors.
These lines have been introduced in proposal 264.

Fixes part of #20252.
2016-09-28 10:03:30 +02:00
Karsten Loesing
f608c94c7f Split up bridge descriptor tarballs into one per type. 2016-09-18 19:52:34 +02:00
Karsten Loesing
ecb053899e Sanitize TCP ports in bridge descriptors.
Implements #19317.
2016-09-18 16:09:33 +02:00