summaryrefslogtreecommitdiffstats
path: root/rust/tests
diff options
context:
space:
mode:
Diffstat (limited to 'rust/tests')
-rw-r--r--rust/tests/test_api_server.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/rust/tests/test_api_server.rs b/rust/tests/test_api_server.rs
index 7d63afe9..3db01f65 100644
--- a/rust/tests/test_api_server.rs
+++ b/rust/tests/test_api_server.rs
@@ -286,6 +286,21 @@ fn test_post_release() {
None,
); // TODO: "secret paper"
+ // No work_id supplied (auto-created)
+ check_response(
+ request::post(
+ "http://localhost:9411/v0/release",
+ headers.clone(),
+ // TODO: target_release_id
+ r#"{"title": "secret minimal paper the second",
+ "release_type": "journal-article"
+ }"#,
+ &router,
+ ),
+ status::Created,
+ None,
+ );
+
check_response(
request::post(
"http://localhost:9411/v0/release",