aboutsummaryrefslogtreecommitdiffstats
path: root/rust/tests/test_api_server_http.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-26 23:43:56 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-26 23:45:02 -0800
commitda113570daf4b2d17cd828e3b512774485870ff0 (patch)
tree075b02998eb3eb4d4d0878317dbd0a71ef8b64a9 /rust/tests/test_api_server_http.rs
parent32cd25bf48d54f5ede4e327d073d2782e4a81524 (diff)
downloadfatcat-da113570daf4b2d17cd828e3b512774485870ff0.tar.gz
fatcat-da113570daf4b2d17cd828e3b512774485870ff0.zip
implement hide flag
Diffstat (limited to 'rust/tests/test_api_server_http.rs')
-rw-r--r--rust/tests/test_api_server_http.rs16
1 files changed, 13 insertions, 3 deletions
diff --git a/rust/tests/test_api_server_http.rs b/rust/tests/test_api_server_http.rs
index c179637c..614e6b65 100644
--- a/rust/tests/test_api_server_http.rs
+++ b/rust/tests/test_api_server_http.rs
@@ -81,7 +81,7 @@ fn test_entity_gets() {
// expand keyword
check_http_response(
request::get(
- "http://localhost:9411/v0/release/aaaaaaaaaaaaarceaaaaaaaaai?expand=all",
+ "http://localhost:9411/v0/release/aaaaaaaaaaaaarceaaaaaaaaai?expand=container",
headers.clone(),
&router,
),
@@ -89,6 +89,17 @@ fn test_entity_gets() {
Some("MySpace Blog"),
);
+ // hide keyword
+ check_http_response(
+ request::get(
+ "http://localhost:9411/v0/release/aaaaaaaaaaaaarceaaaaaaaaai?hide=refs,container",
+ headers.clone(),
+ &router,
+ ),
+ status::Ok,
+ Some("bigger example"),
+ );
+
check_http_response(
request::get(
"http://localhost:9411/v0/work/aaaaaaaaaaaaavkvaaaaaaaaai",
@@ -463,8 +474,7 @@ fn test_post_release() {
status::BadRequest,
None,
);
- */
-}
+ */}
#[test]
fn test_post_work() {