162 Commits

Author SHA1 Message Date
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
haad
d6cb5c0c0a Improve write-permissioned db sync test 2017-12-13 15:15:20 +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
d39b69a82f Refactor creating and saving DB manifest
Add test for loading an empty snapshot
2017-12-05 23:23:24 +01:00
haad
63a1edb633 Speed up peering and timeout to run tests faster 2017-12-05 22:44:33 +01:00
haad
2bd64b1407 Add a test for partially loading a database 2017-12-05 22:35:01 +01:00
haad
c30c0b6cf9 Use ipfs@0.27.0 and ipfs-pubsub-room@1.0.1 2017-12-05 13:18:29 +01:00
haad
fff059e6e7 Remove obsolete code from tests, speed peering for replication tests 2017-12-02 13:47:16 +01:00
haad
bdc8260610 Fix replication starting from wrong heads
Use ipfs-pubsub-room branch with a fix for the wrong heads
Add a test tocheck that the automatic replication receives the right heads
Add more logging
2017-12-02 13:40:22 +01:00
haad
c776b4de8b Add tests for using multiple databases at the same time 2017-11-30 17:13:24 +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
haad
8f990e0ccc Immutable ipfs-log
Use immutable ipfs-log.
Simplify internals.
Remove obsolete dependencies.
Update dependencies.
Use @dignifiedquire's mapSeries for Promises.
Split tests to individual stores.
Improve tests.
Fix build process.
Build size down to 121kb.
Fix benchmarks and examples.
Move Cache to Stores (and to its own module).
2017-03-21 18:13:58 +01:00
haad
49c30b3ec0 Run one replication test only (for @diasdavid) 2017-02-15 17:54:12 +01:00
haad
c2912be189 Run tests only with Node.js daemon until js-ipfs-api has pubsub 2017-02-14 16:32:00 +01:00
haad
72c7f717a8 Add test for sync() returning a hash 2017-01-29 19:21:23 +02:00
haad
c79a1a125f 0.16.0-beta.6
Add replication test
Use latest ipfs-daemon
Cleanups
2017-01-16 23:23:11 +01:00
haad
026740faa9 Make tests use ipfs-daemon instead of test-apis 2016-12-30 12:16:29 +01:00
haad
d889b539a3 0.16.beta-2
Fix dependencies.
Fix tests.
2016-12-01 15:45:15 +01:00