Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
reason: 'LITE: unskip when refs API is implemented'
},
// .refs.localReadableStream
{
name: 'refsLocalReadableStream',
reason: 'LITE: Node.js streams not supported'
},
// .refs.localPullStream
{
name: 'refsLocalPullStream',
reason: 'LITE: unskip when refs API is implemented'
}
]
})
tests.filesMFS(defaultCommon, {
skip: [{
name: 'write',
reason: 'LITE: depends on stat, stat not implemented yet'
},
{
name: 'stat',
reason: 'LITE: not implemented yet'
},
{
name: 'mv',
reason: 'LITE: not implemented yet'
},
{
name: 'rm',
reason: 'LITE: not implemented yet'
},
reason: 'FIXME checking what is exactly go-ipfs returning https://github.com/ipfs/go-ipfs/issues/3862#issuecomment-294168090'
},
// dht.findprovs
{
name: 'should take options to override timeout config',
reason: 'FIXME go-ipfs does not support a timeout option'
},
// dht.get
{
name: 'should get a value after it was put on another node',
reason: 'FIXME go-ipfs errors with Error: key was not found (type 6) https://github.com/ipfs/go-ipfs/issues/3862'
}
]
})
tests.filesMFS(commonFactory, {
skip: [
{
name: 'should ls directory with long option',
reason: 'TODO unskip when go-ipfs supports --long https://github.com/ipfs/go-ipfs/pull/6528'
},
{
name: 'should read from outside of mfs',
reason: 'TODO not implemented in go-ipfs yet'
},
{
name: 'should ls from outside of mfs',
reason: 'TODO not implemented in go-ipfs yet'
}
]
})
if (err) {
return cb(err)
}
nodes.push(_ipfsd)
cb(null, IPFSApi(_ipfsd.apiAddr))
})
}
})
},
teardown: function (callback) {
parallel(nodes.map((node) => (cb) => node.stop(cb)), callback)
}
}
test.filesMFS(common)
skip: {
reason: 'TODO: unskip when DHT is enabled: https://github.com/ipfs/js-ipfs/pull/1994'
}
})
tests.filesRegular(commonFactory, {
skip: isNode ? null : [{
name: 'addFromStream',
reason: 'Not designed to run in the browser'
}, {
name: 'addFromFs',
reason: 'Not designed to run in the browser'
}]
})
tests.filesMFS(commonFactory)
tests.key(commonFactory)
tests.miscellaneous(commonFactory)
tests.name(createFactory(merge(commonOptions, {
ipfsOptions: {
pass: 'ipfs-is-awesome-software',
offline: true
}
}), overrides))
tests.namePubsub(createFactory(merge(commonOptions, {
ipfsOptions: {
EXPERIMENTAL: {
ipnsPubsub: true
setup (cb) {
factory = new IpfsFactory(factoryOpts)
cb(null, factory)
},
teardown (cb) {
factory.dismantle(cb)
}
}
test.block(common)
test.bootstrap(common)
test.config(common)
test.dag(common)
test.dht(common)
test.files(common)
test.filesMFS(common)
test.key(common)
test.miscellaneous(common)
test.object(common)
test.pin(common)
test.ping(common)
test.pubsub(common)
test.repo(common)
test.stats(common)
test.swarm(common)
skip: {
reason: 'TODO: unskip when DHT is enabled: https://github.com/ipfs/js-ipfs/pull/1994'
}
})
tests.filesRegular(commonFactory, {
skip: isNode ? null : [{
name: 'addFromStream',
reason: 'Not designed to run in the browser'
}, {
name: 'addFromFs',
reason: 'Not designed to run in the browser'
}]
})
tests.filesMFS(commonFactory)
tests.key(commonFactory)
tests.miscellaneous(commonFactory)
tests.name(createFactory(merge(commonOptions, {
ipfsOptions: {
offline: true
}
}), overrides))
tests.namePubsub(createFactory(merge(commonOptions, {
ipfsOptions: {
EXPERIMENTAL: {
ipnsPubsub: true
}