-
Notifications
You must be signed in to change notification settings - Fork 1.2k
clean up, remove commented out lines. #971
Conversation
Let's keep it as http then.
These tests are designed to work over the HTTP-API. Testing the gateway requires a new set of tests. |
|
Yes the gateway requires different tests. I removed the commented out blocks. and I will try to add more tests beside the ones in |
| describe('## http-gateway spec tests', () => { | ||
| fs.readdirSync(path.join(__dirname, '/spec')) | ||
| .forEach((file) => require('./spec/' + file)(http)) | ||
| }) |
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.
@ya7ya there are not "gateway spec tests" you probably just have "tests" :)
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 ma bad, I'll fix that,
I'm looking at the gateway_test.go to try to port these tests to js-ipfs .
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.
awesome! That's perfect @ya7ya :)
* clean up, remove commented out lines. * cleaning code, removing commented out blocks. * gateway initial tests.
* 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
* 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
Code cleanup as requested in #968
Changes
httptodaemon.(In
go-ipfsthe module is still calledhttpthough.)interfaceandipfs-over-apiTests.(they're enabled in
tests/http-apibut nottest/gatewayso there won't be duplicate tests)@diasdavid Please Let me know if the 2 remaining points are greenlit and i'll push the edits ASAP. Thanks.