aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-17 13:53:18 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-17 13:53:18 -0700
commita3ccecb7b5ec32a9020ba14ae08c482067b44544 (patch)
treeeecbe7afbaf29f5b40acc03e0cf7f16bc0be82ae
parentb4167382d118b28cba0bce9c89abda1589d81574 (diff)
downloadfatcat-a3ccecb7b5ec32a9020ba14ae08c482067b44544.tar.gz
fatcat-a3ccecb7b5ec32a9020ba14ae08c482067b44544.zip
more consistent example data
-rw-r--r--rust/migrations/2018-05-12-001226_init/up.sql12
-rw-r--r--rust/tests/test_api_server.rs2
2 files changed, 7 insertions, 7 deletions
diff --git a/rust/migrations/2018-05-12-001226_init/up.sql b/rust/migrations/2018-05-12-001226_init/up.sql
index e6c54d32..efa02fab 100644
--- a/rust/migrations/2018-05-12-001226_init/up.sql
+++ b/rust/migrations/2018-05-12-001226_init/up.sql
@@ -234,8 +234,8 @@ BEGIN;
INSERT INTO editor (username, is_admin) VALUES
('admin', true),
- ('claire', true),
- ('doug', false);
+ ('demo-user', true),
+ ('claire', false);
INSERT INTO editgroup (editor_id, description) VALUES
(1, 'first edit ever!'),
@@ -256,8 +256,8 @@ INSERT INTO changelog (editgroup_id) VALUES
(5);
INSERT INTO container_rev (name, issnl, abbrev, coden) VALUES
- ('Journal of Trivial Results', '1234-5678', null, null),
- ('MySpace Blog', null, null, null);
+ ('MySpace Blog', null, null, null),
+ ('Journal of Trivial Results', '1234-5678', null, null);
INSERT INTO container_ident (id, is_live, rev_id, redirect_id) VALUES
('00000000-0000-0000-1111-000000000001', true, 1, null),
@@ -269,8 +269,8 @@ INSERT INTO container_edit (ident_id, rev_id, redirect_id, editgroup_id) VALUES
INSERT INTO creator_rev (display_name, given_name, surname, orcid) VALUES
('Grace Hopper', null, null, null),
- ('Emily Noether', 'Emily', 'Noether', null),
- ('Christine Moran', 'Christine', 'Moran', '0000-0003-2088-7465');
+ ('Christine Moran', 'Christine', 'Moran', '0000-0003-2088-7465'),
+ ('Emily Noether', 'Emily', 'Noether', null);
INSERT INTO creator_ident (id, is_live, rev_id, redirect_id) VALUES
('00000000-0000-0000-2222-000000000001', true, 1, null),
diff --git a/rust/tests/test_api_server.rs b/rust/tests/test_api_server.rs
index 9393c09b..32db268c 100644
--- a/rust/tests/test_api_server.rs
+++ b/rust/tests/test_api_server.rs
@@ -52,7 +52,7 @@ fn test_entity_gets() {
&router,
),
status::Ok,
- Some("MySpace"),
+ Some("Trivial Results"),
);
check_response(