diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-06-04 00:19:36 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-06-04 00:19:36 -0700 |
commit | 0ec7c973417f5d120db80d1c1dd3e329711a1ca4 (patch) | |
tree | 194c0ca49f13db09cb07f0a640edcd6430c61587 /rust/tests/test_api_server.rs | |
parent | 09c8fffe9fbf94a3004b5dda5dd9e50496591ad6 (diff) | |
download | fatcat-0ec7c973417f5d120db80d1c1dd3e329711a1ca4.tar.gz fatcat-0ec7c973417f5d120db80d1c1dd3e329711a1ca4.zip |
update rust/api for schema extensions
Diffstat (limited to 'rust/tests/test_api_server.rs')
-rw-r--r-- | rust/tests/test_api_server.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/rust/tests/test_api_server.rs b/rust/tests/test_api_server.rs index 36605661..9393c09b 100644 --- a/rust/tests/test_api_server.rs +++ b/rust/tests/test_api_server.rs @@ -186,7 +186,7 @@ fn test_post_creator() { request::post( "http://localhost:9411/v0/creator", headers, - r#"{"full_name": "some person"}"#, + r#"{"display_name": "some person"}"#, &router, ), status::Created, @@ -215,7 +215,10 @@ fn test_post_file() { headers, r#"{"size": 76543, "sha1": "f013d66c7f6817d08b7eb2a93e6d0440c1f3e7f8", + "md5": "f013d66c7f6817d08b7eb2a93e6d0440c1f3e7f8", + "sha256": "f013d66c7f6817d08b7eb2a93e6d0440c1f3e7f8", "url": "http://archive.org/asdf.txt", + "mimetype": "application/pdf", "releases": [ "00000000-0000-0000-4444-000000000001", "00000000-0000-0000-4444-000000000002" @@ -263,17 +266,17 @@ fn test_post_release() { "container_id": "00000000-0000-0000-1111-000000000001", "refs": [{ "index": 3, - "stub": "just a string" + "raw": "just a string" },{ - "stub": "just a string" + "raw": "just a string" }], "contribs": [{ "index": 1, - "creator_stub": "textual description of contributor (aka, name)", + "raw": "textual description of contributor (aka, name)", "creator_id": "00000000-0000-0000-2222-000000000001", "contrib_type": "author" },{ - "creator_stub": "shorter" + "raw": "shorter" }], "extra": { "source": "speculation" } }"#, |