diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-20 20:23:14 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-07-20 20:23:14 -0700 |
commit | 67b83400633d16480b6842877d3ea11e7ae3fdc5 (patch) | |
tree | b8b69d04b232538d713be1b9d9706c2eb739b7ed /rust/tests | |
parent | 634720bbd2a967a4b2a60c215a63070eabd4db06 (diff) | |
download | fatcat-67b83400633d16480b6842877d3ea11e7ae3fdc5.tar.gz fatcat-67b83400633d16480b6842877d3ea11e7ae3fdc5.zip |
at least some rust editor/group test
Diffstat (limited to 'rust/tests')
-rw-r--r-- | rust/tests/test_api_server.rs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/rust/tests/test_api_server.rs b/rust/tests/test_api_server.rs index 056c6a0e..fbaaa836 100644 --- a/rust/tests/test_api_server.rs +++ b/rust/tests/test_api_server.rs @@ -592,3 +592,38 @@ fn test_400() { None, ); } + +#[test] +fn test_edit_gets() { + let (headers, router, _conn) = setup(); + + check_response( + request::get( + "http://localhost:9411/v0/editor/aaaaaaaaaaaabkvkaaaaaaaaae", + headers.clone(), + &router, + ), + status::Ok, + Some("admin"), + ); + + check_response( + request::get( + "http://localhost:9411/v0/editor/aaaaaaaaaaaabkvkaaaaaaaaae/changelog", + headers.clone(), + &router, + ), + status::Ok, + None, + ); + + check_response( + request::get( + "http://localhost:9411/v0/editgroup/aaaaaaaaaaaabo53aaaaaaaaae", + headers.clone(), + &router, + ), + status::Ok, + None, + ); +} |