summaryrefslogtreecommitdiffstats
path: root/features/step_definitions/tor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/step_definitions/tor.rb')
-rw-r--r--features/step_definitions/tor.rb18
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