+ fn matcorallo_cname_record() -> (CName, RRSig) {
+ let cname_resp = CName {
+ name: "cname_test.matcorallo.com.".try_into().unwrap(),
+ canonical_name: "txt_test.matcorallo.com.".try_into().unwrap(),
+ };
+ let cname_rrsig = RRSig {
+ name: "cname_test.matcorallo.com.".try_into().unwrap(),
+ ty: CName::TYPE, alg: 13, labels: 3, orig_ttl: 30, expiration: 1708319203,
+ inception: 1707104203, key_tag: 34530, key_name: "matcorallo.com.".try_into().unwrap(),
+ signature: base64::decode("5HIrmEotbVb95umE6SX3NrPboKsthdcY8b7DdaYQZzm0Nj5m2VgcfOmEPJYS8o1xE4GvGGF4sdfSy3Uw7TibBg==").unwrap(),
+ };
+ (cname_resp, cname_rrsig)
+ }
+
+ fn matcorallo_wildcard_record() -> (Txt, RRSig) {
+ let txt_resp = Txt {
+ name: "test.wildcard_test.matcorallo.com.".try_into().unwrap(),
+ data: "wildcard_test".to_owned().into_bytes(),
+ };
+ let txt_rrsig = RRSig {
+ name: "test.wildcard_test.matcorallo.com.".try_into().unwrap(),
+ ty: Txt::TYPE, alg: 13, labels: 3, orig_ttl: 30, expiration: 1708321778,
+ inception: 1707106778, key_tag: 34530, key_name: "matcorallo.com.".try_into().unwrap(),
+ signature: base64::decode("vdnXunPY4CnbW/BL8VOOR9o33+dqyKA/4h+u5VM7NjB30Shp8L8gL5UwE0k7TKRNgHC8j3TqEPEmNMIHz87Z4Q==").unwrap(),
+ };
+ (txt_resp, txt_rrsig)
+ }
+
+ fn matcorallo_cname_wildcard_record() -> (CName, RRSig, Txt, RRSig) {
+ let cname_resp = CName {
+ name: "test.cname_wildcard_test.matcorallo.com.".try_into().unwrap(),
+ canonical_name: "cname.wildcard_test.matcorallo.com.".try_into().unwrap(),
+ };
+ let txt_resp = Txt {
+ name: "cname.wildcard_test.matcorallo.com.".try_into().unwrap(),
+ data: "wildcard_test".to_owned().into_bytes(),
+ };
+ let cname_rrsig = RRSig {
+ name: "test.cname_wildcard_test.matcorallo.com.".try_into().unwrap(),
+ ty: CName::TYPE, alg: 13, labels: 3, orig_ttl: 30, expiration: 1708322050,
+ inception: 1707107050, key_tag: 34530, key_name: "matcorallo.com.".try_into().unwrap(),
+ signature: base64::decode("JfJuSemF5dtQYxEw6eKL4IRP8BaDt6FtbtdpZ6HjODTDflhKQRhBEbwT7kwceKPAq18q5sWHFV1bMTqE/F3WLw==").unwrap(),
+ };
+ let txt_rrsig = RRSig {
+ name: "cname.wildcard_test.matcorallo.com.".try_into().unwrap(),
+ ty: Txt::TYPE, alg: 13, labels: 3, orig_ttl: 30, expiration: 1708321778,
+ inception: 1707106778, key_tag: 34530, key_name: "matcorallo.com.".try_into().unwrap(),
+ signature: base64::decode("vdnXunPY4CnbW/BL8VOOR9o33+dqyKA/4h+u5VM7NjB30Shp8L8gL5UwE0k7TKRNgHC8j3TqEPEmNMIHz87Z4Q==").unwrap(),
+ };
+ (cname_resp, cname_rrsig, txt_resp, txt_rrsig)
+ }
+