From 67b83400633d16480b6842877d3ea11e7ae3fdc5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 20 Jul 2018 20:23:14 -0700 Subject: at least some rust editor/group test --- rust/tests/test_api_server.rs | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'rust/tests') diff --git a/rust/tests/test_api_server.rs b/rust/tests/test_api_server.rs index 056c6a0e..fbaaa836 100644 --- a/rust/tests/test_api_server.rs +++ b/rust/tests/test_api_server.rs @@ -592,3 +592,38 @@ fn test_400() { None, ); } + +#[test] +fn test_edit_gets() { + let (headers, router, _conn) = setup(); + + check_response( + request::get( + "http://localhost:9411/v0/editor/aaaaaaaaaaaabkvkaaaaaaaaae", + headers.clone(), + &router, + ), + status::Ok, + Some("admin"), + ); + + check_response( + request::get( + "http://localhost:9411/v0/editor/aaaaaaaaaaaabkvkaaaaaaaaae/changelog", + headers.clone(), + &router, + ), + status::Ok, + None, + ); + + check_response( + request::get( + "http://localhost:9411/v0/editgroup/aaaaaaaaaaaabo53aaaaaaaaae", + headers.clone(), + &router, + ), + status::Ok, + None, + ); +} -- cgit v1.2.3