Ben Passmore
9f1e8f5e8d
Updated copyright
2019-01-01 11:57:28 +10:00
Wade Alcorn
fca5279f17
Updated Copyright dates
2018-01-04 09:12:47 +10:00
Wade Alcorn
91cc7ed873
Updated Copyright information
2016-12-29 15:50:13 +10:00
Brendan Coles
849a3c47e1
Re-enable DNS unit tests
2016-04-22 08:49:48 +00:00
Wade Alcorn
ce01d9fa46
updated copyright year
2015-12-30 08:11:57 +10:00
Wade Alcorn
2fbca61368
Updated copyright dates
2014-12-30 07:44:58 +10:00
soh_cah_toa
01ad87250f
Removed unnecessary run_server unit tests.
...
Setting the server address:port is now handled by RubyDNS. Therefore,
verifying this via unit tests is no longer necessary.
2014-04-23 22:02:19 -04:00
soh_cah_toa
820ba3a2e7
Updated interface unit tests with new method names.
2014-04-23 21:50:23 -04:00
soh_cah_toa
3ed4098c2f
Added unit test assertions for new config options.
2014-04-23 21:47:45 -04:00
bcoles
c11d4d40ea
replace backticks with IO.open
2014-03-03 22:31:14 +10:30
antisnatchor
2f7ccf033c
Commented out the tests for DNS code.
2014-03-02 16:14:56 +00:00
antisnatchor
ec9cf4d460
Manually merged DNS extension code (pull request 967 from @soh-cah-toa)
2014-03-02 12:56:33 +00:00
soh_cah_toa
b2aed14234
Added regex support to #add_rule (tests included).
...
Due to strange behavior in Sourcify, the /.../ literal syntax cannot
be used as a parameter; only %r{} or Regexp::new. There is a note
for this in the documentation for #add_rule.
2013-07-22 22:37:39 -04:00
soh_cah_toa
6a62cf9eaa
Added public attributes 'address' and 'port' to Dns::Server.
...
This removes the need to search config.yaml for the address:port.
Also included unit tests.
2013-07-19 22:33:40 -04:00
soh_cah_toa
8d961c1938
Added support for rules that fail to resolve (e.g. NXDOMAIN).
...
Included unit tests.
2013-07-19 22:15:25 -04:00
soh_cah_toa
141a12a92f
Included #remove_ruleset in public interface tests.
2013-07-17 18:19:56 -04:00
soh_cah_toa
95d0ddbe87
Added new method #remove_ruleset that clears the entire DNS ruleset.
...
Included unit tests as well.
2013-07-17 18:16:46 -04:00
soh_cah_toa
9cfb98963d
Added unit tests for #get_ruleset.
2013-07-16 23:48:46 -04:00
soh_cah_toa
94da775ba6
Added unit tests for #remove_rule (good and bad behavior).
2013-07-15 23:58:37 -04:00
soh_cah_toa
85d4375825
Added unit tests for #get_rule with an invalid id.
...
Also overrode Kernel#puts to suppress output from RubyDNS.
2013-07-15 23:36:29 -04:00
soh_cah_toa
4d0f58684f
Divided #add_rule tests into separate good and bad tests.
...
Also added unit tests that verify rule id format.
2013-07-15 23:07:06 -04:00
soh_cah_toa
8d95e6f522
Changed public interface tests to use #assert_respond_to.
...
This will improve the accuracy of potential error messages.
2013-07-15 18:25:33 -04:00
soh_cah_toa
5769615cd5
Added unit tests for #get_rule.
...
Also removed convenience variables from #add_rule tests (domain and
response). The "response" key in the hash returned by #get_rule is
generated by Sourcify which sourcifies the variable name, not its
value.
2013-07-15 03:48:01 -04:00
soh_cah_toa
1ffa21d62a
Added unit tests for #add_rule.
...
These represent the first actual tests for the Dns::Server class.
2013-07-15 02:47:37 -04:00
soh_cah_toa
d8a8e37029
Moved DM adapter setup into first "test" method.
...
Since #setup is called between each test, the database table would
otherwise be cleared every time.
2013-07-15 02:39:41 -04:00
soh_cah_toa
8270abd2d5
Added unit tests for Dns::Server public interface.
2013-07-15 02:12:31 -04:00
soh_cah_toa
3865aab7ee
Added unit tests for required config.yaml settings.
2013-07-15 02:07:26 -04:00
soh_cah_toa
123c3cdc04
FIXED UNIT TEST ISSUES!!! \(^o^)/
...
Load path and configuration setup belong in #startup along with any
required files. DataMapper adapter connections go in #setup. That's
the secret recipe.
2013-07-15 02:00:12 -04:00
soh_cah_toa
d9f7af2721
Reference point for broken unit tests.
...
NoMethodError and NameError are present.
2013-06-22 03:32:42 -04:00
soh_cah_toa
d2ac9e0f7a
Included broken DNS unit tests so others can help debug.
...
Temporary 'dns' and 'dns_rest' Rake tasks make it easier to run tests.
2013-06-08 23:25:23 -04:00
soh_cah_toa
0af4029915
Added placeholders necessary to start DNS unit tests.
...
Currently does nothing but assert(true).
2013-06-03 21:42:34 -04:00