dnsruby 1.37 → 1.38

Sign up to get free protection for your applications and to get access to all the features.
data/test/tc_auth.rb DELETED
@@ -1,49 +0,0 @@
1
- #--
2
- #Copyright 2007 Nominet UK
3
- #
4
- #Licensed under the Apache License, Version 2.0 (the "License");
5
- #you may not use this file except in compliance with the License.
6
- #You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- #Unless required by applicable law or agreed to in writing, software
11
- #distributed under the License is distributed on an "AS IS" BASIS,
12
- #WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- #See the License for the specific language governing permissions and
14
- #limitations under the License.
15
- #++
16
- require 'test/unit'
17
- require 'dnsruby'
18
- require 'net/ftp'
19
- include Dnsruby
20
-
21
- class TestAuth < Test::Unit::TestCase
22
- def test_auth
23
- # @TODO@ Test that we can resolve frobbit.se securely
24
- Dnsruby::PacketSender.clear_caches
25
- dlv_key = RR.create("dlv.isc.org. IN DNSKEY 257 3 5 BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWEn4MxDCE1+lLy2 brhQv5rN32RKtMzX6Mj70jdzeND4XknW58dnJNPCxn8+jAGl2FZLK8t+ 1uq4W+nnA3qO2+DL+k6BD4mewMLbIYFwe0PG73Te9fZ2kJb56dhgMde5 ymX4BI/oQ+cAK50/xvJv00Frf8kw6ucMTwFlgPe+jnGxPPEmHAte/URk Y62ZfkLoBAADLHQ9IrS2tryAe7mbBZVcOwIeU/Rw/mRx/vwwMCTgNboM QKtUdvNXDrYJDSHZws3xiRXF1Rf+al9UmZfSav/4NWLKjHzpT59k/VSt TDN0YUuWrBNh")
26
- Dnssec.add_dlv_key(dlv_key)
27
- #Dnssec.load_itar
28
- r = Dnsruby::Recursor.new
29
- # Dnsruby::TheLog.level = Logger::DEBUG
30
- ret = r.query("frobbit.se", Dnsruby::Types.A)
31
- print ret
32
- assert(ret.security_level == Message::SecurityLevel::SECURE)
33
- print "Done frobbit A record\n"
34
- ret = r.query("frobbit.se", Dnsruby::Types.MX)
35
- print ret
36
- assert(ret.security_level == Message::SecurityLevel::SECURE)
37
- ret = r.query("ns2.nic.se", Dnsruby::Types.A)
38
- print ret
39
- assert(ret.security_level == Message::SecurityLevel::SECURE)
40
- ret = r.query("nic.se", Dnsruby::Types.NS)
41
- print ret
42
- assert(ret.security_level == Message::SecurityLevel::SECURE)
43
- ret = r.query("ns3.nic.se", Dnsruby::Types.A)
44
- print ret
45
- assert(ret.security_level == Message::SecurityLevel::SECURE)
46
-
47
- end
48
-
49
- end
data/test/ts_queue.rb DELETED
@@ -1,3 +0,0 @@
1
-
2
- require "test/tc_queue.rb"
3
-