Initial commit

This commit is contained in:
2021-12-23 10:10:59 +00:00
commit 021d067d86
11 changed files with 2320 additions and 0 deletions

16
tests/health_check.rs Normal file
View File

@@ -0,0 +1,16 @@
pub mod test_helper;
#[actix_rt::test]
async fn health_check_works() {
let address = test_helper::spawn_app();
let client = reqwest::Client::new();
let response = client
.get(&format!("{}/ping", &address))
.send()
.await
.expect("Failed to execute request.");
assert!(response.status().is_success());
assert_eq!(Some(0), response.content_length());
}