From d2f50808ef9b96afc36d864adec74f10c9cea9af Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 19 Jun 2018 18:31:55 -0700 Subject: implement (most) of stats endpoint --- rust/tests/test_api_server.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'rust/tests/test_api_server.rs') diff --git a/rust/tests/test_api_server.rs b/rust/tests/test_api_server.rs index 05dd493f..b8f8b3c4 100644 --- a/rust/tests/test_api_server.rs +++ b/rust/tests/test_api_server.rs @@ -429,3 +429,14 @@ fn test_accept_editgroup() { .unwrap(); assert_eq!(c, 1); } + +#[test] +fn test_stats() { + let (headers, router, _conn) = setup(); + + check_response( + request::get("http://localhost:9411/v0/stats", headers, &router), + status::Ok, + Some("merged_editgroups"), + ); +} -- cgit v1.2.3