Skip to content

Commit cbb8b2b

Browse files
committed
Added regression tests.
1 parent 2356d40 commit cbb8b2b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

rust/src/main.rs

+12
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,16 @@ mod tests {
8686
let services = result.unwrap();
8787
assert!(!services.is_empty());
8888
}
89+
90+
#[tokio::test]
91+
async fn test_find_service_by_environment() {
92+
let result = ServiceManager::find_service_by_environment("image", "10").await;
93+
94+
// The reult should be Ok().
95+
assert!(result.is_ok());
96+
97+
// Validate data.
98+
let services = result.unwrap();
99+
assert!(!services.is_empty());
100+
}
89101
}

0 commit comments

Comments
 (0)