377 Commits

Author SHA1 Message Date
haad
e253fe11b6 Remove unused deps, refactor to use the new leveldb api 2022-12-30 12:36:16 +02:00
haad
548f6372be Add open() to custom keystore in tests to fulfill the interface 2022-12-30 12:35:19 +02:00
Hayden Young
51ab079153 fix: pass path to migration. 2022-12-30 03:07:01 +00:00
Hayden Young
d06d800943 refactor: Webpack imports. 2022-12-20 01:12:56 +00:00
captaincole
0e7011646d Swithing puppeteer to puppeteer core and adding chromium to dev dependencies 2022-02-23 19:19:05 -06:00
haad
08eaf84d74 Fix replication 2021-10-21 14:48:54 +03:00
tabcat
c9fcb75f9b move orbit-db-access-controller tests here 2021-09-27 15:27:49 -05:00
tabcat
a3829b6c72 remove error-prone assert from replication test 2021-09-26 17:50:34 -05:00
tabcat
6b4bd0652f remove memstore from replication test 2021-09-26 17:45:48 -05:00
Mark Henderson
a00688e941 Support js-ipfs 0.50.2 and go-ipfs 0.6.0
updating dependencies

Updating to node 12 image

updating dependencies

package-lock updates

offoading repo handling from tests

one more test fix

fixing message data handling

updating store deps
2020-09-17 21:05:59 -04:00
Joel Thorstensson
e402fdc457 Merge branch 'master' into update-peer-exchanged 2020-08-24 18:04:53 +02:00
anders
a553179fb7 remove unused util files 2020-08-24 07:16:35 -04:00
Mark Henderson
39a00060d6 parent 32cc9a9b009d0d8543f81a6bab96ad9bcccd3088
author Mark Henderson <mark@mrh.io> 1598051057 -0400
committer Mark Henderson <mark@mrh.io> 1598229380 -0400

parent 32cc9a9b009d0d8543f81a6bab96ad9bcccd3088
author Mark Henderson <mark@mrh.io> 1598051057 -0400
committer Mark Henderson <mark@mrh.io> 1598229291 -0400

package updates and ipfs repo migration

validate-maintainers and orbit-db-test-utils

moving from 3 tabs to 2

wait workaround

wait 1000

standard --fix

redoing the replication test changes for some reason

validate-maintainers and orbit-db-test-utils

moving from 3 tabs to 2

wait workaround

wait 1000

standard --fix

fix create-open tests

fixing eventlog tests

fixing feed tests

fixing kvstore tests

fixing set identity tests

skipping replication tests for now

repo path based on API variable

js-ipfs.zip

go-ipfs.zip

skipping replicate tests as well

repo path based on API variable

js-ipfs.zip

go-ipfs.zip

package-lock

finalizing rebase
2020-08-23 21:52:10 -04:00
Joel Torstensson
f876360e59 Merge branch 'master' into update-peer-exchanged 2020-06-12 17:37:21 +02:00
Mark Henderson
4d7bfa11b8 cleaning up setTimeouts 2020-05-21 11:59:08 -04:00
Mark Henderson
572029bbe7 wip: updating tests
fix browser test

package-lock updates
2020-05-21 11:59:08 -04:00
Mark Henderson
e2ad2a0b79 also exporting keystore 2020-05-15 10:28:17 -04:00
Mark Henderson
1c67c410aa feat: adding AccessControllers and Identites re-exports 2020-05-15 10:28:17 -04:00
phillmac
5f7f20e621 Fix assert.notEqual
Fixes the following errors:
```
 2) orbit-db - Create & Open (js-ipfs)
       Create
         Success
           saves database manifest file locally:
     TypeError [ERR_MISSING_ARGS]: The "actual" and "expected" arguments must be specified
      at Function.notEqual (assert.js:418:11)
      at Context.<anonymous> (test/create-open.test.js:145:18)

  3) orbit-db - Create & Open (go-ipfs)
       Create
         Success
           saves database manifest file locally:
     TypeError [ERR_MISSING_ARGS]: The "actual" and "expected" arguments must be specified
      at Function.notEqual (assert.js:418:11)
      at Context.<anonymous> (test/create-open.test.js:145:18)
      at runMicrotasks (<anonymous>)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
```
2020-03-22 18:06:35 -04:00
Michael Sterle-Contala
3377fc66ee
increase time in test to wait for peer.exchanged event to trigger 2020-03-11 12:19:09 +01:00
Tyler Yasaka
8d7b3ecf5d
Add tests for peer.exchanged event 2020-02-10 15:55:49 +01:00
shamb0t
fb143e6816 use ipfs@0.36.x 2019-12-05 20:24:35 +00:00
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