37 Commits

Author SHA1 Message Date
haad
b946741c5c Get the first tests running 2023-02-16 11:07:13 +02:00
haad
d9ac2feeef Use working fixtures for backwards compat. tests 2023-01-16 12:46:50 +02:00
Hayden Young
cb21894828 fix: Check for custom-defined cache when migrating. 2023-01-05 16:59:44 +00:00
haad
e253fe11b6 Remove unused deps, refactor to use the new leveldb api 2022-12-30 12:36:16 +02:00
Hayden Young
d06d800943 refactor: Webpack imports. 2022-12-20 01:12:56 +00:00
haad
08eaf84d74 Fix replication 2021-10-21 14:48:54 +03: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
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
Mark Henderson
572029bbe7 wip: updating tests
fix browser test

package-lock updates
2020-05-21 11:59:08 -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
shamb0t
7baed34c06 Compress fixtures 2019-12-02 11:02:09 +00:00
haad
08e92b44e1 Fix a loading test 2019-11-20 09:31:43 +00: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
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
8c694f5170 pass format in dbManifest creation
use identity.id as default ac check
2019-05-15 11:31:25 +01:00
Joel Torstensson
ed1a6bf1a4 feat: Accept identity as an option when opening a DB 2019-04-23 17:46:14 +02:00
shamb0t
6add4ce2b9 Update tests 2019-02-20 13:18:03 +00:00
Tyler Yasaka
2378b654a5
Add a couple tests for determineAddress 2018-11-13 09:52:24 -08:00
haad
88581adf1a Use latest orbit-db-cache and leveldb modules 2018-07-18 16:30:20 +03: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
40dc6e4340 Wait for database to close in tests 2018-03-17 09:52:16 +02:00
haad
1b5d6db239 Create a mapping for database types 2018-01-07 09:17:40 +01: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
haad
9b1f704abe Fix a bug where creator of the database was not added to the list of writers 2017-12-10 13:30:39 +01:00
haad
6df41f4fad Use LevelDB as the local persistence cache 2017-12-09 17:42:06 +01:00
haad
ff8b5a425a Remove obsolete test-utils 2017-12-06 08:30:44 +01:00
haad
157f1c6d15 Remove stopIpfs() function and use ipfs.stop() 2017-12-06 08:23:18 +01:00
haad
42885b20a4 Write permissions for databases
Use latest store modules from npm
Update README
Update docs
Update examples
Update benchmarks
Update dependencies
Add Getting Started guide
Add new a screenshot
Add a new live demo
Add persistency tests for snapshot saving/loading and events
Add network stress tests (but skip them by default as they're very heavy and lengthy)
Add browser benchmarks
Add log() alias for eventlog() database
Add possibility to create database if it doesn't exist yet
Add support for orbitdb addresses
Add a test for starting replication when peers connect
Add debug build
Use IPFS nodeID as default user id
Use ipfs-pubsub-room
Handle closing of databases properly
Handle cache errors
Clean up tests, re-organize code files
Clean up code style
Support for CLI
Remove obsolete scripts
2017-11-28 09:10:51 +01:00