-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 |
test/gateway/index.js
Outdated
@@ -40,16 +40,4 @@ describe('HTTP GATEWAY', () => { | |||
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 <ya7yaz@gmail.com> * fix using js-ipfs-repo in gateway tests. License: MIT Signed-off-by: Yahya <ya7yaz@gmail.com> * Using unix-fs to detect dirs, replacing object.get with DAG.get, CID checks License: MIT Signed-off-by: Yahya <ya7yaz@gmail.com> * rename checkHash -> checkCID License: MIT Signed-off-by: Yahya <ya7yaz@gmail.com> * 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 <ya7yaz@gmail.com> * fix using js-ipfs-repo in gateway tests. License: MIT Signed-off-by: Yahya <ya7yaz@gmail.com> * Using unix-fs to detect dirs, replacing object.get with DAG.get, CID checks License: MIT Signed-off-by: Yahya <ya7yaz@gmail.com> * rename checkHash -> checkCID License: MIT Signed-off-by: Yahya <ya7yaz@gmail.com> * gateway tests: init a fresh repo
Code cleanup as requested in #968
Changes
http
todaemon
.(In
go-ipfs
the module is still calledhttp
though.)interface
andipfs-over-api
Tests.(they're enabled in
tests/http-api
but nottest/gateway
so 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.