From f653c4070a076306825501ddbc27c0634d0e1438 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 25 May 2018 19:06:03 -0700 Subject: extra_json in POST --- rust/tests/test_api_server.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'rust/tests') diff --git a/rust/tests/test_api_server.rs b/rust/tests/test_api_server.rs index 1ffbee90..01db031f 100644 --- a/rust/tests/test_api_server.rs +++ b/rust/tests/test_api_server.rs @@ -203,7 +203,8 @@ fn test_post_file() { "releases": [ "f1f046a3-45c9-4b99-4444-000000000001", "f1f046a3-45c9-4b99-4444-000000000002" - ] + ], + "extra": { "source": "speculation" } }"#, &router, ), @@ -257,7 +258,8 @@ fn test_post_release() { "contrib_type": "author" },{ "creator_stub": "shorter" - }] + }], + "extra": { "source": "speculation" } }"#, &router, ), @@ -275,7 +277,10 @@ fn test_post_work() { "http://localhost:9411/v0/work", headers.clone(), // TODO: target_work_id - r#"{"work_type": "journal-article"}"#, + r#"{ + "work_type": "journal-article", + "extra": { "source": "speculation" } + }"#, &router, ), status::Created, -- cgit v1.2.3