diff options
Diffstat (limited to 'rust/tests/test_api_server_http.rs')
-rw-r--r-- | rust/tests/test_api_server_http.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/rust/tests/test_api_server_http.rs b/rust/tests/test_api_server_http.rs index 031a0abf..714cfc68 100644 --- a/rust/tests/test_api_server_http.rs +++ b/rust/tests/test_api_server_http.rs @@ -267,7 +267,7 @@ fn test_lookups() { check_http_response( request::get( - "http://localhost:9411/v0/file/lookup?md5=7d97e98f8af710c7e7fe703abc8f639e0ee507c4", + "http://localhost:9411/v0/file/lookup?md5=00000000000ab9fdc2a128f962faebff", headers.clone(), &router, ), @@ -276,6 +276,15 @@ fn test_lookups() { ); check_http_response( request::get( + "http://localhost:9411/v0/file/lookup?md5=00000000000ab9fdc2a128f962faebfff", + headers.clone(), + &router, + ), + status::BadRequest, + None, + ); + check_http_response( + request::get( "http://localhost:9411/v0/file/lookup?md5=f4de91152c7ab9fdc2a128f962faebff", headers.clone(), &router, @@ -304,7 +313,7 @@ fn test_lookups() { check_http_response( request::get( - "http://localhost:9411/v0/file/lookup?sha1=7d97e98f8af710c7e7fe703abc8f000000000000", + "http://localhost:9411/v0/file/lookup?sha1=00000000000000c7e7fe703abc8f639e0ee507c4", headers.clone(), &router, ), |