Ł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
Steven Allen
62240f347a
sharness: verify that we return an error when we can't lookup a peer in ping
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 06:31:03 -07:00
Kejie Zhang
53fe9c9bcc
add ipfs help sub-command test
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-30 16:53:47 +08:00
Kejie Zhang
08c75aa795
fix ipfs help bug
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-30 15:36:44 +08:00
Łukasz Magiera
23ddc26025
ci: Coverage and Junit xmls in one run
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-29 18:44:49 +01:00
Steven Allen
2b0bc7e084
configurable pubsub singing
...
I'd like to sneak this into the release so we can turn on strict verification
ASAP.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-26 04:00:44 -07:00
Steven Allen
e35d4ea58b
gx: update yamux
...
(fixes a panic due to a race)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 15:01:31 -07:00
Steven Allen
636bbc7e2b
gx update go-libp2p
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 13:39:48 -07:00
Steven Allen
c97c3459be
gx update
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 09:59:43 -07:00
chenminjian
64cdabc88f
feat: stop apply command exposing private key over HTTP API
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-10-24 05:46:00 -07:00
chenminjian
2e3cbe3e27
feat: add dry-run flag for config profile apply command
...
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-10-24 05:46:00 -07:00
Łukasz Magiera
34b1313d82
coreapi unixfs: remove Cat, use sessions
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-22 23:37:45 +02:00
Steven Allen
dd4d8bb25e
Merge pull request #5529 from overbool/fix/issue-#5523
...
fix(p2p): issue #5523
2018-10-18 19:33:44 +01:00
Steven Allen
9cdbb1eaad
Merge pull request #5586 from ipfs/fix/sharness/stat-race
...
fix: sharness race in directory_size if file is removed
2018-10-18 15:59:18 +01:00
Steven Allen
7de79280bb
Merge pull request #5404 from ipfs/feat/namestream
...
ipfs name resolve --stream
2018-10-18 15:55:16 +01:00
Overbool
ec8e45120e
fix(files): add test
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-17 01:06:32 +08:00
Łukasz Magiera
462c8026be
namesys: allow non /ipfs paths
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-16 16:37:15 +02:00
Łukasz Magiera
94bbeffaa9
Merge remote-tracking branch 'origin/master' into feat/namestream
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-15 12:05:03 +02:00
Jakub Sztandera
a4fab7f885
fix(sharness): gc repo size tests failing
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-10-15 09:26:28 +01:00
Steven Allen
4f53736430
gx: update yamux and refmt
...
* yamux: fix memory leak.
* refmt: obey the "empty" tag.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-12 16:15:40 +01:00
Steven Allen
1efe39274b
Merge pull request #5580 from ipfs/fix/5577
...
test the correct return value
2018-10-12 15:18:09 +01:00
Steven Allen
8117a2bcee
gx: update go-buffer-pool
...
Turns out that `pool.Put(buf)` had to *allocate* because we needed to turn
`[]byte` into `interface{}`. Apparently, we've never done this correctly we just
never noticed because we never really used buffer pools extensively.
However, since migrating yamux to a buffer-pool backed buffer, this started
showing up in allocation profiles.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-10 14:11:31 +01:00
Łukasz Magiera
0bef4603e8
Merge branch 'master' into feat/namestream
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-10 12:10:12 +02:00
Steven Allen
67ea8dde0e
test the correct return value
...
`res=$?` erases `$?` (sets it to 0)
fixes #5577
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-10 10:08:54 +01:00
Kejie Zhang
f90ee061d3
update add --chunker test
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-08 14:15:56 +08:00
Steven Allen
098933ade4
gx: update stuff
...
* go-datastore and friends: GetSize
* badger: new release, fewer allocations
* go-mplex: send fewer packets
* go-bitswap: pack multiple blocks in a single message, fewer allocations
* go-buffer-pool: replace the buffer pool from go-msgio
* yamux: fixed data race and uses go-buffer-pool for stream read-buffers to
reduce memory and allocations.
* go-libp2p-secio: get rid of a hot-spot allocation
* go-libp2p-peerstore: reduced allocations (at the cost of some memory)
More?
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-05 14:48:44 -07:00
Overbool
717c0c83a1
fix(p2p): add test for issue #5523
...
;wq
Signed-off-by: Overbool <overbool.xu@gmail.com>
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-05 13:30:31 +08:00
Kejie Zhang
dee54b36d9
add test about issue #4978
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-05 11:21:54 +08:00
Kejie Zhang
51fa159e4a
add dns support in p2p forward connect
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-04 18:14:55 -07:00
Steven Allen
05b3b81743
Merge pull request #5555 from overbool/feat/add-force-flag-for-files-rm
...
feat(command): add force flag for files rm
2018-10-04 17:52:01 -07:00
Kevin Atkinson
d127f1be98
gx update libp2p/go-buffer-pool
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-04 20:05:26 -04:00
Lars Gierth
fc2575740e
gx: update go-ipfs-config, iptb
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2018-10-04 20:02:42 -04:00
Lars Gierth
2c3ed7efb0
gx: update go-datastore, go-libp2p-swarm
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2018-10-04 19:52:42 -04:00
Overbool
a86cde50de
test(files): add test for force flag
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-04 23:09:39 +08:00
Steven Allen
181c39993a
Merge pull request #5472 from overbool/fix/diff-raw-leaves
...
fix(object): add support for raw leaves in object diff
2018-10-03 18:58:06 -07:00
Steven Allen
4f9bde807b
Merge pull request #4803 from ipfs/feat/coreapi/swarm
...
coreapi: Swarm API
2018-10-02 16:25:45 -07:00
Steven Allen
021fc9fb97
Merge pull request #5385 from ipfs/kevina/cid-cmd
...
Provide new "cid" sub-command.
2018-10-02 15:54:55 -07:00
Łukasz Magiera
1ed555b87f
Cleanup instances of manual resolver construction
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-02 18:35:14 +02:00
Kevin Atkinson
88a7e58b58
Add basic sharness tests.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:06:53 -04:00
Łukasz Magiera
ea352f62d0
update routing-helpers
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-29 12:43:30 +02:00
Jakub Sztandera
12746433ea
test: add tess for /debug/pprof-mutex/ endpoint
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-09-27 03:44:44 +02:00
Łukasz Magiera
6fa2ab0d41
coreapi swarm: rewire address listing cmds
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-26 22:17:23 +02:00
Overbool
c6daf934ea
fix(diff): modify diff logic and comment
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-24 20:39:07 +08:00
Steven Allen
dac058f8be
gx: update go-log go-ipld-cbor
...
(and friends)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-24 05:36:29 -07:00
Steven Allen
ac53d3aaa4
Merge pull request #5494 from rob-deutsch/feat/publishquieter
...
add quieter option to name publish
2018-09-24 10:11:18 +00:00
rob-deutsch
286d935036
add quieter option to name publish
...
Added a quieter/Q option to 'name publish' that, consistent with 'add', only outputs the value that was published.
License: MIT
Signed-off-by: Rob Deutsch <rdeutschob@gmail.com>
2018-09-22 09:49:40 +10:00
Overbool
7d7bca0375
feat(daemon): print version
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-21 14:44:08 +08:00
Overbool
d656ade823
test(add): add test for issue \#5456
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-20 07:54:39 +08:00
keks
480184fafa
document TEST_IMMEDIATE in test/sharness/README.md
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
Steven Allen
08cc8552e2
fix broken gc test
...
`ipfs refs` won't work because we don't have the referenced objects (ipfs refs
fetches everything it prints).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-19 14:35:54 -07:00
keks
908ffddc1b
big squash commit
...
excerpt of commit messages:
- update postrun functions in core/commands
- sharness: allow setting -i with TEST_IMMEDIATE=1
- cmds Run func returns error now
- gx update cmdkit to 1.1.2 and cmds to 2.0.0-beta1
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-09-19 14:35:54 -07:00
Steven Allen
370bd22372
Merge pull request #5484 from ipfs/fix/resolve-hamt
...
resolve: use unixfs ResolveOnce
2018-09-19 18:41:44 +00:00
Kejie Zhang
9a53494440
update test about publish offline mode
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-18 14:04:56 +08:00
Overbool
7cda005a5f
test(diff): separate diff test cases
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-18 08:56:01 +08:00
Łukasz Magiera
ec96a21db3
resolve: use unixfs ResolveOnce
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-18 01:08:04 +02:00
Overbool
5b0a94895f
fix(object): add Diff() comment and test case
...
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-17 22:34:54 +08:00
Steven Allen
041e771dbd
Merge pull request #5449 from kjzz/fix/chunker
...
add rabin min error test
2018-09-14 01:32:36 +00:00
Steven Allen
984ae1f406
fix expected error code for add-and-cat test
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-13 17:53:24 -07:00
Steven Allen
2de616300b
Merge pull request #4929 from ipfs/misc/cleanup-p2p
...
Refactor `ipfs p2p`
2018-09-13 23:57:43 +00:00
Steven Allen
72133283fb
Merge pull request #5399 from kjzz/zkj/feat
...
add --name new flag when ipfs adding from stdin
2018-09-13 21:44:41 +00:00
Steven Allen
18781fb2e7
fix sharness test_expect_code location in add-and-cat
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-13 14:40:38 -07:00
Steven Allen
ce236abf81
Merge pull request #5440 from ipfs/feat/ungodep
...
remove Godeps
2018-09-13 21:13:57 +00:00
Steven Allen
5629b1ce88
test object links
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-13 11:10:43 -07:00
Steven Allen
71c65e425b
use test/bin/random instead of recompiling it
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-13 09:54:10 -07:00
Kejie Zhang
0c56ac104b
update rabin min error test
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-13 11:28:04 +08:00
Kejie Zhang
bc2e325e5c
add rabin min error test
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-13 11:28:04 +08:00
Łukasz Magiera
b53936a706
p2p: Close on Listeners
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-12 23:27:15 +02:00
Kevin Atkinson
d3174f4bd9
gx update and fix code to use new Cid type
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-09-11 22:21:04 -04:00
Kejie Zhang
b7ea4bfc2a
modify command name and update the test
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-12 05:58:47 +08:00
Steven Allen
0252710020
remove Godeps
...
fixes #2722
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-11 12:11:24 -07:00
Łukasz Magiera
a5e5b5be66
p2p: test custom protocol
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
87567645f4
p2p: test for double-registering listeners
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
5e8725dbde
p2p: test to ensure closing right linsters
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
a3c84e20ef
p2p: refactor review
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
f5ab137fc0
p2p: split forward into 2 commands
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
eb45436512
p2p: allow-custom-protocol option
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
c19102816f
p2p: change the required prefix to /x/
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
df6decd31c
p2p: don't automatically prefix proto with /p2p
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
e8ba4fc01a
p2p: fix sharness tests after refactor
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Steven Allen
a6e617f55c
gx: update peerstore
...
Also:
* Updates go-floodsub to fix a data race.
* Updates golang-lru
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-07 23:40:08 -07:00
Kejie Zhang
9898ba9309
update test and do not overwrite in sharness test
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-07 00:37:56 +08:00
Kejie Zhang
76e8190a38
drop --name test file and update test case
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-06 23:58:55 +08:00
Kejie Zhang
ad27614a66
add sharness tests for --name option
...
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-06 16:08:19 +08:00
Steven Allen
21befd5f53
run the twonode test with QUIC enabled
...
No reason not to and it would have caught #5416
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-31 15:13:45 -07:00
Steven Allen
1b4972b4cf
Merge pull request #5350 from marten-seemann/feat/quic
...
add QUIC support
2018-08-31 20:43:45 +00:00
Steven Allen
46a1d9d39b
gx update deps
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-31 10:29:26 -07:00
Marten Seemann
41806ccf35
add a QUIC twonode sharness test
...
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2018-08-31 13:31:22 +07:00
Marten Seemann
8193a76d7d
add a QUIC sharness test
...
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2018-08-31 13:30:27 +07:00
Steven Allen
acfa02359d
fix a test failure caused by eagerly killing nc
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-29 16:36:25 -07:00
Marten Seemann
1c57b1d287
update go-ipfs-config to version 0.2.5
...
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2018-08-29 08:58:40 +07:00
Hector Sanjuan
fe89e2e185
Add sharness tests for the refs -r command using --max-depth
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-08-27 20:34:52 +02:00
Steven Allen
93c4f19169
Merge pull request #5281 from ipfs/kevina/inline-cids
...
Add support for inlinling via the id-hash
2018-08-24 22:09:49 +00:00
Kevin Atkinson
7e3265a16d
Change "--inline-limit" default to 32.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-24 16:06:54 -04:00
Steven Allen
4fb2666a24
Merge pull request #5372 from raulk/dns-resolution-api-endpoint
...
Run DNS lookup for --api endpoint provided in CLI
2018-08-23 03:51:14 +00:00
Steven Allen
0be1f5f755
Merge pull request #5359 from achingbrain/allow-files-write-to-create-parent-directories
...
Allow mfs files.write command to create parent directories
2018-08-23 03:34:22 +00:00
Kevin Atkinson
b0f90e3e84
Address code review.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-22 21:41:25 -04:00
Steven Allen
c89102a01c
dns test: switch to localhost
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-22 18:18:30 -07:00
Raúl Kripalani
9a579499b2
add sharness test for DNS resolution on API CLI flag.
...
License: MIT
Signed-off-by: Raúl Kripalani <raul.kripalani@gmail.com>
2018-08-22 18:18:30 -07:00
Steven Allen
43f4147d25
fix the urlstore tests
...
1. GC the intentionally broken files so we don't reuse their blocks.
2. Make sure we actually check the *new* output file instead of an old one.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-22 17:14:56 -07:00
Kevin Atkinson
08c96ba073
Add support for inlining via the id-hash to the add command.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-21 21:56:49 -04:00
Steven Allen
aef8eec279
fix cid-fmt import path
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-21 17:47:14 -07:00
Steven Allen
656d7cc1a6
gx: update go-cid, go-libp2p-peer, go-ipfs-cmds, go-ipfs-cmdkit
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-21 17:39:56 -07:00
Steven Allen
fcc96a3ae7
Merge pull request #4177 from Voker57/feat/gw-filename-option
...
Set filename in Content-Disposition if filename=x is passed in URI query
2018-08-21 16:49:53 +00:00
vyzo
42a9cdcbfb
fix gossipsub test initialization
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-08-15 10:02:32 -07:00
vyzo
884df03320
gossipsub sharness test
...
just a copy of t0180-pubsub with gossipsub enabled for now
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-08-15 10:02:32 -07:00
vyzo
e002de9571
update go-ipfs-config
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-08-15 10:02:32 -07:00
Steven Allen
2450ddde81
gx: update go-cid
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-15 08:30:22 -07:00
achingbrain
c97c44e8a4
Allow mfs files.write command to create parent directories
...
Adds support for a `-p/--parents` flag to the `files.write` command
similar to the one supported by the `files.mkdir` command. If this
is true and the directory for the file is not `"/"`, try to create
the containing directory before writing to the file.
License: MIT
Signed-off-by: Alex Potsides <alex@achingbrain.net>
2018-08-14 07:59:36 +01:00
Steven Allen
0e5ed59400
Merge pull request #5364 from ipfs/fix/1515
...
add correct test for 1515
2018-08-13 17:01:58 +00:00
Kevin Atkinson
075ecb09d0
Gx updates and fixes to use new cid.Builder interface.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-12 19:15:07 -04:00
Steven Allen
c1e10dbc4e
add correct test for 1515
...
When checking to see if GC fully reverses an `ipfs add`, we should check the
size of the actual files, not the directory sizes. A bunch of empty directories
won't use *that* much space and really shouldn't count against GC.
closes #1515
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-11 09:53:52 -07:00
Łukasz Magiera
838a30cd22
gx: Update config
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 12:39:55 +02:00
Łukasz Magiera
d52091fa55
Update iptb
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 10:57:31 +02:00
Łukasz Magiera
b65cf84a34
repo: move version.go back here
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 10:51:15 +02:00
Steven Allen
594d95af5d
update gogo-protobuf
...
fixes #3214
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-08 18:56:13 -07:00
Kevin Atkinson
e7ca9554d0
Add ability to retrieve blocks even if given using a different CID version.
...
This is done via a wrapper blockstore.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-06 22:12:40 -04:00
Whyrusleeping
ba3f8fc6e9
Merge pull request #5329 from grokcoder/fix/dht_findprovs_error
...
fix: dht findprovs unable to handle /ipfs/hash #5311
2018-08-05 10:56:55 -07:00
Xiaoyi Wang
664d881b89
fix: dht findprovs unable to handle /ipfs/hash
...
License: MIT
Signed-off-by: Xiaoyi Wang <wangxiaoyi@hyperchain.cn>
2018-08-02 11:24:15 +08:00
Steven Allen
00158c4b92
wait for all connections to close before exiting on shutdown.
...
Using httpServer.Shutdown will:
1. Close the listener (preventing new connections).
2. Close each connection as outstanding requests finish.
This prevent us from shutting down before outstanding requests get a chance to
respond.
fixes #4055
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-31 13:07:19 -07:00
Steven Allen
7705240997
Merge pull request #5315 from ipfs/fix/5272
...
wait for the nodes to fully stop
2018-07-31 01:25:31 +00:00
Steven Allen
abad8ca76e
wait for the nodes to fully stop
...
Ideally, we'd fix this in IPTB but I'm tired of this bug and this is the easy
fix.
fixes #5272
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-30 16:21:25 -07:00
Steven Allen
e25383e49e
make faulty tests always pass
...
see: https://github.com/ipfs/go-ipfs/issues/4055
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-30 16:21:22 -07:00
Steven Allen
848a923c99
fix private network tests
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-30 15:59:31 -07:00
Steven Allen
ca1024a16a
sharness: remove extraneous iptb stop
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-30 15:59:31 -07:00
Steven Allen
e51588ee77
test pin update
...
tests #4999 and #5264
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-30 00:13:05 -07:00
Kevin Atkinson
1e7b2559e4
Include cid-fmt binary in test/bin.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-28 02:28:27 -04:00
Whyrusleeping
eb59a62736
Merge pull request #5268 from ipfs/gx/update-deps
...
gx update deps
2018-07-23 17:17:13 -07:00
Whyrusleeping
42156532e4
Merge pull request #5271 from ipfs/fix/5270
...
Fix resolving links in sharded directories on gateway
2018-07-23 12:53:42 -07:00
Steven Allen
53235242a1
gx update deps
...
Updates:
* go-net
* go-text
* dns
* prometheus
* protobuf (golang, not gogo)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-23 11:49:43 -07:00
Łukasz Magiera
a11c5d27e1
path: gateway test for sharded dirs
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-21 15:15:40 +02:00
Kevin Atkinson
c8613b4300
Add initial support for identity hashes.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-19 18:09:52 -04:00
Whyrusleeping
1dede1b1d7
Merge pull request #5219 from schomatis/fix/mfs/remove-sort
...
mfs: remove `sort` from `ListNames()`
2018-07-19 14:29:11 -05:00
Lucas Molas
65a18ed669
unixfs: fix dagTruncate to preserve node type
...
Extract the original `FSNode` passed inside the `ipld.Node` argument and modify
its `Blocksizes` (removing all of them and re-adding the ones that were not
truncated). In contrast, the replaced code was creating a new `FSNode` that was
not preserving some of the features of the original one.
Change `TRUNC_HASH` values in `sharness` that were created with the bug to the
correct values.
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-18 13:07:21 -03:00
Whyrusleeping
454a170032
Merge pull request #5245 from ipfs/fix/5241
...
add trickle-dag support to the urlstore
2018-07-18 10:39:10 -05:00
Steven Allen
9a9979b193
update go-cid
...
alternative to #5243 that updates go-cid and all packages that depend on it
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-16 15:16:49 -07:00
Steven Allen
4d4f343df7
check hashes in urlstore sharness tests
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-16 15:04:46 -07:00
Steven Allen
1358b28204
add sharness for trickle importer
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-16 15:04:45 -07:00
Whyrusleeping
bda81cd2d4
Merge pull request #5045 from schomatis/fix/cmd/files-ls-file-long
...
cmd: fix `files ls` to report hash and size for files
2018-07-16 16:52:13 +02:00
Whyrusleeping
07feeec9c4
Merge pull request #5010 from ipfs/feat/diskusage2
...
Efficient "repo stat" (DiskUsage) and "--size-only" flag
2018-07-16 16:50:41 +02:00
Whyrusleeping
4f1391f477
Merge pull request #5139 from achingbrain/feat/specify-object-data-encoding
...
feat: Allow specifing how object data is encoded
2018-07-16 16:49:31 +02:00
Lucas Molas
dfb81abf80
commands: files ls: sort output
...
Imitate Unix `ls` command, sort by default; disable with `-U` flag.
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-16 09:58:55 -03:00
Kevin Atkinson
6a4b1262a5
Make sure you can't add URL's unless the url store is enabled.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:52 -04:00
Kevin Atkinson
0c2efb90d3
More test fixes.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:52 -04:00
Kevin Atkinson
b3457f240c
Enhance tests.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:52 -04:00
Kevin Atkinson
90972095a9
Add test cases for urlstore.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:51 -04:00
Steven Allen
7df7d11199
fix dht commands when pubsub routing is enabled
...
Instead of checking if Routing is a DHT (because it can now be a tiered
router and still contain a DHT), stash the DHT in a separate field in the IPFS
node (same as we do with the PSRouter).
fixes #5197
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-09 09:58:44 +02:00
Hector Sanjuan
37d4989647
Sharness: add tests for ipfs repo stat --size-only
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-07-08 13:01:46 +02:00
Steven Allen
cb0ad0d6ce
fix starting iptb nodes with additional arguments
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-06 23:33:12 -07:00
Steven Allen
667a9c8999
add test for sharness locking
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-05 14:33:01 -07:00
Lucas Molas
cbc239ce44
sharness: add files ls test (without -l)
...
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-02 17:17:46 -03:00
Lucas Molas
dfe64980ce
cmd: fix files ls to report hash and size for files
...
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-02 17:17:43 -03:00
Steven Allen
780f110aad
add test for /p2p addresses
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-26 17:11:40 -07:00
Steven Allen
3eba14aa24
gx update
...
Updates:
* go-kad-dht: Query performance improvements, DHT client fixes, validates
records on *local* put.
* go-libp2p-swarm/go-libp2p-transport: Timeout improvements.
* go-multiaddr-net: Exposes useful Conn methods (CloseWrite, CloseRead, etc.)
* go-log: fixes possible panic when enabling/disabling events.
* go-multiaddr: fixes possible panic when stringifying malformed multiaddrs,
adds support for consuming /p2p/ multiaddrs.
fixes #5113
unblocks #4895
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-26 17:11:33 -07:00
Steven Allen
384e2c40b2
add a failing test case for calling dht put with a bad key
...
see #5113
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-25 18:15:33 -07:00
Steven Allen
6112150d04
fix dht sharness tests
...
We can't currently put binary values due to API limitations. This worked before
because the DHT wasn't checking values on local put.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-25 18:15:33 -07:00
achingbrain
3cdaea663c
feat: Allow specifing how object data is encoded
...
Adds a --data-encoding flag to `ipfs object get` to let the user
specify base64 encoding for object data.
License: MIT
Signed-off-by: Alex Potsides <alex@achingbrain.net>
2018-06-19 16:37:45 +01:00
Whyrusleeping
aedc3217b5
Merge pull request #5107 from ipfs/fix/5102
...
improve swarm connect/disconnect commands
2018-06-13 15:29:02 +08:00
Whyrusleeping
92f3725fd7
Merge pull request #5069 from ipfs/feat/cat-iptb-logs
...
cat iptb logs on iptb failure (for debugging CI)
2018-06-13 15:27:12 +08:00
Whyrusleeping
1f3a5fe481
Merge pull request #4991 from ipfs/feat/git-plugin-default
...
plugin: preload git plugin by default
2018-06-13 15:26:27 +08:00
Steven Allen
98a1c44489
test swarm connect/disconnect
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-12 14:50:33 -07:00
Steven Allen
85acad9a01
gx update go-log, sys, go-crypto
...
* go-log
* sys
* go-crypto
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-08 22:36:24 -07:00
Whyrusleeping
65b8d70eca
Merge pull request #4693 from ipfs/kevina/fix-zero-raw-leaf
...
Create a raw node instead of a file node when there is no content.
2018-06-08 16:41:24 +08:00
Steven Allen
39f927aa04
update gx imports
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-05 23:55:08 -07:00
Steven Allen
c9c9986c9e
update multiplexers
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-04 10:05:20 -07:00
Steven Allen
8f95badb12
cat iptb logs on iptb failure (for debugging CI)
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-03 12:47:52 -07:00
Steven Allen
8293e20aae
fix the repo verify test
...
We've added a new file to the flatfs datastore.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-01 23:39:32 -07:00
Steven Allen
916572f38d
fix keystore tests for peer ID inlining patch
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-05-31 18:29:22 -07:00
Steven Allen
b4ed464ba5
remove extra newline from expected command output
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-05-31 18:29:22 -07:00
Steven Allen
1e9e2f453c
update deps
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-05-31 17:59:17 -07:00