How to use the interface-ipfs-core.miscellaneous function in interface-ipfs-core

To help you get started, we’ve selected a few interface-ipfs-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ipfs-shipyard / js-ipfs-http-client-lite / test / interface.spec.js View on Github external
// skip: [
    //   // key.export
    //   {
    //     name: 'export',
    //     reason: 'TODO not implemented in go-ipfs yet'
    //   },
    //   // key.import
    //   {
    //     name: 'import',
    //     reason: 'TODO not implemented in go-ipfs yet'
    //   }
    // ]
    skip: { reason: 'LITE: not implemented yet' }
  })

  tests.miscellaneous(defaultCommon, {
    skip: [
      // // stop
      // {
      //   name: 'should stop the node',
      //   reason: 'FIXME go-ipfs returns an error https://github.com/ipfs/go-ipfs/issues/4078'
      // }
      { name: 'dns', reason: 'LITE: not implemented yet' },
      { name: 'stop', reason: 'LITE: not implemented yet' },
      { name: 'resolve', reason: 'LITE: not implemented yet' }
    ]
  })

  // TODO: uncomment after https://github.com/ipfs/interface-ipfs-core/pull/361 being merged and a new release
  tests.namePubsub(CommonFactory.create({
    spawnOptions: {
      args: ['--enable-namesys-pubsub'],
github ipfs / js-ipfs-http-client / test / interface.spec.js View on Github external
tests.key(commonFactory, {
    skip: [
      // key.export
      {
        name: 'export',
        reason: 'TODO not implemented in go-ipfs yet'
      },
      // key.import
      {
        name: 'import',
        reason: 'TODO not implemented in go-ipfs yet'
      }
    ]
  })

  tests.miscellaneous(commonFactory)

  tests.name(createFactory(merge(commonOptions,
    {
      ipfsOptions: {
        offline: true
      }
    }
  )), {
    skip: [
      // stop
      {
        name: 'should resolve a record from peerid as cidv1 in base32',
        reason: 'TODO not implemented in go-ipfs yet: https://github.com/ipfs/go-ipfs/issues/5287'
      }
    ]
  })
github ipfs-shipyard / ipfs-postmsg-proxy / test / integration / browser.js View on Github external
{
      name: 'should stat dir',
      reason: 'https://github.com/ipfs/interface-ipfs-core/pull/365'
    },
    {
      name: 'should stat outside of mfs',
      reason: 'https://github.com/ipfs/interface-ipfs-core/pull/365'
    }
  ]
})

tests.key(defaultCommonFactory)

tests.ls(defaultCommonFactory)

tests.miscellaneous(defaultCommonFactory, {
  skip: [
    {
      name: 'should resolve an IPNS DNS link',
      reason: 'TODO IPNS not implemented yet'
    },
    {
      name: 'should resolve IPNS link recursively',
      reason: 'TODO IPNS not implemented yet'
    }
  ]
})

tests.name(defaultCommonFactory)

tests.object(defaultCommonFactory)
github ipfs-shipyard / ipfs-postmsg-proxy / test / integration / node.js View on Github external
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)
github ipfs / js-ipfs / test / core / interface.spec.js View on Github external
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
      }
    }
  }), overrides))

  tests.object(commonFactory, {
github ipfs / js-ipfs / test / http-api / interface.js View on Github external
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
      }
    }
  }), overrides))