diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-25 19:06:03 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-25 19:06:03 -0700 |
commit | f653c4070a076306825501ddbc27c0634d0e1438 (patch) | |
tree | 34241b90346dfb73947c89f3eed01ad9bc73765f /rust/tests | |
parent | 6f54d75f644ab5f0120637b1ceb13b16a4c8534d (diff) | |
download | fatcat-f653c4070a076306825501ddbc27c0634d0e1438.tar.gz fatcat-f653c4070a076306825501ddbc27c0634d0e1438.zip |
extra_json in POST
Diffstat (limited to 'rust/tests')
-rw-r--r-- | rust/tests/test_api_server.rs | 11 |
1 files changed, 8 insertions, 3 deletions
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, |