-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(enginenetx): test
bridgesPolicy
with DNS success (#1554)
This diff introduces a test case for `bridgesPolicy` where we count after how many policies we observe a DNS-generated policy. This test has been crucial to investigate ooni/probe#2704. Based on this test we can conclude the following: 1. if the bridge IP address gets blocked or stops working, we're still falling back to using the DNS; 2. however, the current algorithm does that in a too-slow fashion. Additionally, I manually verified that we're actually falling back to the DNS and that it really takes a long time by changing the implementation to use `10.0.0.1` as the bridge address and verifying that the code behaves as expected (though the "expected" behavior here is not nice at all and we should improve upon that). While there, fix naming and comments.
- Loading branch information
1 parent
81169f0
commit 6efffc5
Showing
7 changed files
with
92 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters