Skip to content

Commit e84828d

Browse files
committed
add no resource and mistyped name integration test
1 parent dd4c117 commit e84828d

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

tests/integration_test.rs

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ async fn query_all_type() {
4848
}
4949
}
5050

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+
}
5255

5356

54-
// TODO: 6.2.4 Query normal Qtype = NS
57+
// 6.2.4 Query Qtype = NS
5558
#[tokio::test]
5659
async fn query_ns_type() {
5760
let response = query_response("example.com", "NS").await;
@@ -79,6 +82,19 @@ async fn query_ns_type() {
7982
}
8083
}
8184

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+
8399

84100

0 commit comments

Comments
 (0)