182 Commits

Author SHA1 Message Date
Mark Henderson
e793edf9cf Preliminary cache migration code
cache loading test

this.attemptMigration

Migration data and cleanup

Linting

IPFS data

Revert "Linting"

This reverts commit e41bc4a9ec2011716300134f985c7ec749743177.

Revert "IPFS data"

This reverts commit 299e0b7b72d74cdbaec80ad0796211790404e4c3.

Better fixtures

package-lock.json

Test for directory options

directory option working

Fixing eventlog tests

Safer migration

Moving to migrations folder

Linting
2019-09-02 09:34:54 -04:00
Mark Henderson
47a18b05f5 dev:updating keystore in package.json to git branch
pointing to fix/store-performance branch

fix:typo

fix: indentation

test: Changing test to reflect new orbit-store default

Update package.json

test: updating tests

update localstorage-level-migration dep

experiment:Moving keystore up ALL way

orbitdb storage adapter mark 1

fix: more passing tests

more fixes

chore:package-lock.json

reverting mkdir.c for now

package-lock.json for node 10.13

fix: circleci

fix: webpack fs updates

disabling loadCache

Moving storage adapter to its own thing

tests: fixing up

chore: long needed fixing

More linting

tests: fix up look sharp

test: v0 failure only

Reversting lint fixes

fix v0-load test

set cache heads

fix: passing in storage no longer needed

fix: removing artifact from previous merge

fix: honor default keystore and pesky call-by-reference bug

fix: removing directory arg from _addManifestToCache

chore: package-lock

fix: pending drop test

removing directory option for individual dbs

docs: removing directory options

fix: removing line instead of commenting

fix: moving storage setup to createInstance

feat: Upgrading ipfs to 0.36

chore: package-log

fix: restoring onlyHash

workaround: removing memstore from replication tests

fix: this.keystore.close and this.cache.close

chore: removing eslint annotation

chore: package-lock.json

fix: passing preCreate in as option

chore: package files

Fixing package.json

fixing replicate tests

Fixing some tests

Updating orbit-db-store dependency

CircleCI updates - To be obviated via other PR

Restoring ability to pass a custom directory to orbitdb.create

More test fixes

set identity tests fixed

Fixing replication tests

Temporarily disabling concurrency tests

Closing keystore in identities test

Restoring test:all

package.json

More replicate test fixes

successful make rebuild

Linting fixes
2019-08-30 14:18:28 -04:00
Alan Shaw
be894aab4c
fix: assert value exists
Fixes:

```
     TypeError [ERR_MISSING_ARGS]: The "actual" and "expected" arguments must be specified
      at Function.notEqual (assert.js:406:11)
      at Context.<anonymous> (test/create-open.test.js:137:18)
```
2019-08-05 12:33:43 +01:00
shamb0t
b143633433 add set identity tests 2019-08-02 09:20:15 +01:00
shamb0t
f623958e0e Test consistency without syncLocal 2019-07-22 20:00:50 +01:00
shamb0t
e636629cf9 add multiple tabs in browser test
call tests in ci yml
2019-07-22 15:27:22 +01:00
shamb0t
b3977e187a support ipfs@0.36.x 2019-06-07 15:00:15 +01:00
shamb0t
1a6bbf329b set skipManifest in test 2019-05-20 15:08:21 +01:00
shamb0t
8c694f5170 pass format in dbManifest creation
use identity.id as default ac check
2019-05-15 11:31:25 +01:00
shamb0t
07984f7637 remove cid prop
update browser dist

increment version
2019-05-01 16:32:48 +01:00
Mark Robert Henderson
40fa3cba76
Revert "Cid to hash" 2019-05-01 11:07:39 -04:00
shamb0t
85e6d8d36e remove cid prop 2019-04-30 15:01:33 +01:00
shamb0t
cddd82c786 use config.timeout in replicate test 2019-04-23 17:35:14 +01:00
Joel Torstensson
ed1a6bf1a4 feat: Accept identity as an option when opening a DB 2019-04-23 17:46:14 +02:00
shamb0t
6dd94e0580 use decompressed key 2019-04-04 12:53:28 +01:00
shamb0t
f481ecfdd7 Update key migrate test
remove await

Package-lock
2019-03-28 17:38:58 +00:00
shamb0t
b2d2e3f9f4 Fix multiple-databases test 2019-03-26 10:16:09 +00:00
shamb0t
aa9e7edd63 Add test writing to v0 with new identity 2019-03-25 13:35:33 +00:00
shamb0t
4c2c745c96 Keystore#verifiers
tests: add v0 address test

tests: remove unused config options
2019-03-11 15:38:40 +04:00
haad
534b9bd173 Remove wrong assertions in replication progress check 2019-02-27 10:56:05 +02:00
shamb0t
ae144b219f Use libp2p-secp256k1 2019-02-22 14:06:05 +00:00
shamb0t
6add4ce2b9 Update tests 2019-02-20 13:18:03 +00:00
Tyler Yasaka
15aae2959b
Merge branch 'master' into determine-address 2018-12-06 11:20:46 -08:00
Zach Ferland
708860798c test: move redundant config to shared test utils 2018-11-30 16:48:47 -05:00
Zach Ferland
5797641fba test: add custom test cache, add persistence test against custom cache, add store tests against cache 2018-11-30 16:40:19 -05:00
Tyler Yasaka
2378b654a5
Add a couple tests for determineAddress 2018-11-13 09:52:24 -08:00
Richard Littauer
e191d27832 fix: Spelling errors
Generated by https://github.com/codespell-project/codespell.
2018-09-20 15:30:44 -04:00
thiagodelgado111
8c4befbae1 Fix counterdb test 2018-07-21 00:11:10 -03:00
haad
88581adf1a Use latest orbit-db-cache and leveldb modules 2018-07-18 16:30:20 +03:00
haad
60575efc66 Use latest orbit-db-store
Also add try/catch to catch assertion errors in replication tests that weren't caught before.
2018-07-18 13:57:21 +03:00
kia
1b54f4daa8 feat: expose OrbitDBAddress isValid & parse 2018-06-25 21:09:49 -04:00
haad
d78ee9042f Test that document store can return the full op data 2018-06-03 08:00:53 +02:00
Gergely Imreh
f6688ffe8d
Clarify eventlog and feed iterator options, and usage in tests
The `gt`/`gte`/`lt`/`lte` options for enventlog and feed iterators
take the hash of an item, and that wasn't clear from the API docs.
Also added more info to the `limit` option.

To see usage examples, many people are likely to turn to test suite.
In the tests for eventlog and feed, the `items` variable first
referred to an iterator with the actual items, and then later in
the tests `items` was an array of the item hashes. This switch of
types can be pretty confusing, thus the variable names were disambiguated.
2018-04-14 11:16:02 +01:00
Gergely Imreh
9be39b3dd4
Fix: tests weren't actually testing limit 0 cases 2018-04-13 23:50:53 +01:00
haad
96736809ec Speed up tests 2018-03-31 13:21:03 +02:00
haad
65ca10f79d Decrease test timeout 2018-03-31 12:36:22 +02:00
haad
9504b18a0b Fix replication status test name 2018-03-31 12:35:29 +02:00
haad
0558c32343 Move exchanging heads logic to its own function
Use latest store modules
Add a set of tests for checking database replication status
Fix tests as per new replication status api
Speed up and improve tests
2018-03-31 12:25:53 +02:00
haad
d0af9a45bd Add tests for replication status information
Use latest store modules
Add a set of tests for checking database replication status
Fix tests as per new replication status api
2018-03-30 12:46:53 +02:00
haad
a2524688d2 Run tests with go-ipfs and js-ipfs-api again
Use go-ipfs 0.4.13 to run tests
Add write benchmark for go-ipfs
Clean up benchmarks
Fix a test not catching errors
2018-03-27 16:08:43 +02:00
haad
3318b6a6d9 Use ipfsd-ctl to create test IPFS instances
Fix default database creation tests
Add more test utils
Remove obsolete public methods from OrbitDB
Workaround for "underlying socket has been closed" error in replication test
Update package-lock
2018-03-27 14:30:45 +02:00
haad
d191876ea9 Use ipfs-pubsub-1on1 to exchange heads between connected peers 2018-03-24 15:56:02 +01:00
haad
40dc6e4340 Wait for database to close in tests 2018-03-17 09:52:16 +02:00
thiagodelgado111
8abd37aecd Add tests for custom keystores 2018-02-08 16:39:16 -02:00
Diana Thayer
b0d755f9bf feat(core): add 'addDatabaseType' method for adding custom types 2018-01-16 08:04:12 -08:00
haad
1b5d6db239 Create a mapping for database types 2018-01-07 09:17:40 +01:00
haad
e0bff3dcce Fix segmentation fault
Add a test for closing the db while loading
Catch replication test asserts properly
Use latest orbit-db-cache containing the fix for segmentation fault
2018-01-07 08:54:11 +01:00
haad
7818b5ca79 Add a test for dropping a database 2017-12-31 17:11:04 +02:00
haad
81284c1b16 Fix browser compatibility 2017-12-31 13:46:25 +02:00
haad
6061b8cb53 Fix replication
Add tests to make sure a database can be saved and loaded multiple times in a row
Add a test to make sure the correct replication progress is emitted
Add mem-store for faster development testing
Improve tests
Improve logging
Fix replication benchmark
Update packages and build
2017-12-19 15:52:50 +01:00