summaryrefslogtreecommitdiff
path: root/tests/data.sql
diff options
context:
space:
mode:
authorTom Harley2021-07-09 15:16:54 +0000
committerTom Harley2021-07-09 15:16:54 +0000
commit57e7488149ee093e34774d83ffe161fb305a7dde (patch)
treeed922a052cd8eb6fc5b77c21970cb0d0b02b9cb3 /tests/data.sql
parentAdd testing for authorisation decorators (diff)
downloadswap-57e7488149ee093e34774d83ffe161fb305a7dde.tar.gz
swap-57e7488149ee093e34774d83ffe161fb305a7dde.zip

Add basic inbox/outbox functionality

Lots of added TODOs, and very little test coverage for the new functions.

Next step is to get 100% coverage of what we have so far.

Diffstat (limited to 'tests/data.sql')
-rw-r--r--tests/data.sql49
1 files changed, 46 insertions, 3 deletions
diff --git a/tests/data.sql b/tests/data.sql
index eb1f36e..5add3a2 100644
--- a/tests/data.sql
+++ b/tests/data.sql
@@ -1,4 +1,47 @@
-insert into users (username, password)
+insert into users (username, password, inbox_size)
values
- ('test', 'pbkdf2:sha256:50000$TCI4GzcX$0de171a4f4dac32e3364c7ddc7c14f3e2fa61f2d17574483f7ffbb431b4acb2f'),
- ('other', 'pbkdf2:sha256:50000$kJPKsz6N$d2d4784f1b030a9761f5ccaeeaca413f27f2ecb76d6168407af962ddce849f79');
+ ('test', 'pbkdf2:sha256:50000$TCI4GzcX$0de171a4f4dac32e3364c7ddc7c14f3e2fa61f2d17574483f7ffbb431b4acb2f', 40),
+ ('other', 'pbkdf2:sha256:50000$kJPKsz6N$d2d4784f1b030a9761f5ccaeeaca413f27f2ecb76d6168407af962ddce849f79', 0);
+
+insert into inbox (recipient, ap_content, received)
+values
+ ('test', '1', '2021-07-09T11:21:58+0000'),
+ ('test', '2', '2021-07-09T11:21:58+0000'),
+ ('test', '3', '2021-07-09T11:21:58+0000'),
+ ('test', '4', '2021-07-09T11:21:58+0000'),
+ ('test', '5', '2021-07-09T11:21:58+0000'),
+ ('test', '6', '2021-07-09T11:21:58+0000'),
+ ('test', '7', '2021-07-09T11:21:58+0000'),
+ ('test', '8', '2021-07-09T11:21:58+0000'),
+ ('test', '9', '2021-07-09T11:21:58+0000'),
+ ('test', '10', '2021-07-09T11:21:58+0000'),
+ ('test', '11', '2021-07-09T11:21:58+0000'),
+ ('test', '12', '2021-07-09T11:21:58+0000'),
+ ('test', '13', '2021-07-09T11:21:58+0000'),
+ ('test', '14', '2021-07-09T11:21:58+0000'),
+ ('test', '15', '2021-07-09T11:21:58+0000'),
+ ('test', '16', '2021-07-09T11:21:58+0000'),
+ ('test', '17', '2021-07-09T11:21:58+0000'),
+ ('test', '18', '2021-07-09T11:21:58+0000'),
+ ('test', '19', '2021-07-09T11:21:58+0000'),
+ ('test', '20', '2021-07-09T11:21:58+0000'),
+ ('test', '21', '2021-07-09T11:21:58+0000'),
+ ('test', '22', '2021-07-09T11:21:58+0000'),
+ ('test', '23', '2021-07-09T11:21:58+0000'),
+ ('test', '24', '2021-07-09T11:21:58+0000'),
+ ('test', '25', '2021-07-09T11:21:58+0000'),
+ ('test', '26', '2021-07-09T11:21:58+0000'),
+ ('test', '27', '2021-07-09T11:21:58+0000'),
+ ('test', '28', '2021-07-09T11:21:58+0000'),
+ ('test', '29', '2021-07-09T11:21:58+0000'),
+ ('test', '30', '2021-07-09T11:21:58+0000'),
+ ('test', '31', '2021-07-09T11:21:58+0000'),
+ ('test', '32', '2021-07-09T11:21:58+0000'),
+ ('test', '33', '2021-07-09T11:21:58+0000'),
+ ('test', '34', '2021-07-09T11:21:58+0000'),
+ ('test', '35', '2021-07-09T11:21:58+0000'),
+ ('test', '36', '2021-07-09T11:21:58+0000'),
+ ('test', '37', '2021-07-09T11:21:58+0000'),
+ ('test', '38', '2021-07-09T11:21:58+0000'),
+ ('test', '39', '2021-07-09T11:21:58+0000'),
+ ('test', '40', '2021-07-09T11:21:58+0000');