-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Changes required for #968 feat/Gateway #989
Conversation
* clean up, remove commented out lines. * cleaning code, removing commented out blocks. * gateway initial tests.
License: MIT Signed-off-by: Yahya <[email protected]>
License: MIT Signed-off-by: Yahya <[email protected]>
…checks License: MIT Signed-off-by: Yahya <[email protected]>
License: MIT Signed-off-by: Yahya <[email protected]>
test/gateway/index.js
Outdated
describe('HTTP GATEWAY', () => { | ||
const repoExample = path.join(__dirname, '../go-ipfs-repo') | ||
describe('HTTP Gateway', () => { | ||
const repoExample = path.join(__dirname, '../js-ipfs-repo') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ya7ya. It seems I didn't explain myself well. What I mean is that there should be no "repo copying" either from a previously generated go-ipfs or js-ipfs node. When you spawn a daemon after doing init, it will have its own repo created, that is what should be used for testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diasdavid oh, Ma bad, I'll fix that. Sorry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, my bad for not being clear, I'm sorry. Thank you for pushing this :)
Thank you @ya7ya :) |
@diasdavid 👍 :) Thank you for your review and comments, I appreciate it |
* feat: add gateway route to daemon * feat: adding Gateway endeavour - improve codebase * clean up, remove commented out lines. (#971) * clean up, remove commented out lines. * cleaning code, removing commented out blocks. * gateway initial tests. * clean up , working tests on node v8.4.0 License: MIT Signed-off-by: Yahya <[email protected]> * fix using js-ipfs-repo in gateway tests. License: MIT Signed-off-by: Yahya <[email protected]> * Using unix-fs to detect dirs, replacing object.get with DAG.get, CID checks License: MIT Signed-off-by: Yahya <[email protected]> * rename checkHash -> checkCID License: MIT Signed-off-by: Yahya <[email protected]> * gateway tests: init a fresh repo
License: MIT Signed-off-by: Alan Shaw <[email protected]>
These are some of the required Changes by @diasdavid to merge #968
unix-fs
to detect directoriesjs-ipfs-repo
instead ofgo-ipfs-repo
for testing gateway