diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-14 20:03:38 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-14 20:03:38 -0800 |
commit | 18c1434319ed7be67d11b47ea7c5d1393caba193 (patch) | |
tree | 6502eb842e0892866e43a84ef3f3dc4480a46e78 /rust/tests | |
parent | b8aa57160b6b5de9dca3196a792f46c6f785da31 (diff) | |
download | fatcat-18c1434319ed7be67d11b47ea7c5d1393caba193.tar.gz fatcat-18c1434319ed7be67d11b47ea7c5d1393caba193.zip |
add (disabled) test that invalid fields should error
Diffstat (limited to 'rust/tests')
-rw-r--r-- | rust/tests/test_api_server_http.rs | 16 |
1 files changed, 16 insertions, 0 deletions
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] |