aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
Diffstat (limited to 'rust')
-rw-r--r--rust/tests/test_api_server.rs35
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,
+ );
+}