sort pdns tests

This commit is contained in:
Stefan Bühler 2017-12-30 13:05:08 +01:00
parent 36ee9e704a
commit adc8bb1f4f
1 changed files with 37 additions and 37 deletions

View File

@ -358,6 +358,25 @@ fn test_KEY() {
);
}
#[test]
fn test_AAAA() {
check(types::AAAA,
"fe80::250:56ff:fe9b:114",
None,
b"\xFE\x80\x00\x00\x00\x00\x00\x00\x02\x50\x56\xFF\xFE\x9B\x01\x14",
);
check(types::AAAA,
"2a02:1b8:10:2::151",
None,
b"\x2a\x02\x01\xb8\x00\x10\x00\x02\x00\x00\x00\x00\x00\x00\x01\x51",
);
check(types::AAAA,
"::1",
None,
b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01",
);
}
#[test]
fn test_LOC() {
check(types::LOC,
@ -382,25 +401,6 @@ fn test_LOC() {
);
}
#[test]
fn test_AAAA() {
check(types::AAAA,
"fe80::250:56ff:fe9b:114",
None,
b"\xFE\x80\x00\x00\x00\x00\x00\x00\x02\x50\x56\xFF\xFE\x9B\x01\x14",
);
check(types::AAAA,
"2a02:1b8:10:2::151",
None,
b"\x2a\x02\x01\xb8\x00\x10\x00\x02\x00\x00\x00\x00\x00\x00\x01\x51",
);
check(types::AAAA,
"::1",
None,
b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01",
);
}
#[test]
fn test_SRV() {
// local name
@ -736,6 +736,15 @@ fn test_EUI64() {
);
}
#[test]
fn test_TKEY() {
check(types::TKEY,
"gss-tsig. 12345 12345 3 21 4 dGVzdA== 4 dGVzdA==",
None,
b"\x08gss-tsig\x00\x00\x00\x30\x39\x00\x00\x30\x39\x00\x03\x00\x15\x00\x04test\x00\x04test",
);
}
#[test]
fn test_TSIG() {
check(types::TSIG,
@ -750,24 +759,6 @@ fn test_TSIG() {
);
}
#[test]
fn test_TKEY() {
check(types::TKEY,
"gss-tsig. 12345 12345 3 21 4 dGVzdA== 4 dGVzdA==",
None,
b"\x08gss-tsig\x00\x00\x00\x30\x39\x00\x00\x30\x39\x00\x03\x00\x15\x00\x04test\x00\x04test",
);
}
#[test]
fn test_DLV() {
check(types::DLV,
"20642 8 2 04443abe7e94c3985196beae5d548c727b044dda5151e60d7cd76a9fd931d00e",
None,
b"\x50\xa2\x08\x02\x04\x44\x3a\xbe\x7e\x94\xc3\x98\x51\x96\xbe\xae\x5d\x54\x8c\x72\x7b\x04\x4d\xda\x51\x51\xe6\x0d\x7c\xd7\x6a\x9f\xd9\x31\xd0\x0e",
);
}
#[test]
fn test_URI() {
check(types::URI,
@ -791,6 +782,15 @@ fn test_CAA() {
);
}
#[test]
fn test_DLV() {
check(types::DLV,
"20642 8 2 04443abe7e94c3985196beae5d548c727b044dda5151e60d7cd76a9fd931d00e",
None,
b"\x50\xa2\x08\x02\x04\x44\x3a\xbe\x7e\x94\xc3\x98\x51\x96\xbe\xae\x5d\x54\x8c\x72\x7b\x04\x4d\xda\x51\x51\xe6\x0d\x7c\xd7\x6a\x9f\xd9\x31\xd0\x0e",
);
}
#[test]
fn test_TYPE65226() {
let d1 = text::parse_with("\\# 3 414243", |data| {