summaryrefslogtreecommitdiffstats
path: root/rust/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-07-20 21:01:44 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-07-20 21:01:44 -0700
commitf3243f752f4a1eaae8726674b1978d96ad8da2e4 (patch)
tree7a9c75280fa1a0a45a11acf8af333e86fc9b4494 /rust/tests
parent67b83400633d16480b6842877d3ea11e7ae3fdc5 (diff)
downloadfatcat-f3243f752f4a1eaae8726674b1978d96ad8da2e4.tar.gz
fatcat-f3243f752f4a1eaae8726674b1978d96ad8da2e4.zip
oops, forgot revisions should be UUID
Diffstat (limited to 'rust/tests')
-rw-r--r--rust/tests/test_api_server.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/rust/tests/test_api_server.rs b/rust/tests/test_api_server.rs
index fbaaa836..4c269e7f 100644
--- a/rust/tests/test_api_server.rs
+++ b/rust/tests/test_api_server.rs
@@ -57,6 +57,17 @@ fn test_entity_gets() {
Some("Trivial Results"),
);
+ // Check revision encoding
+ check_response(
+ request::get(
+ "http://localhost:9411/v0/container/aaaaaaaaaaaaaeiraaaaaaaaai",
+ headers.clone(),
+ &router,
+ ),
+ status::Ok,
+ Some("00000000-0000-0000-1111-fff000000002"),
+ );
+
check_response(
request::get(
"http://localhost:9411/v0/creator/aaaaaaaaaaaaaircaaaaaaaaae",