From bcb9d2c6793b39b165caf9e63c4803d2a28e9876 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 27 May 2018 15:45:03 -0700 Subject: batch POST methods --- rust/tests/test_api_server.rs | 16 ++++++++++++++++ 1 file changed, 16 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 a973b333..c5a5a60c 100644 --- a/rust/tests/test_api_server.rs +++ b/rust/tests/test_api_server.rs @@ -162,6 +162,22 @@ fn test_post_container() { ); // TODO: "test journal" } +#[test] +fn test_post_batch_container() { + let (headers, router, _conn) = setup(); + + check_response( + request::post( + "http://localhost:9411/v0/container/batch", + headers, + r#"[{"name": "test journal"}, {"name": "another test journal"}]"#, + &router, + ), + status::Created, + None, + ); // TODO: "test journal" +} + #[test] fn test_post_creator() { let (headers, router, _conn) = setup(); -- cgit v1.2.3