From 18c1434319ed7be67d11b47ea7c5d1393caba193 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 14 Nov 2018 20:03:38 -0800 Subject: add (disabled) test that invalid fields should error --- rust/tests/test_api_server_http.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'rust/tests/test_api_server_http.rs') diff --git a/rust/tests/test_api_server_http.rs b/rust/tests/test_api_server_http.rs index 0aa6b062..c179637c 100644 --- a/rust/tests/test_api_server_http.rs +++ b/rust/tests/test_api_server_http.rs @@ -448,6 +448,22 @@ fn test_post_release() { status::Created, None, ); // TODO: "secret paper" + + // Bogus non-existant fields + /* XXX: doesn't fail + check_http_response( + request::post( + "http://localhost:9411/v0/release", + headers.clone(), + r#"{"title": "secret minimal paper the second", + "asdf123": "lalala" + }"#, + &router, + ), + status::BadRequest, + None, + ); + */ } #[test] -- cgit v1.2.3