455 Commits

Author SHA1 Message Date
shamb0t
7baed34c06 Compress fixtures 2019-12-02 11:02:09 +00:00
Mark Henderson
a1fa5bc072 fixing cpy paths" 2019-11-22 13:14:18 +02:00
shamb0t
e4bbfa7c41 add reopen tests 2019-11-22 13:14:18 +02:00
shamb0t
6a86e87381 clean dir after test 2019-11-20 18:10:34 +00:00
shamb0t
326b48e198 add v1 entry fixtures and tests 2019-11-20 17:24:45 +00:00
shamb0t
69e1591829 update tests 2019-11-20 09:31:43 +00:00
haad
3d11522b08 Increase replication test timeout 2019-11-20 09:31:43 +00:00
haad
08e92b44e1 Fix a loading test 2019-11-20 09:31:43 +00:00
shamb0t
73f878d1e5 use options.id 2019-11-14 15:38:00 +00:00
shamb0t
cb7b0809a3
Merge pull request #726 from orbitdb/feat/offline-mode
Add offline mode
2019-11-14 14:28:24 +00:00
haad
de6cfdb1da Add offline mode option 2019-11-14 15:37:42 +02:00
haad
e246c85250 Catch the error that gets thrown in load/close tests 2019-11-14 14:14:49 +02:00
shamb0t
7899ce3856 Merge branch 'master' into develop 2019-11-14 09:43:15 +00:00
phillmac
fcd1e801ec Remove leading './' from path if present 2019-11-08 19:04:01 +11:00
shamb0t
9573ab66c5 use windows-friendly paths in create-open.test 2019-11-07 16:13:01 +00:00
Ivan Bravo Bravo
7ac1a48f51 Added Windows support. 2019-11-03 15:15:04 -06:00
Patrick Toner
b66e892174 Unit tests that verify calling load() with an amount greater than the number of items loads all the items 2019-10-02 00:41:39 -04:00
achingbrain
52b1aa341c Do not pass ipfs-http-client to ipfsd-ctl as it is not necessary 2019-09-30 14:19:26 +01:00
achingbrain
f836ea50d5 Upgrade to js-IPFS v0.38.x-rc
There's a new release of js-IPFS around the corner, one of the things it
does is turn on pubsub by default so needs a little code tweaking to work.

This PR contains the changes required to get orbit-db working with the
latest release candidate.
2019-09-30 14:19:26 +01:00
Mark Robert Henderson
c04be71a4f
Merge pull request #681 from tabcat/master
adds optional meta field to manifest
2019-09-27 14:04:43 -04:00
Mark Henderson
f9feb27c09 Using identity's keystore as default first
package-lock

pointing to branch

more cache management stuff

WIP

Passing tests

Removing static linking

fixing tests and linting

fixing package.json

removing last debugger

removing last debugger

Adding keystore and cache getters

PR comments

Removing extraneous cache management

Package files

Closing caches

using dbAddress as this.caches key

new tests for store management

Working but with slightly different semantics

Rebuild

package-lock

Dependency updates

removeHandler

restoring db.close in replication status test

package.json files

move handler to orbitdb.caches

Test updates

Cache management cleanup

use store.options.directory

requestCache in onLoad and onDrop

add status test

Adding db to this.stores in onLoad and onDrop

Working RC5 before rebase

Updating package-lock

restoring original replicaiton status test

package files

removing keystore getter

more keystore cleanup

typo
2019-09-24 10:48:27 -04:00
anders
117197247c
match code convention 2019-09-17 08:54:43 -05:00
anders
85d709a957 adds optional meta field to manifest 2019-09-10 14:06:45 -05:00
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