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

Essential Tests for Feat/gateway #997

Closed
wants to merge 17 commits into from
Closed

Conversation

ya7ya
Copy link
Contributor

@ya7ya ya7ya commented Sep 6, 2017

Hey @diasdavid , These are the essential tests you mentioned in #968

Changes:

  • interface tests
  • Fetching a file with a mime-type that is not text (i.e a pdf or an image)
  • Loading a webpage (one for each type of index.html)
  • Loading a webpage from a pagh (QmHASH/a/b/c -> loads the webpage in that path)
  • Loading bigFile
  • CORS tests (make sure config is respected)

I wasn't Able to reproduce the error you mentioned . But the tests went fine.

side fix: examples/traverse-ipld-graph/git.js kept throwing an error when linting, so I had to fix those in order to commit.

harshjv and others added 17 commits August 29, 2017 09:23
* clean up, remove commented out lines.

* cleaning code, removing commented out blocks.

* gateway initial tests.
License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
…checks

License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
* feat: add gateway route to daemon

* feat: adding Gateway endeavour - improve codebase

* clean up, remove commented out lines. (ipfs#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
License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
…eat/gateway

License: MIT
Signed-off-by: Yahya <ya7yaz@gmail.com>
@daviddias
Copy link
Member

@ya7ya this is really cool! Just one small but important request. It seems that history is getting messed up by your local out of date version of the repo. Could you make the last changes to a new branch starting off from #968 latest commit?

Note for example that now the html and style is on a dir-view folder, which is not present here in your PR.

@ya7ya
Copy link
Contributor Author

ya7ya commented Sep 6, 2017

@diasdavid sure, I'll fix the repo history and push it to a new branch 👍

@ya7ya
Copy link
Contributor Author

ya7ya commented Sep 6, 2017

closing this in favor of #999

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.

3 participants