Commit Graph

11097 Commits

Author SHA1 Message Date
Overbool
740110e72a block: rm extra output
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-12-07 15:58:03 -08:00
Steven Allen
6cec0b1611 fix ed25519 test(s)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-07 15:51:28 -08:00
Steven Allen
9dcec2b3e2 gx: update go-libp2p-peer
Reverts the changes that allowed small keys (ed25519 keys) to be inlined.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-07 15:37:23 -08:00
Steven Allen
6b8e24f8fd
Merge pull request #4636 from ipfs/feat/expand-issue-template
merge github-issue-guide with the issue template
2018-12-06 15:33:26 -08:00
Steven Allen
d4ae43b42c
Merge pull request #5824 from machawk1/patch-1
docs: fix inconsistent capitalization of "API".
2018-12-06 09:27:51 -08:00
Molly
0a6c7c183e Re update issue description to be shorter and more actionable
Redoing the changes Steven and I worked on separately for the top-line instructions.

License: MIT
Signed-off-by: Molly Mackinlay <molly@protocol.ai>
2018-12-06 09:17:45 -08:00
Mat Kelly
a81683d3f9
docs: fix inconsistent capitalization of "API". 2018-12-06 12:13:41 -05:00
Steven Allen
3099f2fdab add panic issue type to issue template
This was present in the issue guide that I just removed but not in the template.
It's useful for distinguishing between objective bugs and subjective bugs.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-05 15:06:37 -08:00
Steven Allen
d0789c7927 add comment about reading github's issues guide to the issue template
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-05 15:06:37 -08:00
Steven Allen
ab33445190 merge github-issue-guide with the issue template
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-05 15:06:37 -08:00
Steven Allen
18fb10b8fe
Merge pull request #5818 from ChrisChinchilla/patch-1
Update README.md
2018-12-04 10:44:54 -08:00
Chris Chinchilla
3ab2ddd4e3
Update README.md
Use correct install link
2018-12-04 19:36:21 +01:00
Steven Allen
481136b105
Merge pull request #5811 from NukeManDan/patch-1
CONTRIBUTING.md link
2018-12-03 11:13:41 -08:00
Steven Allen
942314a071
Merge pull request #5813 from anacrolix/docs/go-version-1.11
README: Update required Go version
2018-12-03 10:23:27 -08:00
Dan
f9202307d0 CONTRIBUTING.md link
License: MIT
Signed-off-by: Dan Shields <danwshields@gmail.com>
2018-12-03 00:31:16 -07:00
Matt Joiner
69ffb5bf9e README: Update required Go version
It appears that Go version 1.11 is actually required.

License: MIT
Signed-off-by: Matt Joiner <anacrolix@gmail.com>
2018-12-03 15:56:00 +11:00
Steven Allen
d34e3c8122
Merge pull request #5771 from ipfs/p2p/report-remote
p2p: report-peer-id option for listen
2018-11-30 10:19:34 -08:00
Łukasz Magiera
d6626a5c52 p2p: tests for report-peer-id
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-11-29 20:49:17 -08:00
Łukasz Magiera
c0a1e80f36 p2p: report-peer-id option for listen
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-11-29 20:49:17 -08:00
Steven Allen
1dcac25c11
Merge pull request #5803 from ipfs/fix/2528-really
really fix netcat race
2018-11-29 20:21:53 -08:00
Steven Allen
2d94a3ffc8
Merge pull request #5526 from cboddy/feat/http_proxy_over_p2p
[http_proxy_over_p2p]
2018-11-29 20:15:32 -08:00
Steven Allen
c0f979dfe1 really fix netcat race
We hit this once every few Jenkins runs. This:

1. Ensures netcat has started before we try to use it.
2. Waits for it to actually write the request before trying to read it.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-29 18:28:03 -08:00
Steven Allen
9a443adada p2p proxy tests: make robust against timing
Instead of repeatedly starting the netcat server, start it once and wait for it
to fully start. Then, feed responses in using a fifo.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-29 18:01:41 -08:00
Steven Allen
f505e06af7
Merge pull request #5809 from ipfs/kevina/coreapi-pin-cid-map
coreapi/pin: Use CID's directly in maps instead of converting to string
2018-11-29 15:57:17 -08:00
Kevin Atkinson
b1ecb82172 coreapi/pin: Use CID's directly in maps instead of converting to strings.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-11-29 17:13:26 -05:00
Dr Ian Preston
8694984992 Add another test case for invalid p2p http proxy path
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Łukasz Magiera
7e541079c7 Update test/sharness/t0184-http-proxy-over-p2p.sh
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>

Co-Authored-By: ianopolous <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
9956630e0c add more p2p http proxy tests
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Hector Sanjuan
3b2ce4a85d Apply suggestions from code review
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>

Co-Authored-By: ianopolous <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Steven Allen
bf184376ca p2p http proxy: go fmt
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Steven Allen
b720d1f0b5 uses the global PeerHost and don't expose the P2P one
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Steven Allen
fe8ffde4c2 add some additional tests for custom protocols
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Steven Allen
d8cab7998e update tests
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
19d4d66fc7 update p2p http proxy docs
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
47d45c7af8 fix tests
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
fd43f473b4 switch to new path format in p2p http proxy
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
78c43fe68b move p2p http proxy from api to gateway
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Steven Allen
28652758df fix tests for iptb update
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
13b0483df0 Don't url decode protocol name. It won't work.
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Steven Allen
83369b5716 setup and teardown nodes only once
We don't need to do this for every test and our tests are slow enough.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Steven Allen
acb2cacefe use iptb in http proxy tests
Also:

* Disable bootstrapping
* Listen on random ports
* Write temporary files to the current (trash) directory instead of temp (easier
  to find, collected by Jenkins).
* Fix indentation.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
Chris Boddy
3f6b866edc [http_proxy_over_p2p] url-decode the proxy name and fix test
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
f61440670a add doc item
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Chris Boddy
749ba25485 [http_proxy_over_p2p] cfg.Experiments.P2pHttpProxy
Updated config dependency and  made p2p-http-proxy option require
P2pHttpProxy config option.

License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:27 -08:00
Chris Boddy
8676b2ebf1 [http_proxy_over_p2p] multipart request proxy test
Added a test for the case where the request to be proxied is a
http post multipart-form request.

License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
9e79c5e3c9 add docs for p2p http proxy
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
264d9d6073 fix remaining sharness tests
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
a818b43624 fix some sharness tests
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Dr Ian Preston
654105a210 fix test
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
Hector Sanjuan
42a843d66b Fix request path. Wasn't using proxy correctly
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-11-28 23:17:27 -08:00