Commit Graph

1459 Commits

Author SHA1 Message Date
Łukasz Magiera
85772fcd54 Fix name resolve --offline
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2019-01-02 11:58:31 -08:00
Steven Allen
1652148cae
Merge pull request #5856 from ipfs/fix/repub-race
testing: slow down republisher sharness test
2019-01-02 11:56:08 -08:00
Steven Allen
5894291139 gx: update go-ipfs-config
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-20 10:07:32 -08:00
Łukasz Magiera
c832a32a4c coreapi: global offline option
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 16:40:09 +01:00
Łukasz Magiera
eb1ecf8789 files2.0: more regreussion fixes
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Łukasz Magiera
adc7490755 files2.0: updates for file type split
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-12-20 13:52:20 +01:00
Steven Allen
4743374f14 testing: slow down republisher sharness test
We'd frequently hit a race where we'd end up sleeping till *after* the record
was republished.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-18 20:57:30 -08:00
Steven Allen
55c232fc72 commands: return a helpful error when the daemon is offline
fixes #3415

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-18 11:28:29 -08:00
Dominic Della Valle
5a02b98702 add --dereference-args parameter
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-12-12 16:35:42 -08:00
Steven Allen
edd37d8682 improve urlstore pinning tests
address CR

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-11 13:44:07 -08:00
Steven Allen
25a0db4f69 add pinning support to the urlstore
fixes #5833

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-10 18:30:14 -08:00
Steven Allen
508f307c35
Merge pull request #5827 from ipfs/gx/update-peer-id
gx: update go-libp2p-peer
2018-12-10 11:57:16 -08:00
Overbool
28d9340dbb test/block: rm mixed hash
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-12-07 15:58:03 -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
Ł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
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
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
Ł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
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
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
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
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
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
Chris Boddy
5f246e3211 [http_proxy_over_p2p] httputil.ReverseProxy
Reimplement http-request proxying ala httputil.ReverseProxy.

NB: this is proxies the request synchronously (sends all request-body
before reading any response).

License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
Dr Ian Preston
22f3b11621 change handler mount point to /proxy/http/
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:26 -08:00
Chris Boddy
1945e44f7f [http_proxy_over_p2p] Add sharness tests for http-proxy-over-p2p
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
Steven Allen
cef645936d gx: update go-ipfs-config
* AutoRelay options for #5785.
* Badger truncate-by-default option for #5275, #5625.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-26 17:42:13 -08:00
Łukasz Magiera
7391cfd421 fix(commands): reduce complexity w/ typed encoder
uses single flag to support state needed by PostRun
supports encoding=text

License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-16 14:53:08 -08:00
hannahhoward
20b928094c fix(commands): Add sharness tests for streaming
Also fixes issues discovered with sharness tests

License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-16 14:52:29 -08:00
hannahhoward
0963c9cdcb Update go-ipfs-delay and assoc deps
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-15 18:53:45 -08:00
Steven Allen
5716926c76
Merge pull request #5573 from kjzz/fix/help
fix `ipfs help` bug #5557
2018-11-05 16:18:58 -08:00
Steven Allen
7e26ef5881
Merge pull request #5729 from dtkav/feat/cmd/webui-link
output link to WebUI on daemon startup
2018-11-05 07:51:47 -08:00
Łukasz Magiera
cb16462885 update t0290-cid with new dash codec
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-11-03 22:59:56 +01:00
Daniel Grossmann-Kavanagh
c7e10f2078
add Web UI link to daemon startup
License: MIT
Signed-off-by: Daniel Grossmann-Kavanagh <me@danielgk.com>
2018-11-02 23:00:52 -07:00
Steven Allen
0d80fc54c3 gx: update go-log and sha256
fixes #5709

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-02 21:17:20 -07:00
Travis Person
b37338fd68 fix for-each
License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
2018-11-01 20:13:31 -07:00
Travis Person
fcf1043683 Update iptb and iptb-plugins
License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
2018-11-01 19:46:06 -07:00
Travis Person
be3fc3e791 Update for plugins split
License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
2018-11-01 19:34:05 -07:00
Travis Person
e68c10abf4 Add iptb dep
License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
2018-11-01 19:33:07 -07:00
Travis Person
569eeb8f82 Update IPTB test - WIP
Related to #5521

License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
2018-11-01 19:33:05 -07:00
Steven Allen
37f33812ae error on resolving non-terminal paths
This isn't the *correct* fix but it (mostly) restores the previous behavior.

Note 1: It *also* fixes resolution of `/ipld` paths by avoiding `path.FromCid`.
Note 2: This does not preserve the error. That was a DagCBOR specific error that
has nothing to do with the issue.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 12:34:32 -07:00
Steven Allen
8543e27e0d
Merge pull request #5699 from ipfs/fix/pin-ls-output
Fix pin ls output when hash is specified
2018-10-30 07:52:19 -07:00
Łukasz Magiera
08d6e7844a fix pin ls output when hash is specified
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-30 15:26:18 +01:00
Steven Allen
f8375ec79c
Merge pull request #5680 from ipfs/fix/cleanup-ping
cleanup the ping command
2018-10-30 06:42:52 -07:00