-
Notifications
You must be signed in to change notification settings - Fork 109
Conversation
Context: ipfs-inactive/interface-js-ipfs-core#514 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
Context: ipfs-inactive/interface-js-ipfs-core#514 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
@lidel it took me a while to figure out that there's a noop server in the browser. What do you think about requiring the echo server to be started in all environments? 1) It would simplify the setup and teardown code in the tests here, 2) we wouldn't need a noop server (potentially helping with any misunderstandings) and 3) it would only need a couple of changes to .aegir.js (which you're already editing in that PR) to also start it for Node.js. |
@alanshaw if we are going to simplify this, I'd like to also remove HTTPS echo server and have only HTTP instance, as suggested in ipfs/js-ipfs#2304 (comment). I fail to see what is the value of testing HTTPS. Y/n? |
@lidel go for it! |
This simplifies the way we use HTTP Echo Server by moving it to aegir hooks and removing HTTPS version. Context: #514 (comment) License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
This simplifies code in interface-js-ipfs-core as both Node an Browser init it the same way Context: ipfs-inactive/interface-js-ipfs-core#514 (comment) License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
@alanshaw check a810adf and ipfs/js-ipfs@32e76cc |
Context: ipfs-inactive/interface-js-ipfs-core#514 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
This simplifies code in interface-js-ipfs-core as both Node an Browser init it the same way Context: ipfs-inactive/interface-js-ipfs-core#514 (comment) License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
Old version was Node-centric and did not work in web browser contexts. This change: - moves the HTTP server to separate file to enable spawning it from aegir hook (see .aegir.js/hooks/browser/pre|post in js-ipfs) - removes overhead of starting and stopping HTTP servers multiple times - simplifies test code License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
This simplifies the way we use HTTP Echo Server by moving it to aegir hooks and removing HTTPS version. Context: #514 (comment) License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
a810adf
to
fd2892b
Compare
Rebased, no conflicts. |
Context: ipfs-inactive/interface-js-ipfs-core#514 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
This simplifies code in interface-js-ipfs-core as both Node an Browser init it the same way Context: ipfs-inactive/interface-js-ipfs-core#514 (comment) License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
Old version of
addFromURL
tests was Node-centric and did not work in web browser contexts.This PR:
aegir hook (see .aegir.js/hooks/browser/pre|post in js-ipfs from fix: limit concurrent HTTP requests in browser ipfs/js-ipfs#2304)