Commented out the tests for DNS code.

This commit is contained in:
antisnatchor
2014-03-02 16:14:56 +00:00
parent 91fa8f4e63
commit 2f7ccf033c
2 changed files with 3 additions and 2 deletions

View File

@@ -296,6 +296,7 @@ class TC_Dns < Test::Unit::TestCase
# Compares output of dig command against regex
def check_dns_response(regex, type, pattern)
#TODO antisnatchor: dangerous, replace with IO.open([param_array]) as in web_cloner.rb
dig_output = `dig @#{@@dns.address} -p #{@@dns.port} -t #{type} #{pattern}`
assert_match(regex, dig_output)
end

View File

@@ -27,7 +27,7 @@ require './extensions/tc_hooks'
require './extensions/tc_proxy'
require './extensions/tc_requester'
require './extensions/tc_event_logger'
require './extensions/tc_dns'
#require './extensions/tc_dns'
require './tc_grep'
require './tc_filesystem'
@@ -56,7 +56,7 @@ class TS_BeefTests
suite << TC_EventLogger.suite
suite << TC_Hooks.suite
suite << TC_Redirector.suite
suite << TC_Dns.suite
#suite << TC_Dns.suite
return suite
end