diff options
author | bertagaz <bertagaz@ptitcanardnoir.org> | 2016-08-07 18:43:02 +0200 |
---|---|---|
committer | bertagaz <bertagaz@ptitcanardnoir.org> | 2016-08-07 18:43:02 +0200 |
commit | 74f0d7d8c8480a2d3d6435aafabec59bc52c7fca (patch) | |
tree | db5221325946d612431ac343568abd8ce17d1524 /features/step_definitions/tor.rb | |
parent | b6e73e0facf77b1000ef0cfe31fc86f79072b575 (diff) | |
parent | 76781166535d1cffc3601c95fb91361fd335d0a0 (diff) |
Merge remote-tracking branch 'origin/devel' into feature/tor-bootstrap-failure-stats-for-10238feature/tor-bootstrap-failure-stats-for-10238
Diffstat (limited to 'features/step_definitions/tor.rb')
-rw-r--r-- | features/step_definitions/tor.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/features/step_definitions/tor.rb b/features/step_definitions/tor.rb index babde27..ff78d81 100644 --- a/features/step_definitions/tor.rb +++ b/features/step_definitions/tor.rb @@ -394,21 +394,3 @@ When /^all Internet traffic has only flowed through the configured pluggable tra @bridge_hosts.include?({ address: c.daddr, port: c.dport }) end end - -Then /^the Tor binary is configured to use the expected Tor authorities$/ do - tor_auths = Set.new - tor_binary_orport_strings = $vm.execute_successfully( - "strings /usr/bin/tor | grep -E 'orport=[0-9]+'").stdout.chomp.split("\n") - tor_binary_orport_strings.each do |potential_auth_string| - auth_regex = /^\S+ orport=\d+( bridge)?( no-v2)?( v3ident=[A-Z0-9]{40})? ([0-9\.]+):\d+( [A-Z0-9]{4}){10}$/ - m = auth_regex.match(potential_auth_string) - if m - auth_ipv4_addr = m[4] - tor_auths << auth_ipv4_addr - end - end - expected_tor_auths = Set.new(TOR_AUTHORITIES) - assert_equal(expected_tor_auths, tor_auths, - "The Tor binary does not have the expected Tor authorities " + - "configured") -end |