Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

[WIP] test: add ipns dht tests #47

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Nov 30, 2018

PR containing a set of tests aimimg to test the IPNS over DHT interoperability between go-ipfs and js-ipfs.

Needs:

@ghost ghost assigned vasco-santos Nov 30, 2018
@ghost ghost added the status/in-progress In progress label Nov 30, 2018
This was referenced Nov 30, 2018
test/ipns.js Outdated
.spawn({
disposable: true,
initOptions: { bits: 512 },
args: ['--enable-dht-experiment'], // enable dht
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enabled by default?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we release js-ipfs@0.34 with no dht enabled by default, we will need this for now.

test/ipns.js Outdated
it('should publish an ipns record to a go daemon and resolve it using a js daemon through the reuse of the same repo', function (done) {
this.timeout(160 * 1000)
const dir = path.join(os.tmpdir(), hat())
describe('ipns over dht', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are very different tests to the repo tests above - I'd pull them out into a spearate file.

@alanshaw
Copy link
Member

does this also require ipfs/js-ipfs#856 @vasco-santos ?

@vasco-santos
Copy link
Member Author

vasco-santos commented Jan 25, 2019

does this also require ipfs/js-ipfs#856 @vasco-santos ?

This should be good to go once ipfs/interop#51 is ready. The DHT PR is not needed. Just tried it out locally:

image

@alanshaw alanshaw changed the title test: add ipns dht tests [WIP] test: add ipns dht tests Feb 13, 2019
@alanshaw
Copy link
Member

@vasco-santos would you mind rebasing for 🍏 CI please 🙏?

@vasco-santos
Copy link
Member Author

@alanshaw I rebased this PR and CI is green now. However, we are now dependent on ipfs/js-ipfs/pull/1994. With no experimental flag for dht, I can't enable the dht in the current release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants