diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-11-11 16:39:13 +1300 |
---|---|---|
committer | Douglas Bagnall <dbagnall@samba.org> | 2019-11-13 00:32:36 +0000 |
commit | 88373c472c52ddc1191c1c20e74bff7776d0e805 (patch) | |
tree | 97717e7b35ad191f70515ef919f54596f99e62a3 /source4/librpc | |
parent | dfbb3049585186230a0d28a581ad22de7276614c (diff) | |
download | samba-88373c472c52ddc1191c1c20e74bff7776d0e805.tar.gz |
selftest: Add expected-output tests for the ndrdump struct mode
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14191
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/tests/dns-decode_dns_name_packet-hex.txt | 35 | ||||
-rw-r--r-- | source4/librpc/tests/krb5pac-PAC_DATA.dat | bin | 0 -> 768 bytes |
2 files changed, 35 insertions, 0 deletions
diff --git a/source4/librpc/tests/dns-decode_dns_name_packet-hex.txt b/source4/librpc/tests/dns-decode_dns_name_packet-hex.txt new file mode 100644 index 00000000000..a973c28d5b9 --- /dev/null +++ b/source4/librpc/tests/dns-decode_dns_name_packet-hex.txt @@ -0,0 +1,35 @@ +pull returned NT_STATUS_OK + dns_name_packet: struct dns_name_packet + id : 0xecef (60655) + operation : 0x2800 (10240) + 0x00: DNS_RCODE (0) + 0: DNS_FLAG_RECURSION_AVAIL + 0: DNS_FLAG_RECURSION_DESIRED + 0: DNS_FLAG_TRUNCATION + 0: DNS_FLAG_AUTHORITATIVE + 0x05: DNS_OPCODE (5) + 0: DNS_FLAG_REPLY + qdcount : 0x0001 (1) + ancount : 0x0000 (0) + nscount : 0x0001 (1) + arcount : 0x0000 (0) + questions: ARRAY(1) + questions: struct dns_name_question + name : 'samba2003.example.com' + question_type : DNS_QTYPE_SOA (0x6) + question_class : DNS_QCLASS_IN (0x1) + answers: ARRAY(0) + nsrecs: ARRAY(1) + nsrecs: struct dns_res_rec + name : 'cnamedotprefix0.samba2003.example.com' + rr_type : DNS_QTYPE_CNAME (0x5) + rr_class : DNS_QCLASS_IN (0x1) + ttl : 0x00000384 (900) + length : 0x0013 (19) + rdata : union dns_rdata(case 0x5) + cname_record : '' + unexpected : DATA_BLOB length=18 +[0000] 0F 62 6E 61 6D 65 64 6F 74 70 72 65 66 69 78 32 .bnamedo tprefix2 +[0010] C0 0C .. + additional: ARRAY(0) +dump OK diff --git a/source4/librpc/tests/krb5pac-PAC_DATA.dat b/source4/librpc/tests/krb5pac-PAC_DATA.dat Binary files differnew file mode 100644 index 00000000000..71b48d9d719 --- /dev/null +++ b/source4/librpc/tests/krb5pac-PAC_DATA.dat |