From f4064c19ec140987e15c64e80a3bf0c70025b31b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 30 Jun 2018 17:34:22 -0700 Subject: history for container entities --- rust/tests/test_api_server.rs | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) (limited to 'rust/tests') diff --git a/rust/tests/test_api_server.rs b/rust/tests/test_api_server.rs index 3db01f65..aadd65af 100644 --- a/rust/tests/test_api_server.rs +++ b/rust/tests/test_api_server.rs @@ -111,6 +111,62 @@ fn test_entity_404() { ); } +#[test] +fn test_entity_history() { + let (headers, router, _conn) = setup(); + + check_response( + request::get( + "http://localhost:9411/v0/container/00000000-0000-0000-1111-000000000002/history", + headers.clone(), + &router, + ), + status::Ok, + Some("changelog"), + ); + /* + check_response( + request::get( + "http://localhost:9411/v0/creator/00000000-0000-0000-2222-000000000001/history", + headers.clone(), + &router, + ), + status::Ok, + Some("changelog"), + ); + + check_response( + request::get( + "http://localhost:9411/v0/file/00000000-0000-0000-3333-000000000002/history", + headers.clone(), + &router, + ), + status::Ok, + Some("changelog"), + ); + + check_response( + request::get( + "http://localhost:9411/v0/release/00000000-0000-0000-4444-000000000002/history", + headers.clone(), + &router, + ), + status::Ok, + Some("changelog"), + ); + + check_response( + request::get( + "http://localhost:9411/v0/work/00000000-0000-0000-5555-000000000002/history", + headers.clone(), + &router, + ), + status::Ok, + Some("changelog"), + ); +*/ +} + #[test] fn test_lookups() { let (headers, router, _conn) = setup(); -- cgit v1.2.3