File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,13 @@ async fn query_all_type() {
48
48
}
49
49
}
50
50
51
- // TODO: 6.2.3 Query normal Qtype = MX
51
+ // TODO: 6.2.3 Query Qtype = MX
52
+ async fn query_mx_type ( ) {
53
+ unimplemented ! ( ) ;
54
+ }
52
55
53
56
54
- // TODO: 6.2.4 Query normal Qtype = NS
57
+ // 6.2.4 Query Qtype = NS
55
58
#[ tokio:: test]
56
59
async fn query_ns_type ( ) {
57
60
let response = query_response ( "example.com" , "NS" ) . await ;
@@ -79,6 +82,19 @@ async fn query_ns_type() {
79
82
}
80
83
}
81
84
82
- // TODO: 6.2.5 Dominio mal escrito Qtype = A
85
+ /// 6.2.5 Mistyped host name Qtype = A
86
+ #[ tokio:: test]
87
+ async fn mistyped_host_name ( ) {
88
+ let response = query_response ( "exampllee.com" , "A" ) . await ;
89
+ assert ! ( response. is_err( ) ) ;
90
+ }
91
+
92
+ /// No record test
93
+ #[ tokio:: test]
94
+ async fn no_resource_available ( ) {
95
+ let response = query_response ( "example.com" , "CNAME" ) . await ;
96
+ assert ! ( response. is_err( ) ) ;
97
+ }
98
+
83
99
84
100
You can’t perform that action at this time.
0 commit comments