From a3ccecb7b5ec32a9020ba14ae08c482067b44544 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 17 Jun 2018 13:53:18 -0700 Subject: more consistent example data --- rust/migrations/2018-05-12-001226_init/up.sql | 12 ++++++------ rust/tests/test_api_server.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'rust') 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( -- cgit v1.2.3