484 Commits

Author SHA1 Message Date
haad
5f1af23539 Remove obsolete code, clean ups 2023-01-12 14:42:31 +02:00
haad
13f79e6a65 Fix browser tests 2023-01-12 13:20:17 +02:00
haad
7b15be54a5 Fix imports and file path 2023-01-12 10:31:50 +02:00
Hayden Young
cb21894828 fix: Check for custom-defined cache when migrating. 2023-01-05 16:59:44 +00:00
haad
e6e3bcc994 Fix replication issues 2022-12-30 14:40:37 +02:00
haad
86e8fef7fe Skip tests that are failing 2022-12-30 12:38:15 +02:00
haad
73383cbf9b Use same directory for test data as other tests 2022-12-30 12:36:52 +02:00
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