mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
dns: Fix allocation of txt_record in txt record tests
Signed-off-by: Kai Blin <kai@samba.org> Reviewed-By: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Thu May 16 15:39:15 CEST 2013 on sn-devel-104
This commit is contained in:
parent
223cf7fb30
commit
46e98cf20b
@ -390,8 +390,9 @@ class TestDNSUpdates(DNSTest):
|
||||
r.rr_class = dns.DNS_QCLASS_IN
|
||||
r.ttl = 900
|
||||
r.length = 0xffff
|
||||
r.rdata = dns.txt_record()
|
||||
r.rdata.txt = '"This is a test"'
|
||||
rdata = dns.txt_record()
|
||||
rdata.txt = '"This is a test"'
|
||||
r.rdata = rdata
|
||||
updates.append(r)
|
||||
p.nscount = len(updates)
|
||||
p.nsrecs = updates
|
||||
@ -430,8 +431,9 @@ class TestDNSUpdates(DNSTest):
|
||||
r.rr_class = dns.DNS_QCLASS_IN
|
||||
r.ttl = 900
|
||||
r.length = 0xffff
|
||||
r.rdata = dns.txt_record()
|
||||
r.rdata.txt = '"This is a test" "and this is a test, too"'
|
||||
rdata = dns.txt_record()
|
||||
rdata.txt = '"This is a test" "and this is a test, too"'
|
||||
r.rdata = rdata
|
||||
updates.append(r)
|
||||
p.nscount = len(updates)
|
||||
p.nsrecs = updates
|
||||
@ -474,8 +476,9 @@ class TestDNSUpdates(DNSTest):
|
||||
r.rr_class = dns.DNS_QCLASS_IN
|
||||
r.ttl = 900
|
||||
r.length = 0xffff
|
||||
r.rdata = dns.txt_record()
|
||||
r.rdata.txt = '"This is a test"'
|
||||
rdata = dns.txt_record()
|
||||
rdata.txt = '"This is a test"'
|
||||
r.rdata = rdata
|
||||
updates.append(r)
|
||||
p.nscount = len(updates)
|
||||
p.nsrecs = updates
|
||||
@ -510,8 +513,9 @@ class TestDNSUpdates(DNSTest):
|
||||
r.rr_class = dns.DNS_QCLASS_NONE
|
||||
r.ttl = 0
|
||||
r.length = 0xffff
|
||||
r.rdata = dns.txt_record()
|
||||
r.rdata.txt = '"This is a test"'
|
||||
rdata = dns.txt_record()
|
||||
rdata.txt = '"This is a test"'
|
||||
r.rdata = rdata
|
||||
updates.append(r)
|
||||
p.nscount = len(updates)
|
||||
p.nsrecs = updates
|
||||
|
Loading…
Reference in New Issue
Block a user