377 Commits

Author SHA1 Message Date
haad
e338f4039a Add tests for dropping databases 2023-03-09 09:32:11 +02:00
haad
3008529511 Fix linter 2023-03-09 09:12:14 +02:00
haad
bb6fa4ca1a Add 'amount' parameter to keyvalue iterator 2023-03-09 09:10:25 +02:00
haad
e951d2265d Add 'amount' parameter to documents iterator 2023-03-09 08:52:35 +02:00
haad
5a72a16e58 Test directory existence in persisted key-value store 2023-03-09 08:39:21 +02:00
haad
ec3f5cbfa0 Fix database address usage 2023-03-09 08:38:47 +02:00
haad
eff34dc204 Increase global maximum event listener limit for tests 2023-03-09 07:42:36 +02:00
Hayden Young
87a6f1dcf3 fix: Linting. 2023-03-07 20:41:13 +00:00
Hayden Young
383524918f test: Tests for newHeads issue. 2023-03-07 20:38:36 +00:00
Hayden Young
8fc5b77c51 test: Remove db replication. Covered by db/replication. 2023-03-07 15:58:16 +00:00
Hayden Young
be34376884 test: Remove redundant feed tests. 2023-03-07 15:57:36 +00:00
Hayden Young
796e84af10 test: Rename tests to better reflect what is being tested. 2023-03-07 11:42:07 +00:00
Hayden Young
93366f0b8c test: Remove redundant counter tests. 2023-03-07 01:41:41 +00:00
Hayden Young
528ce98186 test: Remove custom keystore. Merged with keystore tests. 2023-03-07 00:03:13 +00:00
Hayden Young
9b2dd487b8 fix: Linting. 2023-03-06 22:23:51 +00:00
Hayden Young
885fc5f02c test: Load keys into storage and retrieve from keystore. 2023-03-06 22:21:17 +00:00
Hayden Young
1fb02ea4cb refactor: Throw any storage errors when adding a key. 2023-03-06 17:56:38 +00:00
Hayden Young
53369de51c test: default and custom options. 2023-03-06 16:34:51 +00:00
Hayden Young
632bd3dfbe test: Test replication of keyvalue db. 2023-03-06 16:34:11 +00:00
Hayden Young
0347f3a7c2
test: Test cases for lamport clock and oplog sorting. (#28)
* test: Test cases for lamport clock and oplog sorting.

* fix: Linting.
2023-03-06 04:45:15 +08:00
haad
7c4187fdad Remove obsolete files and fixtures 2023-03-03 09:30:32 +02:00
haad
4c31514a1b Refactor names and functions in Sync 2023-03-03 09:05:10 +02:00
haad
ebdafaa248 Improve sync protocol event handling 2023-03-03 07:38:25 +02:00
haad
eacada3ab2 Don't use secp256k1.publicKeyConvert function 2023-03-02 10:08:07 +02:00
haad
9f50fb5e53 Use js-ipfs only in tests 2023-03-02 09:08:17 +02:00
haad
739ddc9ded Disable Ethereum and DID identity providers for now 2023-03-02 08:32:28 +02:00
haad
dd22ceabb7 Fix tests, remove old fixtures data 2023-03-02 08:16:59 +02:00
haad
b1e953d926 Clean up database tests 2023-03-02 07:41:44 +02:00
haad
2c6e40c0f1 Fix identity storage path and clean up tests 2023-03-02 07:24:21 +02:00
haad
fbc76b4b31 Clean up oplog tests 2023-03-02 07:08:05 +02:00
haad
13d5c93701 Clean up test files 2023-03-02 06:00:45 +02:00
haad
4a7d3f0720 Move files, clean up 2023-03-01 18:16:06 +02:00
haad
a063b3fb4a Refactor OrbitDB
Fix sync
Fix linter
Fix tests
Clean up
Set default references count to 0
Fix sync
Use address instead of databaseId
Sync protocol
Keep references to open databases in OrbitDB
Fix append benchmark
Initial version of heads exchange
Remove Feed
Fix KeyValuePersisted iterator
Refactor OrbitDBAddress a bit more
Add rest of the database types
Refactor OrbitDB addresses
Initial version for the full circle
Initial structure and tests for new OrbitDB
Make sure KeyStore is open when a Database is created
Re-organize OrbitDB
Use new databases and Log
More clean up
Add 'drop' event to Database
Clean up OrbitDB
Remove id from OrbitDB
Use new KeyStore and Identities
Remove storage from OrbitDB
Remove migrations from OrbitDB
Remove caches from OrbitDB
Remove pubsub from OrbitDB
2023-03-01 16:21:07 +02:00
haad
1575f00912 Add new test keys fixtures database 2023-03-01 14:49:00 +02:00
Hayden Young
f6368c2645 feat: Implement new keystore across tests. 2023-03-01 10:01:17 +00:00
Hayden Young
ba71a7985e feat: Use composite storage for key store. 2023-02-28 16:30:36 +00:00
Hayden Young
0c5c44e429 refactor: Generate keys using crypto. 2023-02-28 03:34:55 +00:00
Hayden Young
bf86156f9f refactor: Use KeyStore as function. Export signMessage and verifyMessage to avoid clashes with similarly named functions. 2023-02-27 02:42:18 +00:00
Hayden Young
2e8530e7b1 test: Persisted keyvalue with KeyStore. 2023-02-26 23:23:27 +00:00
Hayden Young
0dac15ba7f test: Signing and verifying. 2023-02-26 18:16:28 +00:00
Hayden Young
be2d5900de refactor: wip. 2023-02-24 19:57:16 +00:00
haad
e8c1ead900 Fix EventStore tests 2023-02-24 08:30:47 +02:00
Hayden Young
1fe62104c6 refactor: queue writes to index. 2023-02-24 02:51:56 +00:00
Hayden Young
678ba05e50 feat: Do not include Feed as a store. 2023-02-24 00:50:38 +00:00
Hayden Young
3f70f4ddd2 refactor: Do not return hash as part of iterator result. 2023-02-24 00:46:56 +00:00
Hayden Young
0cdd740df6 test: Key/Value. 2023-02-23 02:36:50 +00:00
Hayden Young
3027b9dfbd test: Feed test. 2023-02-23 00:05:19 +00:00
Hayden Young
ba521f7bc2 test: Ranges. 2023-02-22 21:07:08 +00:00
Hayden Young
56a3860154 test: Remove redundant tests 2023-02-22 16:42:50 +00:00
Hayden Young
0381c74146 test: Iterator option tests. 2023-02-22 16:39:05 +00:00