Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

clean up, remove commented out lines. #971

Merged
merged 3 commits into from
Sep 1, 2017

Conversation

ya7ya
Copy link
Contributor

@ya7ya ya7ya commented Aug 30, 2017

Code cleanup as requested in #968

Changes

  • Delete commented out lines
  • rename http to daemon .
    (In go-ipfs the module is still called http though.)
  • Enable interface and ipfs-over-api Tests.
    (they're enabled in tests/http-api but not test/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.

@daviddias
Copy link
Member

(In go-ipfs the module is still called http though.)

Let's keep it as http then.

Enable interface and ipfs-over-api Tests.

These tests are designed to work over the HTTP-API. Testing the gateway requires a new set of tests.

@ya7ya
Copy link
Contributor Author

ya7ya commented Aug 31, 2017

Yes the gateway requires different tests. I removed the commented out blocks. and I will try to add more tests beside the ones in tests/gateway/spec/gateway.js

@@ -40,16 +40,4 @@ describe('HTTP GATEWAY', () => {
fs.readdirSync(path.join(__dirname, '/spec'))
.forEach((file) => require('./spec/' + file)(http))
})
Copy link
Member

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" :)

Copy link
Contributor Author

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 .

Copy link
Member

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 :)

@daviddias
Copy link
Member

@ya7ya adding you to the JS team in IPFS so that we can collaborate on the same branch :) #968

@daviddias daviddias merged commit cd0fae9 into ipfs:feat/gateway Sep 1, 2017
ya7ya added a commit to ya7ya/js-ipfs that referenced this pull request Sep 2, 2017
* clean up, remove commented out lines.

* cleaning code, removing commented out blocks.

* gateway initial tests.
daviddias pushed a commit that referenced this pull request Sep 5, 2017
* 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
daviddias pushed a commit that referenced this pull request Sep 6, 2017
* 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants