Commit Graph

1591 Commits

Author SHA1 Message Date
Jakub Sztandera
16dad7515b tar: fix Go 1.10 breakage
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-08 04:17:47 +01:00
Whyrusleeping
13887ff2c7
Merge pull request #4751 from ipfs/feat/safe-cid
Disallow usage of unsafe hashes for reading and adding content
2018-03-05 12:25:26 -08:00
Jeromy
dd40a5a2d5 fix pubsub pub reading stdin args
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-05 11:45:11 -08:00
Jakub Sztandera
60018d3ee8 cid_secuirty: add test for gc
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-05 19:38:25 +01:00
Lucas Molas
90acbfaae7 dag: diff: check CIDs in base case when comparing nodes
Fixes #4591.

License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-03-05 12:22:52 -03:00
Lucas Molas
f710b31ff4 unixfs: clean path in DagArchive
Fixes #4720.

License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-03-04 20:10:19 -03:00
Jakub Sztandera
a9417a144c fix ipfs pin verify --verbose not working
Resolves https://github.com/ipfs/go-ipfs/issues/4761

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Jakub Sztandera
9634991112 Add sharness tests for CID security
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Jakub Sztandera
c30422d790 Enforce Cid security rules for getting and adding blocks
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Lucas Molas
5d7e8a893d add: hash-only: set the prefix for MFS root
Fixes #4652.

License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-03-02 15:46:02 -03:00
Łukasz Magiera
6f68eac5bc commands/block: Increase mhlen in sharness
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-01 16:18:53 +01:00
Whyrusleeping
25eeb1e250
Merge pull request #4638 from MichaelMure/statlocal
add a --with-local option to ipfs files stat
2018-02-08 14:21:16 -08:00
Whyrusleeping
3106135dd5
Merge pull request #4662 from ipfs/fix/freebsd-tests
Fix some tests on FreeBSD
2018-02-07 12:50:12 -08:00
Łukasz Magiera
91a9b86442 fix t0086-repo-verify.sh on FreeBSD
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-06 20:35:17 +01:00
Steven Allen
0e8fc8ffc8 remove useless make target
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-04 15:11:09 +01:00
Michael Muré
8fd6fdb385
add tests for ipfs files stat --with-local
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:51:37 +01:00
Łukasz Magiera
8c176d26eb commands/block: use CIDv1 with custom mhtype
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-02 01:56:41 +01:00
Steven Allen
b2cbfd299c gx: update go-log
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-31 21:54:22 -08:00
Steven Allen
1054826ac4 switch base64 decoder based on OS
Less magical.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-28 14:13:16 -08:00
Steven Allen
5acbecc26b update go-lib2p-loggables
fixes a UUID bug I introduced (UUIDs were always an error value)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-27 18:05:30 -08:00
Steven Allen
d0998a926d make base64 decoding cross-platform
support both the -D and the -d flag.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-27 13:45:36 -08:00
Steven Allen
e049228e17 fix namesys pubsub sharness tests
We *expect* name resolution to fail as nothing has been published.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-27 13:45:36 -08:00
Steven Allen
d73bf86cf7 note issue for failing dht test cases
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-27 13:45:36 -08:00
Steven Allen
97cb6a0fbe fix dht tests
we no longer allow putting values with arbitrary keys.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-27 13:45:36 -08:00
Steven Allen
fe8846fcd7 gx: mass update
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-24 15:58:44 -08:00
Steven Allen
8892bbf2c6 fix add-and-cat test: we no longer set a default CIDv0
Instead, we choose it based on whether or not we can actually support CIDv0.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 22:18:16 -08:00
keks
8f24d8e211 cleanup
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
4b9c36b072 sharness: increase timeout waiting for api file
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
012e3381f1 fix content type detection to allow adding via curl
fixed in cmdkit1.0

License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
740cf4a3b4 cmd/ipfs: check whether repo is accessible before attempting to load plugins
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
e8ad094448 add TODO
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
84101c8a2a go test passes, sharness fails
pass API path to cmds, fix options in add.

License: MIT
Signed-off-by: keks <keks@cryptoscope.com>
2018-01-21 11:11:47 -08:00
Iaroslav Gridin
7b34b7f533
Set filename in Content-Disposition if filename=x is passed in URI query
License: MIT
Signed-off-by: Iaroslav Gridin <voker57@gmail.com>
2018-01-19 21:57:26 +02:00
Steven Allen
3e0f7cb600 fix add-and-cat sharness test on osx
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-06 15:52:39 -08:00
Steven Allen
089496b918 test the ipfs cat --length flag
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-05 18:30:10 -08:00
Steven Allen
77e27b2bc3 put ping sharness test cmds on separate lines
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-04 16:28:14 -08:00
Steven Allen
ac551f1dfd ping: add sharness tests
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-04 10:45:46 -08:00
Whyrusleeping
f4fd369d86
Merge pull request #4195 from ipfs/feat/config-patch
config: command to apply profile after init
2018-01-02 14:02:31 -08:00
ForrestWeston
8a8c9b507b Add sharness tests for cat offset command
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-01-02 11:12:15 -08:00
Łukasz Magiera
ac26cf19cd config-patch: Inverse profiles
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-17 15:29:18 +01:00
Łukasz Magiera
0ff9b24a32 config-patch: backup config
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-16 00:58:58 +01:00
Steven Allen
6bd524fa3a correctly test refs local
We expect it to return a command error, not a 404, because `local` will be
interpreted as a path.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-15 11:07:32 -08:00
Steven Allen
cccd03e875 sharness: print gateway command that should be sanitized
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-15 09:59:23 -08:00
Łukasz Magiera
2514c74750 config-patch: apply review suggestions
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Łukasz Magiera
d7376cdab0 config: profile tests, docs
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Steven Allen
cb5dae0e9e version, get, resolve, and dht have been allowed
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 18:48:48 -08:00
Steven Allen
4d7231d655 fix loops in sharness tests to fail the test if the inner command fails
This was hiding errors.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 18:48:48 -08:00
Steven Allen
dfe7ef4fcf gx: update go-multihash
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 13:09:51 -08:00
Steven Allen
af21ae129d politely ask programs to not print ANSI codes by setting TERM to dumb
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 08:41:57 -08:00
Steven Allen
de02525594 strip ANSI sequences from docker build output
sharness was failing because an ANSI reset sequence was getting inserted at the
beginning of the line.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 08:37:27 -08:00
Kevin Atkinson
2aeaf6309d Always set IPFS_PATH in test-lib.sh
Before it was only set when "test_init_ipfs" is called but that is
not always used, for example in t0025-datastores.sh.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-12-08 14:12:26 -05:00
Łukasz Magiera
5d30b4f34a object-patch: test resolving ipld objects
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-07 21:34:01 +01:00
Łukasz Magiera
9aab19ea35 object-patch: Support linking to non-dagpb objects
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-06 20:59:34 +01:00
Whyrusleeping
39f0f5f796
Merge pull request #4443 from ipfs/fix/4408
make repo size test pass deterministically
2017-12-03 18:05:26 +01:00
Steven Allen
ba680b10da make sure the repo size is greater than the size of the symlink
Before, we'd check to make sure the repo, when checked through a symlink, is at
least as large as the repo *before* we checked it through the symlink. However,
this assumes that the repo can't shrink.

Really, this test exists to ensure we measure the repo size itself instead of
the size of the symlink; this commit changes the test to reflect this.

This test fails when 54d7e03303 is reverted.

fixes #4408

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-01 09:56:03 -08:00
Whyrusleeping
66bde41384
Merge pull request #4047 from vyzo/ipns-pubsub
namesys/pubsub: pubsub Publisher and Resolver
2017-11-30 13:41:38 +01:00
Kevin Atkinson
d2696ed498 Increase verboseness of t0088-repo-stat-symlink.sh test.
Top help track down random test failures.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-11-28 13:45:27 -05:00
vyzo
e45df729be namesys/pubsub: publisher and resolver
Commits:
namesys: pubsub Publisher and Resolver
namesys/pubsub: pacify code climate.
namesys/pubsub: timeout for rendezvous
namesys/pubsub: filter self in bootstrap connections
namesys/pubsub: Publish to the correct topic

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: unit  test

Commits:
namesys/pubsub: test
namesys/pubsub_test: pacify code climate
namesys/pubsub: update test to use extant mock routing

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: integrate namesys pubsub

namesys: integrate pubsub resolvers
namesys/pubsub_test: tweak delays
- trying to make travis happy.
namesys/pubsub: fix duplicate bootstraps
- subscription key is topic, not ipnskey.
namesys/pubsub: no warning needed on cancellation
namesys/pubsub: warning for receive errors
- and more informative error messages at that.
namesys/pubsub_test: smaller test
- make it work with seemingly low fdlimits in travis/macosx.
  also, more informative test failures.
namesys/pubsub: add delay to let pubsub perform handshake
namesys/pubsub: update gx imports
namesys/pubsub_test: preconnect publisher, reduce delays
- preconnects the publisher to the receivers in order to avoid bootstrap
  flakiness with connectivity problems in travis.
  reduces sleeps to 1s for flood propagation (3s seems excessive with 5 hosts).
namesys/pubsub: drop named return values in resolveOnce
- per review comment.
namesys/pubsub: check errors
namesys/pubsub: store bytes in resolver datastore
namesys/pubsub: resolver Cancel
- for canceling subscriptions, pre whyrusleeping's request.
namesys/pubsub: fix resolution without /ipns prefix
- also improve the logging a bit.
namesys/pubsub: don't resolve own keys through pubsub
namesys/pubsub: signal ErrResolveFailed on resolution failure
namesys/pubsub: use sync datastore, resolver lock only for subs
namesys/pubsub_test: coverage for Cancel

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: parallelize dht and pubsub publishing

Commits:
namesys/pubsub: code cosmetics
namesys: parallelize publishing with dht and pubsub
namesys/pubsub: periodically reprovide topic rendezvous
namesys/pubsub: cancelation for rendezvous goroutine
namesys/pubsub: log ipns record seqno on publish

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: error checking

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: --enable-namesys-pubsub option and management

Commits:
package.json: update go-libp2p-blankhost
namesys: fix stale package imports
update go-testutil
namesys/pubsub: reduce bootstrap provide period to 8hr
namesys/pubsub: try to extract the key from id first
option to enable ipns pubsub: --enable-namesys-pubsub
ipfs name pubsub management subcommands
corehttp/gateway_test: mockNamesys needs to implement GetResolver
pacify code climate

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: pubsub sharness test

test/sharness: test for ipns pubsub
namesys/pubsub: return boolean indicator on Cancel
package.json: remove duplicate entry for go-testutil
update gx deps, testutil to 1.1.12
fix jenkins failure: use tabs in t0183-namesys-pubsub
t0183: use 4 spaces for tabification

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: update for new command interface

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: fix sharness test for broken MacOS echo

echo -n "" should print -n, but hey it's a mac.

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-11-21 14:55:54 -08:00
Łukasz Magiera
697afddbcc object: --quiet flag to put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-11-21 19:41:00 +01:00
Steven Allen
76e1da02a8 gx: massive update
Note: This commit is technically broken. However, I need to make a bunch of
cmds changes to make this work and I'd rather not bundle both changes into a
single commit.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:27 -08:00
keks
0d9d21875c compatible to js-ipfs-api
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:42 +01:00
Jan Winkelmann
f287524949 cmd: use go-ipfs-cmds
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:41 +01:00
Łukasz Magiera
2ebf8d0482 Update badgerds to 1.1.3
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-11-12 05:34:31 +01:00
Whyrusleeping
5923540d37 Merge pull request #4305 from leerspace/fix/repo-stat-sym-link
handle sym links in when calculating repo size
2017-10-25 19:52:44 +01:00
Unknown
40a9036af8 set exec bit on sharness test
setting the executable bit on sharness test

License: MIT
Signed-off-by: John Reed <john@re2d.xyz>
2017-10-23 07:50:47 -05:00
Unknown
54d7e03303 gofmt fix and sharness test
gofmt fixes to fsrepo.go

The sharness test checks that IPFS_PATHS that are symbolically linked to another directory are returning an appropriate size

License: MIT
Signed-off-by: John Reed <john@re2d.xyz>
2017-10-21 18:22:27 -05:00
Jeromy Johnson
005d243cd3 Merge pull request #4320 from ipfs/fix/gateway-seeker
gateway: fix seeker can't seek on specific files
2017-10-20 13:15:32 +01:00
Jeromy Johnson
e1f158b731 Merge pull request #4026 from ipfs/kevina/files-raw-leaves
Add full support for CidV1 in Files API and Dag Modifier
2017-10-19 23:55:58 +01:00
Kevin Atkinson
3003f93854 Fix "files stat" to work on raw nodes.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 16:08:10 -04:00
Kevin Atkinson
798afedf8d Make --hash and related option local to sub-commands that use them.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
00a3b1df21 Address C.R. in t0250-files-api.sh.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
b5b61f7527 Rename "files update" to "files chcid".
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
47c198ceb8 Enhance sharness tests.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
f2fbfdf291 mfs: inherit CID prefix from from parent directory
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
a3bd2c23b3 Add "--raw-leaves" option to "ipfs files"
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 13:00:24 -04:00
Steven Allen
2f9e9ec571 gx update go-peerstream, go-libp2p-floodsub
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-19 08:20:35 -07:00
Łukasz Magiera
e71dce5dfb gateway: fix seeker can't seek on specific files
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-18 20:10:22 +02:00
Łukasz Magiera
0f935ef136 sharness: make t0180-p2p less racy
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-16 23:19:03 +02:00
Jeromy Johnson
6beab668fd Merge pull request #4288 from ipfs/feat/connmgr
Implement Connection Manager
2017-10-16 18:37:11 +01:00
Steven Allen
603ecf62e3 add sharness test for deprecated supernode option
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-16 09:27:24 -07:00
Jeromy
94ec788555 update deps for new connmgr code
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-14 05:38:52 -07:00
Steven Allen
93f3117d7d remove supernode routing
It was never fully implemented and isn't used.

fixes #3950

(not removing routing/mock because that *is* in use).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-12 19:39:29 -07:00
Steven Allen
613508a0d3 add raw support to the dag put command.
`dag get` still doesn't properly support raw output but that's a bigger issue.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-10 19:58:23 -07:00
Jeromy Johnson
1e73c3fb09 Merge pull request #4212 from ipfs/fix/sharness-indent
Fix indent in sharness tests
2017-10-09 16:56:26 +03:00
vyzo
4f1edf2570 update go-testutil to 1.1.12
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-10-05 17:11:39 +03:00
Łukasz Magiera
7b7513565e sharness: fix OSX build
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-04 13:39:14 +02:00
Łukasz Magiera
6a40c37b94 sharness: 2 space indent
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-04 13:39:14 +02:00
Łukasz Magiera
fdccfea029 sharness: fix indent in few more places
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-04 13:35:07 +02:00
Łukasz Magiera
9d14b47fef sharness: test sharness indent
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-04 13:35:07 +02:00
Łukasz Magiera
83f001bd96 sharness: use tabs for indent
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-04 13:35:07 +02:00
Jeromy Johnson
4c392928b4 Merge pull request #4246 from ipfs/kevina/stat-no-max-storage
"repo stat": Don't crash when Datastore.StorageMax is not defined
2017-10-03 17:42:53 +03:00
Łukasz Magiera
eb7da51203 dag: Support multiple files in put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-09-20 14:30:06 +02:00
Kevin Atkinson
f156f63eed "repo stat": Don't crash when Datastore.StorageMax is not defined
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-18 15:44:07 -04:00
Jeromy Johnson
450dc20868 Merge pull request #4231 from ipfs/feat/update-stream-muxer
[WIP] update go-stream-muxer
2017-09-16 14:31:55 -07:00
Steven Allen
3f6df3a5f4 update yamux
We need to cancel out all readers/writers on stream reset.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-15 18:56:44 -07:00
Steven Allen
8deaaa8d8c gx: update go-stream-muxer
Introduces a new Reset method on streams that kills both sides of the
connection. Close now officially just closes the write side (what it did all
along...)

* Also pull through shiny new go-multiplexer fixes.
* Also pull in go-reuseport update.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-14 12:06:44 -07:00
Lars Gierth
e2a3cd3b66 docker: switch from musl to glibc
The Dockerfile now has two stages: build and assembly.
This allows for a full-fledged debian build container,
while still resulting in a super-thin busybox image.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-09-13 15:49:34 +02:00
Lars Gierth
e089e55f37 sharness: add /ws multinode test
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-09-05 21:03:38 -07:00
Jeromy
0eba4f3138 gx: update go-ws-transport
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-05 16:18:19 -07:00
why
2c300026ae fix t0024 on osx
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-09-03 18:43:18 -07:00
Jeromy
0b0ddefcaf fix EOF quoting
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-09-03 17:29:17 -07:00
Kevin Atkinson
7b5027f084 add basic tests for Spec config change
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-03 14:08:52 -07:00
Kevin Atkinson
2df7727be8 bump repo version, remove support for old config
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-03 14:08:52 -07:00
Steven Allen
70d6629940 gx: update go-cid, go-multibase, base32
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-01 17:46:49 -07:00
Jeromy Johnson
ce1ca6ab87 Merge pull request #4172 from ipfs/fix/test/t0170-query
test: query test might work sometimes, mark it as 'might fail'
2017-08-31 16:29:49 -07:00
Kevin Atkinson
2fbb4515d9 Fix "ipfs ls" to once again work on arbitrary dag objects.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-08-30 00:27:54 -04:00
Jakub Sztandera
bc8d72cfce
test: query test might work sometimes, mark it as 'might fail'
Currently it is 'expect failure' and if it works on occasion it will
fail the CI build

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-08-28 19:03:09 +02:00
Jeromy Johnson
5f26f00465 Merge pull request #4127 from ipfs/feat/dns-bootstrap
bootstrap: add /dnsaddr nodes
2017-08-25 15:23:31 -07:00
Jeromy Johnson
9c0f936210 Merge pull request #4155 from ipfs/fix/reprovider-trigger
reprovide: fix ipfs bitswap reprovide when interval set to 0
2017-08-25 11:32:39 -07:00
Łukasz Magiera
e34a5e9c0d gx: update go-reuseport
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-23 16:32:32 +02:00
Łukasz Magiera
ffc9abb8b8 reprovide: fix ipfs bitswap reprovide when interval set to 0
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-20 18:23:09 +02:00
Lars Gierth
568910408b bootstrap: add /dnsaddr nodes, remove half of /ip4,/ip6 nodes
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-08-17 16:22:38 +02:00
Steven Allen
19c3bd82a3 extract update go-testutil
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-08-16 17:23:01 -07:00
Jeromy Johnson
94b832df86 Merge pull request #4133 from ipfs/feat/improve-dag-api
Improve dag API
2017-08-16 15:22:23 -07:00
vyzo
6f54181f66 ipfs swarm addrs listen command, fix t0060-daemon
Necessary for meaningful semantics in the presence of address filtering.

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
98da0853f4 test/sharness: extended circuit relay test
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
vyzo
1f40c5210d test/sharness: circuit relay test
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
Jeromy Johnson
dea24aedc3 Merge pull request #4113 from ipfs/feat/reprovider-starts
Reprovider strategies
2017-08-15 17:13:23 -07:00
Jeromy Johnson
9ea02e9fdd Merge pull request #4123 from sherodtaylor/feature/tour/remove-tour
remove tour command from ipfs
2017-08-15 17:06:36 -07:00
Łukasz Magiera
5da8368a42 dag: dag resolve subcommand
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-13 20:58:29 +02:00
Łukasz Magiera
7e5e0cba03 reprovider: Fix sharness tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-13 00:02:23 +02:00
Łukasz Magiera
279a560660 reprovider: strategy tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-13 00:02:23 +02:00
Jeromy Johnson
50bb128bce Merge pull request #4095 from ipfs/feat/object-pin
object put --pin option
2017-08-12 14:32:18 -07:00
Łukasz Magiera
f8b17c68d9 dag: sharness tests for dag-pb put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
6bf019aeed dag: cbor input-enc
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
1fa6113028 dag: test --hash option
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Sherod Taylor
bc75d3b88a Removed tour command and fix test
License: MIT
Signed-off-by: Sherod Taylor <sherodtaylor@gmail.com>
2017-08-09 10:14:57 -04:00
Jeromy Johnson
fbdb896105 Merge pull request #4114 from ipfs/fix/add-pipe-error-test
sharness: fix the 'useful error message when adding a named pipe' test
2017-08-01 00:05:13 -07:00
Steven Allen
39197ff8d3 sharness: fix the 'useful error message when adding a named pipe' test
We were removing the file before testing, ignoring the error from stat, and then
grepping for `Error: Unrecognized file type for named-pipe: ` (because nothing
was sent to stdout).

This fix:

1. Changes our stat command to output failed to stdout on failure to ensure that
bugs like this *can't* happen.
2. Checks to make sure stat actually succeeds.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-31 18:31:40 -07:00
Steven Allen
38a9be5a0a gx: update go-libp2p-swarm
fixes #4102 (fixed in go-libp2p-swarm)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-31 14:04:40 -07:00
Łukasz Magiera
e1bc025e38 object put --pin option
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-31 19:38:05 +02:00
Lars Gierth
952f658ada
core: make announced swarm addresses configurable
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-07-31 13:03:09 +02:00
Steven Allen
0ada88637b sharness: use test profile
This:

* Disables mdns and fixes #4098 (iptb nodes already have mdns disabled by
  default).
* Only listens on localhost (although iptb nodes still listen on all).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-30 20:22:41 -07:00
Jeromy Johnson
02dc2604b3 Merge pull request #4082 from te0d/feat/commands/add-size
ipfs add: added size to response of `ipfs add` command
2017-07-29 14:49:20 -07:00
Steven Allen
0aca2a37e6 sharness: fix #4003 test case
1. Use printf to reliably expand escape sequences by default.
2. grep needs to exit after the first match as we're using HTTP/1.1 (the remote
side will not close the connection after sending the response).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-28 17:21:04 -07:00
Steven Allen
28be1d4c58 gx: update deps
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-27 18:48:16 -07:00
Tom O'Donnell (te0d)
f96f6af98f ipfs add: added test case to verify presence of size
Added test case which greps the `ipfs add` api call,
checking that it outputs the added item's size.

License: MIT
Signed-off-by: Tom O'Donnell <todonnell91@gmail.com>
2017-07-27 08:58:41 -04:00
Jeromy Johnson
181dd0061c Merge pull request #4053 from Quantomicus/bugfix
Fixes #4003
2017-07-23 12:22:58 -07:00
Steven Allen
87f02e53a7 remove -f flags from calls to init
It doesn't mean anything anymore.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-19 11:46:55 -07:00
Quantomic
48dcd67dfe Add sharness test
License: MIT
Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
2017-07-17 20:48:16 +02:00
Jakub Sztandera
c0ee7d68fd
misc: small code style edit
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 10:26:34 +02:00
Jakub Sztandera
b5ea00e6b4
sharness: add debug output for TEST_NO_PLUGIN
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-14 13:23:14 +02:00
Łukasz Magiera
f947931af9 git: add git plugin tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-12 23:38:32 +02:00
Jakub Sztandera
2c71cf0fd7
test: add git plugin test stub
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 21:53:59 +02:00
Jakub Sztandera
d2cc708650
make(sharness): add plugins as part of sharness build
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 21:53:59 +02:00
Jakub Sztandera
285a4d8e10
test: add TEST_NO_PLUGIN and PLUGIN prereq
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 21:53:59 +02:00
Jeromy
cccc6a94a3 update go-multihash and bubble up changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-11 19:27:43 -07:00
Łukasz Magiera
962e1bbc45 Add test init profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-06 22:41:47 +02:00
Steven Allen
cc844ba3db sharness: fix the error message in the mount-publish test case
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-04 16:54:12 -07:00
Jeromy Johnson
ba9435d850 Merge pull request #4001 from ipfs/feat/profile
Implement --profile option in ipfs init
2017-07-04 15:16:22 -07:00
Łukasz Magiera
1b67e3aeb6 Add invalid profile test to init --profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-04 22:36:02 +02:00
Łukasz Magiera
184c7a0126 Add sharness test for init --profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-04 22:36:02 +02:00
Łukasz Magiera
8ab93aaeb2 Update go-datastore to 1.2.2, go-cid to 0.7.16
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-04 20:18:57 +02:00
Łukasz Magiera
4b8a9a3f9f Update go-datastore to 1.2.1
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-03 20:17:03 +02:00
Jeromy Johnson
7ad494887c Merge pull request #4004 from ipfs/feat/dagpin
Add pin option for ipfs dag put
2017-07-03 10:54:39 -07:00
Steven Allen
13636bef50 blocks: gx import go-block-format
And updated related dependencies.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
Steven Allen
bccd4d4e8f blocks: move block format to it's own repo
We need to reference it from outside of this repo.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
Łukasz Magiera
79e21bd96b Add pin option for ipfs dag put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-28 12:05:23 +02:00
Jeromy
b3828f4d48 fix small typo
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-06-27 19:20:41 -07:00
Kevin Atkinson
33f699f8de files api: redo tests
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-06-26 19:12:23 -04:00
Kevin Atkinson
47001548e1 Finish basic support for raw nodes in dag modifier.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-06-26 19:12:07 -04:00
Łukasz Magiera
ef43fb8c8b Don't use wait in p2p sharness test
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-21 18:35:17 +02:00
Jeromy
732e792fc6 rename and fix sharness issue in ptp test
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-06-21 18:30:36 +02:00
Łukasz Magiera
bec54c2540 Rename PTP to P2P
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-19 21:30:58 +02:00
Steven Allen
8c78d4072d pinning: test pinning/unpinning files in sharded directories
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-12 19:03:24 -07:00
Jeromy
c4f36071da fix shutdown check in t0023
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-06-10 11:32:46 -07:00
Jeromy Johnson
10f9e771f7 Merge pull request #3951 from ipfs/kevina/repub
Make sure non-self keys also get republished
2017-06-10 10:17:10 -07:00
Jeromy Johnson
18d2a2d8f4 Merge pull request #3943 from magik6k/feat/corenet2
Implemented experimental ptp(corenet) interface
2017-06-09 19:56:02 -07:00
Kevin Atkinson
d674dd7e1f repub: iterate through all keys in keystore
Iterate through all keys in the keystore so keys added with
"ipfs key gen" behave the same as the <self> key.  Don't maintain a
separate repub list as it does not really serve a purpose at this
point in time.  See #3808.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-06-07 14:35:44 -04:00
Łukasz Magiera
043aa5f308 PTP API: Address review comments
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-07 19:51:44 +02:00
Łukasz Magiera
104268f1b6 PTP API: Make code more object oriented, use less node
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-04 03:08:39 +02:00
Łukasz Magiera
ad9ae350bf PTP API: Rename Corenet to PTP
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-03 21:46:16 +02:00
zramsay
096b3232d5 address PR comments; remove commented/dead code
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-06-01 12:13:04 -04:00
zramsay
c5df8f0796 apply the megacheck tool to improve code quality
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-05-31 16:56:11 -04:00
Łukasz Magiera
a3889a7164 Corenet API: Update deps
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 12:35:31 +02:00
Łukasz Magiera
71bda3d988 Corenet API: Drop 'exp' namespace
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
fc08d5331b Corenet API: Apply suggestions, cleanups
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
69d3e08776 Corenet API: Some more tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
9414e73c34 Corenet API: Split list subcmd into ls/streams
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
ad1dc5f405 Corenet API: Use simple util instead of socat for tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
a55255fbca Corenet API: Fixed tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Tom Swindell
2f17a67c5a Experimental corenet application support.
License: MIT
Signed-off-by: Tom Swindell <t.swindell@rubyx.co.uk>
2017-05-31 11:33:17 +02:00
Lars Gierth
64ced367ac gx: update go-libp2p-peerstore, go-libp2p, go-libp2p-kbucket
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-05-30 02:26:05 +02:00
Jeromy Johnson
1c9a419e22 Merge pull request #3882 from keremgocen/fix-cmd-key-peerid
WIP: add PeerID lookup
2017-05-25 10:10:47 -07:00
Kevin Atkinson
332a7967f9 filestore: add "--file-order" option to "filestore ls" and "verify"
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-23 17:40:20 -04:00
Jeromy Johnson
630f9ae29e Merge pull request #3884 from ipfs/feat/shutdown-cmd
Implement ipfs shutdown command
2017-05-17 22:44:06 -07:00
Jeromy Johnson
0780a4fdb4 Merge pull request #3892 from MichaelMure/keystore_key_rm
Implement ipfs key {rm, rename}
2017-05-17 21:28:36 -07:00
Jeromy
adb555c3eb Implement ipfs shutdown command
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-17 21:27:47 -07:00
Jeromy Johnson
219b41bff8 Merge pull request #3915 from ipfs/kevina/repo-stat-storagemax
Add MaxStorage field to output of "repo stat".
2017-05-15 12:27:42 -07:00
Kevin Atkinson
4bbd00185c adder: add support for specifying the hash function
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-14 17:38:32 -04:00
Michael Muré
cb8d5eb245 Add a test for failure of 'ipfs key rm self'
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-14 21:01:18 +09:00
Kevin Atkinson
0f46a34f59 Add MaxStorage field to output of "repo stat".
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-10 23:41:35 -04:00
Michael Muré
c0a04a06c3 add sharness test for ipfs key rename
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-04 21:56:58 +09:00
Kerem
fca98aea9d add sharness tests
test for `ipfs name publish` using PeerID as key name

License: MIT
Signed-off-by: Kerem Gocen <keremgocen@gmail.com>
2017-05-03 06:19:30 +03:00
Michael Muré
4d4d7b8e08 Implement ipfs key rm
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-01 15:23:17 +09:00
Jeromy
0597a04924 Fix sharding memory growth, and fix resolver for unixfs paths
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-30 13:48:28 -07:00
Jeromy
b71ef8354e Fix gateway handling of sharded directories
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-29 13:01:22 -07:00
Kevin Atkinson
8a47786c67 hamt: support using CIDv1 by allowing the prefix to be set
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:41:25 -04:00
Kevin Atkinson
518adec022 adder: add support for using CidV1
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
Jeromy
b15470d548
bubble up updates from go-multihash changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-20 20:28:04 +02:00
Jakub Sztandera
dab716ba02
test: fix ulimit tests for 2048 fds
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-24 20:56:09 +01:00
Jeromy Johnson
ac69697bd9 Merge pull request #3042 from ipfs/feat/hamt-sharding
Implement unixfs sharding
2017-03-23 20:51:52 -07:00
Jeromy
c4c665395a add global config switch for sharding
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-23 16:42:31 -07:00
Jeromy Johnson
2de21bc018 Merge pull request #3653 from ipfs/kevina/filestore-util
Basic Filestore Utilties
2017-03-22 21:41:48 -07:00
Jeromy Johnson
a3fc6f18b6 Merge pull request #3805 from ipfs/kevina/repo-init
daemon: use fsrepo.IsInitialized to test for initialization
2017-03-22 20:55:42 -07:00
Kevin Atkinson
620b52b2aa filestore util: refactor and clean up tests
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 20:50:22 -04:00
Kevin Atkinson
f7efb34e68 filestore util: Add 'filestore dups' command. Enhance tests.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
033c442d32 filestore util: add tests for verifying and listing filestore blocks.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
28921471db daemon: use fsrepo.IsInitialized to test for initialization
Use fsrepo.IsInitialized to test for initialization instead of just
testing if the directory exists.

Also add test cases for '--init' option, including one the creates an
empty directory.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 04:25:57 -04:00
Jeromy
e8764345d6 fix handling of filestore nodes in mfs during add
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-21 20:19:22 -07:00
Jeromy
06fb495df1 fix mfs hamt integration
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-21 20:19:22 -07:00
Jeromy
bb09ffd756 implement an HAMT for unixfs directory sharding
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-21 20:19:22 -07:00
Jeromy Johnson
21072a5f81 Merge pull request #3712 from ipfs/kevina/more-robust-gc
More Robust GC
2017-03-21 17:16:37 -07:00
Jeromy Johnson
56bbcc9f16 Merge pull request #3774 from ipfs/feat/docs/80-chars
Add 80 columns mans tests
2017-03-10 14:42:38 -08:00
Jakub Sztandera
5489025210
test: add test for checking if commands mans lengths are shorter than 80
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-10 19:05:34 +01:00
Jakub Sztandera
2317ced4aa
test: fix commands tests
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-10 19:05:34 +01:00
Jakub Sztandera
40cc4dc024
test: add test for ipfs add --quieter
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-10 14:21:54 +01:00
Jakub Sztandera
66cc2f2e88
fix: ipfs get panic with empty API call
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-09 15:42:15 +01:00
Jeromy Johnson
0d6640434b Merge pull request #3765 from ipfs/test/filestore/more-decriptive
test: fix 'disk_usage' returning number smaller by factor of 512 on BSD and Darvin
2017-03-08 20:16:07 -08:00
Jeromy Johnson
74afd87986 Merge pull request #3760 from ipfs/fix/pin-add-api
fix pin add api break
2017-03-07 16:27:23 -08:00
Jeromy Johnson
eca0d1c734 Merge pull request #3757 from ipfs/fix/get-raw-leaves
make raw leaves work with 'ipfs get'
2017-03-07 15:40:18 -08:00
Jakub Sztandera
bd5b48d0ea
test: added issue number to regression test
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-08 00:12:52 +01:00
Jakub Sztandera
e2ececa4fa
test: fix sharness disk_usage util
on bsd based systems du returns block count not bytes

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-08 00:07:18 +01:00
Jakub Sztandera
afc0e77320
test: skip not necessary var assigment
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-08 00:07:18 +01:00
Jakub Sztandera
0ccb4e82f8
test: make the repo size check error message better
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-08 00:07:18 +01:00
Jeromy
6a7750d5c2 fix pin add api break
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-07 01:10:46 -08:00
Jeromy
b1588c7162 make raw leaves work with 'ipfs get'
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-06 20:12:05 -08:00
Jeromy Johnson
e3d483fc7c Merge pull request #3751 from ipfs/feat/sharness/small-clean-p1
test: small cleanup of t0010
2017-03-06 16:43:06 -08:00
Jeromy Johnson
60b94a2c4f Merge pull request #3750 from ipfs/fix/sharness/filestore/format
test: small cleanup to the filestore sharness test
2017-03-06 12:37:28 -08:00
Kevin Atkinson
f338520aa8 gc: add option to stream errors
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:14 -05:00
Kevin Atkinson
c709113257 gc: add sharness test script
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:09 -05:00
Jakub Sztandera
454085c810
test: small cleanup of t0010
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-06 20:24:43 +01:00
Jeromy Johnson
cbf8a0cdb4 Merge pull request #3748 from ipfs/deps/update-dht
update go-libp2p-kad-dht with getclosestpeers fix
2017-03-06 11:21:38 -08:00
Jakub Sztandera
5a5a65381f
test: small cleanup to the filestore sharness test
you can use the test_debug by calling tests with
`debug=t verbose=t make test/sharness/t0000-xxx.sh

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-06 20:03:36 +01:00
Jakub Sztandera
ffeef8c9cb
fix: filestore silently being skipped on add if it wasn't enabled
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-06 19:16:01 +01:00
Jeromy Johnson
7c707b062a Merge pull request #3635 from ipfs/feat/bitswap-tx-stats
Add more info to bitswap stat
2017-03-06 00:54:03 -08:00
Jeromy
332d760f12
Add more info to bitswap stat
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-06 09:47:53 +01:00
Jeromy
2884c84343 Implement basic filestore 'no-copy' functionality
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-06 00:37:24 -08:00
Jeromy
4e168dc323 update go-libp2p-kad-dht with getclosestpeers fix
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-05 23:06:04 -08:00
Jeromy Johnson
d2f41e22fe Merge pull request #3725 from ipfs/feat/better-muxer
feat: remove broken spdy multiplexer and enable multiplex by default as second option
2017-03-02 09:15:16 -08:00
Friedel Ziegelmayer
8b2aa5617d feat: remove broken spdy multiplexer and enable mplex by default
License: MIT
Signed-off-by: Friedel <dignifiedquire@gmail.com>
2017-03-01 23:28:05 -08:00
Jeromy Johnson
57e4e2103e Merge pull request #3734 from ipfs/feat/keystore/list-self
keystore: add self key to the listing
2017-03-01 23:26:09 -08:00
Jeromy Johnson
dd9584ba28 Merge pull request #3697 from ipfs/feat/pnet2
PNet take 2
2017-03-01 16:43:48 -08:00
Jeromy Johnson
34a94c2812 Merge pull request #3671 from ipfs/kevina/pin-add-progress
Report progress during `pin add`
2017-03-01 16:39:10 -08:00
Jakub Sztandera
fe0cc96b24
fix: race of conditions in keystore test
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-28 18:19:42 +01:00
Jakub Sztandera
25c3e126b8
keystore: add self key to the listing
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-28 16:16:16 +01:00
Jakub Sztandera
4eed546e06
deps: update dependencies for PNet
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-22 20:04:43 +01:00
Jeromy Johnson
29c80d76b4 Merge pull request #3698 from ipfs/fix/repo-migration-musl
WIP: fsrepo: fix musl detection for migrations
2017-02-20 20:40:45 -08:00
Jeromy
14daf0a459 print out all daemon stderr files when iptb stop fails
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-19 16:25:28 -08:00
Kevin Atkinson
cdd29c24a2 Report progress during 'pin add'.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-02-17 16:19:42 -05:00
Jeromy
c817f09b8a
add tests to make sure docker requests correct migrations version
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-17 08:37:27 +01:00
Lars Gierth
26770b7ebb
fsrepo: fix musl detection for migrations
The ldd command used for detection doesn't seem to have a
--version flag on Alpine Linux. It would print the expected
output, but instead of stdout, it would print it on stderr.

The musl detection code would only scan stdout for mentions
of "musl", and would thus *not* download the musl version
of the fs-repo-migrations executable.

This manifested in the well-known "fs-repo-migrations: not found"
error, which you get when executing something that was linked
against a different libc than the one present on the system.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-02-17 08:37:26 +01:00
Jeromy Johnson
765fb0f612 Merge pull request #3523 from ipfs/feat/ipv6-bootstrap
bootstrap: add a few /ip6 nodes
2017-02-16 17:00:37 -08:00
Jeromy Johnson
e5def26b92 Merge pull request #3687 from ipfs/feat/sub-obj-dag-get
Feat/sub obj dag get
2017-02-16 15:51:34 -08:00
Kevin Atkinson
6867c87bcf Add back removed test.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-02-15 17:35:29 -05:00
Kevin Atkinson
4b566ede96 Add tests for recursively pinning a dag (i.e. large file).
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-02-15 16:51:40 -05:00
Jeromy
cb611c8873 allow for sub-object resolution in dag get
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-13 19:15:17 -08:00
Jeromy
b4eeff2d84 update go-multihash and bubble up deps
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-12 12:25:41 -08:00
Jakub Sztandera
dd63187826
make: make default rule 'aggregate' in sharness
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
Jakub Sztandera
a2e3aa5d78
make: fix standalone sharness run
The comparison was wrong

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
Jakub Sztandera
f77d01a965
make: add dummy makefile in sharness directory
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
Jakub Sztandera
f630222580
make: rework makefiles for non-recursive make and add sharness coverage
This commit introduces non-recursive Makefile infrastructure that replaces current Makefile infrastructure.
It also generally cleanups the Makefiles, separates them into nicer sub-modules and centralizes common operations into single definitions.

It allows to depend on any target that is defined in the makefile, this means that for example `gx install` is called once when `make build test_expensive_sharness` is called instead of 4 or 5 times.

It also makes the dependencies much cleaner and allows for reuse of modules. For example sharness coverage collection (WIP) uses sharness target with amended PATH, previously it might have been possible but not without wiring in the coverage collection into sharness make runner code.

Yes, it is more complex but not much more. There are few rules that have to be followed and few complexities added but IMHO it is worth it.

How to NR-make:
1. If make is to generate some file via a target, it MUST be defined in Rules.mk file in the directory of the target.
2. `Rules.mk` file MUST have `include mk/header.mk` statement as the first line and `include mk/footer.mk` statement as the last line (apart from project root `Rules.mk`).
3. It then MUST be included by the closest `Rules.mk` file up the directory tree.
4. Inside a `Rules.mk` special variable accessed as `$(d)` is defined. Its value is current directory, use it so if the `Rules.mk` file is moved in the tree it still works without a problem. Caution: this variable is not available in the recipe part and MUST NOT be used. Use name of the target or prerequisite to extract it if you need it.
5. Make has only one global scope, this means that name conflicts are a thing. Names SHOULD  follow `VAR_NAME_$(d)` convention. There are exceptions from this rule in form of well defined global variables. Examples: General lists `TGT_BIN`, `CLEAN`; General targets: `TEST`, `COVERAGE`; General variables: `GOFLAGS`, `DEPS_GO`.
3. Any rules, definitions or variables that fit some family SHOULD be defined in `mk/$family.mk` file and included from project root `Rules.mk`

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
Jeromy
c5f0f7f77c fix printing out of binary escaped data for test
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-09 10:31:18 -08:00
Jeromy
85a06abacc Fix marshaling of null cbor arrays
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

Fix non-canonical imports via dag put

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-08 16:24:31 -08:00
Jeromy
c00c142bf9 dag/get: fix link formatting in json output
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-06 10:36:57 -08:00
Jeromy Johnson
4add5b8a9a Merge pull request #3631 from ipfs/lgierth-patch-1
migrations: update dist.ipfs.io path
2017-01-27 14:59:13 -08:00
Jeromy
7fc9c30168 close file before removing it in check writeable
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-01-26 22:43:54 -08:00
Jeromy
f28ba8559b remove error for not having an upgrade
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-01-26 09:12:34 -08:00
Jeromy
8c3f78055e add test check for pinning cbor objects
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-21 10:47:19 -08:00
Jeromy
29c530ac0e update to the correct ipld cbor code
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-21 10:47:19 -08:00
Jeromy
e5bc81ad94 don't select README or SHARDING file for random corruption in t0086
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-01-21 10:19:50 -08:00
Jeromy
1366795f31 Change repo version to 5, use new flatfs sharding
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-19 14:59:12 -08:00
Jeromy Johnson
75cce80b5c Merge pull request #3571 from ipfs/feat/better-enum-async
rewrite enumerate children async to be less fragile
2017-01-17 10:14:49 -08:00
Jeromy
397a35a33a update test to print error from EnumerateChildren
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-12 13:51:53 -08:00
Jeromy Johnson
3faf8974ec Merge pull request #3581 from ipfs/kevina/keystore
"ipfs key list": include the hash of the key id in addition to the name
2017-01-11 08:44:53 -08:00
Jeromy
a3b38e8be8 Add a test for the keystore
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-11 04:23:58 -08:00
Jeromy Johnson
8f165f305d Merge pull request #3582 from ipfs/deps/negotiate-lazy-fix
update go-libp2p with negotiate lazy fixes
2017-01-11 03:32:20 -08:00
Jakub Sztandera
e8be741c7f test: add simple multinode test for multiplex feature
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-01-10 14:52:04 -08:00
Jeromy
30aacd1b0a update go-libp2p with negotiate lazy fixes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-10 14:52:00 -08:00
Jakub Sztandera
df67f3d1bd
test: add test for invalid routing option
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-01-10 19:07:58 +01:00
Jeromy
7c0149d048 set the agent version based on version string
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-06 06:37:47 -08:00
Jeromy Johnson
87f8bfd31b Merge pull request #3539 from ipfs/feat/update-identify
update libp2p for identify configuration updates
2017-01-05 08:19:59 -08:00
Jeromy Johnson
d83a911254 Merge pull request #3562 from ipfs/kevina/minor-cr-0.4.5
Clean up minor issues in 0.4.5 cr.
2017-01-05 07:18:12 -08:00
Kevin Atkinson
78ff01757f Fix typo and formatting issues.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-04 17:26:08 -05:00
Kevin Atkinson
980e341489 Add tests for "ls --resolve-type=false".
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-04 15:08:01 -05:00
Kevin Atkinson
6cc0903d25 Fix "ipfs ls" so it works correctly with raw leaves.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-03 21:20:04 -05:00
Kevin Atkinson
3526c26f31 Add test for adding directory with --raw-leaves option.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-02 21:19:03 -05:00
Jeromy
d8f257c264 update libp2p for identify configuration updates
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-27 02:13:59 -08:00
Jeromy Johnson
99d72c2781 Merge pull request #3515 from ipfs/fix/sharness/osx
Fixes nc on macOS not closing socket when the stdin sends EOF
2016-12-21 11:21:08 -08:00
Jakub Sztandera
abb4d1760b
sharness: don't run go-ipfs instance with default config
It conflicts with already running instance on the Dev's machine so
running this test requires disabling the normal ipfs.

The launch of ipfs here doesn't test much as we compare the config,
after initing from it and we also launch from default config in many
other cases (with few variables changed to not conflict with already
running standalone ipfs instance).

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-21 10:29:38 +01:00
Lars Gierth
9f71de8fcc bootstrap: add a few /ip6 nodes
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-18 05:52:56 +01:00
Jeromy
8e23482c7e Add a test for dag get with a path
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-17 13:36:56 -08:00
Jakub Sztandera
20665fc5e3
Fixes nc on macOS not closing socket when the stdin sends EOF
Uses `-d` option that is supported both by BSD and GNU nc.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-16 21:10:53 +01:00
Jeromy
4373bf9d75 merkledag: fix json marshalling of pbnode
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-14 13:11:49 -08:00
Jeromy Johnson
e893fb90b7 Merge pull request #3484 from ipfs/fix/pubsub-peers-cmd
cmd/pubsub: fix peers command topic filtering
2016-12-09 12:08:45 -08:00
Jeromy
f104b8ae57 cmd/pubsub: fix peers command topic filtering
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-08 21:26:09 -08:00
Jeromy
cf6e3219b6 cmd/block: add selection of multihash parameters to block put command
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-07 16:36:00 -08:00
Jeromy Johnson
0c413de87f Merge pull request #3432 from keks/feat/pubsub-sharness
add sharness test for pubsub
2016-12-04 21:29:45 -08:00
Jan Winkelmann
993e7816f8 pubsub sharness tests after chriscool feedback
License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-12-04 03:22:51 +01:00
Jan Winkelmann
1b3158f860 add sharness test for pubsub
License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-12-04 03:22:49 +01:00
Jeromy
53d47669da bubble up go-datastore deps
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-28 22:29:38 -08:00
Jeromy Johnson
0fcb92f3a1 Merge pull request #3403 from ipfs/feat/dg-reader-cleanup
Fix panic in dagreader with raw nodes
2016-11-22 11:30:08 -08:00
Jakub Sztandera
1e170e8d6d
Update go-libp2p across codebase
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-22 01:22:50 +01:00
Jakub Sztandera
8c260f5193
Add sharness test for raw node fetch
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-21 18:15:40 +01:00
Jeromy
396c629301 update to newer ipld node interface with Copy and better Tree
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-15 18:00:49 -08:00
Jeromy
7fbaae49be update to go-libp2p 4.1.0
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-10 17:38:10 -08:00
Jeromy
25d9f8afd1 update to libp2p 4.0.4
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-05 21:44:36 -07:00
Jeromy
ec21220907 update go-libp2p
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-03 20:06:32 -07:00
Lars Gierth
dae854eaf3 assets: rebuild them
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-03 00:38:32 +01:00
Jeromy Johnson
437cc7fa78 Merge pull request #2911 from ipfs/feature/ifps-capitalize
docs: decapitalize IPFS where possible
2016-11-02 13:20:51 -07:00
Jeromy
afce683eae update go-libp2p-swarm with deadlock fixes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-30 19:16:28 -07:00
Jeromy Johnson
634005a1ab Merge pull request #3324 from ipfs/feat/block-cid-codec
allow cid format selection in block put command
2016-10-29 21:59:19 -07:00
Jeromy
f68e1843f4 allow cid format selection in block put command
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-28 19:03:14 -07:00
Richard Littauer
9843e86258 Changed so only explicit ipfs cli commands are lowercased
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-10-27 22:55:13 -07:00
Richard Littauer
9aaa743a51 docs: decapitalize IPFS where possible
Tried to check all instances of IPFS and make sure they werent referring to the CLI tool. See #2910.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-10-27 22:54:36 -07:00
Jeromy
f7d3f61673 clean up some code, update cbor package, and add tests
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-27 15:49:41 -07:00
Jeromy
eac13abaec update to new cid and ipld node packages
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 09:54:04 -07:00
Jeromy Johnson
6f3ae5da29 Merge pull request #3307 from ipfs/feat/raw-nodes
Implement 'Raw Node' node type
2016-10-24 11:59:27 -07:00
Jeromy
9796a03624 update HashOnRead validation to properly support cids
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-18 16:03:26 -07:00
Jeromy
8ce9963289 fix add/cat of small files
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-18 15:26:44 -07:00
Jeromy
3796e7020e raw dag: make raw nodes work in cat and get, add tests
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-18 11:07:32 -07:00
Jakub Sztandera
e254f0d8b5
test: check if metrics work in sharness
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-10-18 12:28:50 +02:00
Jeromy
8a33801607 add test to be run to detect future regressions in pinsets
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 09:29:09 -07:00
Jeromy
f4d7369c4a bitswap: protocol extension to handle cids
This change adds the /ipfs/bitswap/1.1.0 protocol. The new protocol
adds a 'payload' field to the protobuf message and deprecates the
existing 'blocks' field. The 'payload' field is an array of pairs of cid
prefixes and block data. The cid prefixes are used to ensure the correct
codecs and hash functions are used to handle the block on the receiving
end.

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-10 08:19:31 -07:00
Jeromy
282bdc4816 cid: integrate cid into bitswap and blockstores
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-08 12:14:58 -07:00
Jeromy
1f9ec4e3ed update to libp2p 4.0.1 and propogate other changes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 22:12:43 -07:00
Jeromy Johnson
5c212d39a2 Merge pull request #3073 from ipfs/feat/test-config-replace
Add test for 'ipfs config replace'
2016-10-03 17:29:52 -07:00
Jeromy
2871decd48 clean up test, run checks on all nodes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:10:20 -07:00
Jeromy
56a8c43aaf add experimental dht client mode flag
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:10:20 -07:00
Jakub Sztandera
80a776286c
more fixes for standard sed
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-28 16:22:32 +02:00
Jakub Sztandera
5b4a6eac10
more bsd sed fixes
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-28 14:55:09 +02:00
Jakub Sztandera
daf212a65e
try to fix travis on BSDs again
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-28 13:57:25 +02:00
Jeromy
0832a640fa remove utp tests for now
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-26 00:52:19 -07:00
Jeromy
e43c770530 update libp2p and dht packages
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-25 23:42:14 -07:00
Jeromy Johnson
300187ac52 Merge pull request #3242 from ipfs/test/repro-random-fail
trying to debug random test failures
2016-09-20 23:48:55 -07:00
Jeromy
5457a85cef
Merge branch 'version/0.4.3-rc4'
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-20 19:10:10 -07:00
Jeromy
fb05a5fbb8 trying to debug random test failures
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-19 19:37:03 -07:00
Jeromy Johnson
0aa136a98e Merge pull request #3206 from ipfs/feat/writable-flag
gateway: fix --writable flag :|
2016-09-14 13:50:32 -04:00
Jeromy
1de17e2233 Update libp2p to 3.5.2
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-12 14:26:55 -07:00
Jeromy
1bb6a842c5 Update libp2p to have fixed spdystream dep
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-12 07:47:04 -07:00
Jakub Sztandera
92d1d65fc2
test: fix sed usage on OSX
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-12 13:30:32 +02:00
Lars Gierth
fc8e6de6a9 gateway: fix --writable flag :|
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-09-11 21:09:09 +02:00
George Antoniadis
89d8ca5798 Extract peerset, update peer, peerset, secio, libp2p
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-10 23:22:17 +01:00
George Antoniadis
6859b8ccd8 Extract key and datastore
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-09 15:52:25 +01:00
Jakub Sztandera
25a035f92c
test: attempt to fix sed on travis
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-08 13:18:29 +02:00
Jakub Sztandera
a680b1bd7b
test: split 'ipfs config replace' test into parts
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-08 11:13:28 +02:00
Jakub Sztandera
2a2e3eb185
sharness: remove mixed indentation
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-08 11:07:54 +02:00
Jakub Sztandera
077948ab38
sharness: add test for 'ipfs config replace'
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-08 11:07:54 +02:00
Jeromy
c8fe495934 integrate CIDv0
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-07 13:32:32 -07:00
Jeromy Johnson
8803a7628f Merge pull request #3141 from ipfs/feat/cmd/config-priv
cmd: harden the security of privkey field in config show
2016-09-04 08:27:01 -07:00
Jeromy Johnson
d6092eb536 Merge pull request #3182 from ipfs/fix/bitswap/want-cancel
Remove entries from wantlists when their related requests are cancelled
2016-09-04 07:05:28 -07:00
Jakub Sztandera
671425ea33 cmd: harden config show with key
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-04 06:50:10 -07:00
Jeromy
1548c8aabb bitswap: clear wantlists when GetBlocks calls are cancelled
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-04 06:44:21 -07:00
Jeromy Johnson
1f387af2b0 Merge pull request #3149 from ipfs/test/fdlimit-raising
fdlimit: improve fdlimit autoraising tests
2016-09-03 09:27:52 -07:00
Jeromy Johnson
309535c057 Merge pull request #3151 from ipfs/kevina/more3138tests
Enhance tests for files API root best-effort pin.
2016-09-03 09:27:34 -07:00
Jeromy
af914c5193 add better test to be more sure that file descriptor limits were actually raised
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-02 07:15:08 -07:00
Jeromy
6c340563d4 fdlimit: improve fdlimit autoraising tests
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-02 07:14:48 -07:00
Jeromy
aafe084b92 sharness: fix typo in hash in t0050
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-01 15:42:05 -07:00
Jakub Sztandera
f59751d1a2
test: remove time-out script, use go-timeout instead
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-01 15:59:12 +02:00
Jakub Sztandera
f012b5aed5
test: add go-timeotu to test build system
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-01 15:59:11 +02:00
Jakub Sztandera
7639a2f0a7
test: introduce go-timeout
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-01 15:59:11 +02:00
Jeromy Johnson
ade598eead Merge pull request #3135 from ipfs/kevina/2839directfix
Directly Fix #2839
2016-08-31 19:34:21 -07:00
Kevin Atkinson
6e4f3acb4a Enhance tests for files API root best-effort pin.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-31 18:16:36 -04:00
Jeromy Johnson
40159e50a0 Merge pull request #3158 from ipfs/feat/migrations-help
fsrepo: improve migrations copy
2016-08-30 22:34:33 -07:00
Jeromy Johnson
4286cd3695 Merge pull request #3144 from ipfs/test/add/revert
test: revert few stdin tests that were removed
2016-08-30 22:03:54 -07:00
Jeromy Johnson
ea343fbfa1 Merge pull request #3142 from ipfs/test/CORS/defaults
test: do explicit check of CORS headers
2016-08-30 21:46:59 -07:00
Jeromy
b4718a246c fix tests for changed migrations text
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-30 21:37:45 -07:00
Jeromy
7baac76a3b repo/verify: add better testing on repo verify command
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-29 22:55:06 -07:00
Jakub Sztandera
384fb1095c
test: revert few stdin tests that were removed
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-29 22:11:11 +02:00
Kevin Atkinson
802d3f9570 Add back still useful test from fe7b01f1 (Resolve symlink if ...)
Add back still useful test from reverted commit:
  fe7b01f14e
  Resolve symlink if it is directly referenced in cli (#2897)

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-29 16:10:46 -04:00
Jakub Sztandera
3754803a67
test: do explicit check of CORS headers
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-29 21:43:58 +02:00
Kevin Atkinson
10a692f9a2 Fix "ipfs add -r ." to always add the contents of the current directory.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-27 16:48:03 -04:00
Kevin Atkinson
88e4b110ba Revert "Resolve symlink if it is directly referenced in cli (#2897)"
This reverts commit fe7b01f14e.

Conflicts:
	commands/cli/parse.go

Revert "Merge pull request #3023 from ipfs/feature/eval-symlink-windows"

This reverts commit 16c5a89dd4, reversing
changes made to 8c77ff8188.

Conflicts:
	commands/cli/parse.go

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-27 14:36:28 -04:00
Jeromy Johnson
53b927e3eb Merge pull request #3130 from ipfs/test/repo/version-digits
test: accept more than one digit in repo version tests
2016-08-26 14:17:50 -07:00
Jakub Sztandera
8181e9934a
test: accept more than one digit in repo version tests
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-26 18:23:40 +02:00
Jeromy
05b197df2d update deps for libp2p 3.4.0
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-25 19:02:55 -07:00
Jeromy Johnson
10048ceca9 Merge pull request #2962 from ipfs/kevina/block-rm
Add "ipfs block rm" command.
2016-08-18 13:27:26 -07:00
Kevin Atkinson
8679af7a02 "block rm": add "--force" and "--quiet" option
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-17 01:29:40 -04:00
Kevin Atkinson
92f6747a95 "block rm": test case for removing pinned, valid, and non-existent blocks
Add test that removes a combination of pinned, valid, and non-existent
blocks in one command.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-16 20:52:00 -04:00
Jeromy Johnson
f2dcad8531 Merge pull request #2999 from ipfs/feature/makefile-cleanup
Cleanup makefiles
2016-08-16 10:15:08 -07:00
Kevin Atkinson
c88b4b0941 "block rm": remove the option to ignore pins
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Kevin Atkinson
efeb789878 Check for multiple pinned blocks in a single pass.
Provide a new method, Pinner.CheckIfPinned(), which will check if
any of the arguments are pinned.  Previously IsPinned would need to be
called once for each block.  The new method will speed up the checking
of multiple pinned blocks from O(p*n) to O(p) (where p is the number
of pinned blocks and n is the number of blocks to be check)

Use the new method in "block rm".

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Kevin Atkinson
6ad497bcf0 "block rm": use channel instead of pipe / don't abort on non-fatal error
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Kevin Atkinson
453be22dfb Add "ipfs block rm" command.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Christian Couder
2489dfe8a9 ipfs-test-lib: fix test_fsh arg quoting
test_fsh() should quote its arguments before passing them
to `eval` otherwise there are problems when the arguments
contain spaces.

For example when running the following program:

```
#!/bin/sh

. ./ipfs-test-lib.sh

die () {
    printf >&2 "%s\n" "$@"
    exit 1
}

DIR1="test dir 1"
DIR2="test dir 2"

mkdir "$DIR1" "$DIR2" || die "Could not mkdir '$DIR1' '$DIR2'"

echo "in dir 1" >"$DIR1/file1" || die "Could not write into '$DIR1/file1'"
echo "in dir 2" >"$DIR2/file2" || die "Could not write into '$DIR2/file2'"

if test_cmp "$DIR1/file1" "$DIR2/file2"
then
    echo "test_cmp succeeded!"
else
    echo "test_cmp failed!"
fi

rm -rf "$DIR1" "$DIR2" || die "Could not rm -rf '$DIR1' '$DIR2'"

```

we get:

```
> diff -u test dir 1/file1 test dir 2/file2
diff: extra operand '1/file1'
diff: Try 'diff --help' for more information.

test_cmp failed!
```

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-08-15 12:10:15 +02:00
Jeromy
8a75a8cf08 commands: fix panic when stdin is empty for string args
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-07 09:24:17 -07:00
Jakub Sztandera
cc60f6909b make: cleanup -rm calls
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-04 16:38:00 +02:00
Jakub Sztandera
c1014aea88 make: 'make clean' clears sharness too
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-04 16:38:00 +02:00
Jakub Sztandera
f3dc11c566 use $(MAKE) instead of 'make' in Makefiles
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-04 16:38:00 +02:00
Jakub Sztandera
63072758a9 make: use 'make -C' instead of 'cd && make'
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-04 16:38:00 +02:00
Jeromy Johnson
1eb94e64e3 Merge pull request #2990 from csasarak/janky_version
Alias 'ipfs --version' to 'ipfs version'
2016-08-04 06:58:15 -07:00
Jeromy Johnson
5a831ff16d Merge pull request #3033 from ipfs/fix/stdin-read-msg
commands/cli: fix reading from stdin message
2016-08-03 11:19:34 -07:00
Jeromy
068c6d2211 commands/cli: fix reading from stdin message
Only print "Reading from /dev/stdin" message when we actually read from
stdin (and not in other cases such as ipfs add --help).

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-03 09:04:41 -07:00
Jakub Sztandera
a42302443b cli: reword message about mount and offline
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-03 08:04:07 -07:00
Jakub Sztandera
8273b0f493 sharness: fix improper use of test_expect_failure
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-03 05:24:20 -07:00
Jakub Sztandera
2cae0bc616 daemon: ipfs daemon --offline --mount should fail with nice message
ipfs daemon --offline;
ipfs mount;
fails. This uniforms this behaviour.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-03 05:24:20 -07:00
Jeromy
1b50fcefed default add progress to false, unless using CLI
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-01 10:03:43 -07:00
Jakub Sztandera
66686e66be commands: fix refs 'edges' option work
also change it to use format instead of separate variable

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-28 20:25:32 +01:00
Jeromy Johnson
0bd8ced0d6 Merge pull request #2993 from ipfs/fix/provstore-batching
use batching datastore for providers storage
2016-07-28 03:27:21 -07:00
Chris Sasarak
5e9cbd740d Added tests for ipfs --version.
1. Test that ipfs --version has a 0 exit status
2. Check the ipfs --version output matches ipfs version

License: MIT
Signed-off-by: Chris Sasarak <chris.sasarak@gmail.com>
2016-07-26 19:41:20 -04:00
Jeromy
e8addf5ee3 use batching datastore for providers storage
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-26 10:48:25 -07:00
Jeromy
ed551131f2 commands: fix panic when expected files field is nil
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-25 09:12:58 -07:00
Jeromy Johnson
83d9c1c106 Merge pull request #2939 from ipfs/feat/auto-migrate
Automatically download and run migrations if needed
2016-07-22 05:47:21 -07:00
Jeromy
fcc4f0001d move prompt code into daemon.go
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-20 13:29:33 -07:00
Jeromy
660a4a9d98 mfs: fix copying into directory with no given filename
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-19 07:41:00 -07:00
Jeromy
37673c85c7 add a test for auto migrations cli interface
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-19 06:50:00 -07:00
Jeromy Johnson
676b5ee7c8 Merge pull request #2952 from ipfs/fix/stdin-handling
rework stdin handling
2016-07-16 04:17:38 -07:00
Jeromy
72705564e7 another type check fix and add back a missing test
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-15 10:49:57 -07:00
Jakub Sztandera
6b97588266 cmd: include case where PrivKey is stored in lower case
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:46:33 +01:00
Jakub Sztandera
f7e659006b test/sharness: make sure the string isn't empty
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:45:51 +01:00
Jakub Sztandera
2fded41ff5 core/commands: do not show PrivKey in config if it is null
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:45:51 +01:00
Jakub Sztandera
2b682f95d0 core/commands/config: error out if config replace contains privkey
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:45:51 +01:00
Jakub Sztandera
ea9327dd3c test/sharness: add more tests against exposing PrivKey on network
and replacing config.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:45:51 +01:00
Jakub Sztandera
011a546b9c core/cmds/config: do not show privkey on the network
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:45:51 +01:00
Jeromy
b034a0d8e8 and special case that one thing because why not
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-09 11:33:02 -07:00
Jeromy
5d301cb8ec re-enable the stdin
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-08 16:39:15 -07:00
Lars Gierth
421add3d18 daemon: reintroduce --unrestricted-api
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-07-09 00:07:36 +02:00
Jeromy
1aeda7eb6e ignore those last bits, this time its for real
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-08 14:35:18 -07:00
Lars Gierth
816ab825b1 test: actually use downloaded gx binary, clean up obsolete variable
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-07-08 21:36:38 +02:00
Jeromy
96433cc6e1 starting to rework stdin handling
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-07 16:58:43 -07:00
Jeromy
a98dff6275 make repo verify work with running daemon
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-06 22:12:31 -07:00
Lars Gierth
39bef0d5b0 gateway: on api, restrict to webui
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-07-07 01:44:52 +02:00
Jeromy Johnson
2df8dc5a88 Merge pull request #2924 from ipfs/feat/repo-verify
add repo verify command
2016-07-06 11:39:13 -07:00
Jeromy
d13befe9ef add a test for repo verify, and make it return non-zero code on failure
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-05 14:58:48 -07:00
Jeromy
8c2496c9d9 add a test for swarm connect not triggering a backoff
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-05 14:44:19 -07:00
Jeromy
979edf3a96 update go-libp2p
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-04 12:27:26 -07:00
Lars Gierth
afda38f201 test: really no need for relative path to gx deps
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-07-03 01:45:06 +02:00
Lars Gierth
5bda53e55b docker: take version suffixes like -dev into account
The double and single quotes got too damn complicated, so heredoc we go!

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-07-03 01:45:02 +02:00
Jeromy
0aafa6db8c update go-datastore changes 0.1.2
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-01 22:40:57 -07:00
Jakub Sztandera
e446b3d394 test: Run t0080-repo test offline
Resolves #2906

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-01 20:29:48 -07:00
Jeromy
0782c4dc03 encode keys to datastore with base32 standard encoding
Fixes #2601

Also bump version to 0.4.3-dev

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-01 14:15:06 -07:00
Jakub Sztandera
fe7b01f14e Resolve symlink if it is directly referenced in cli (#2897)
* Resolve symlink if it is directly referenced in cli

test: Directly referenced symlink should be resolved

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* sharness: add test for symlink in the middle

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-28 12:06:50 -07:00
Jakub Sztandera
206529730a Add Synopsis autogenerator
Generates synopsis automagically

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-28 19:51:56 +02:00
Jakub Sztandera
9cbec47a23 sharness: Tests for #2868 - --help hanging on stdin
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-28 15:43:03 +02:00
Jeromy Johnson
3b2993dd9a Merge pull request #2902 from thomas-gardner/commands
commands: remove EnableStdin support for StringArg [v2]
2016-06-27 23:00:16 -07:00
Jakub Sztandera
dead777272 Add sharness test for read blockstore rehashing
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-27 11:28:44 +02:00
Thomas Gardner
ddc8d0c60c commands: remove EnableStdin support for StringArg
With verbose flag:
* remove EnableStdin() flags on all StringArg,

* remove all unneeded parsing code for StringArg, and print an
* informative message if `ipfs` begins reading from a CharDevice,

* remove broken go tests for EnableStdin cli parsing, and add some
* trivial test cases for reading FileArg from stdin,

* add a panic to prevent EnableStdin from being set on
* StringArg in the future.

Resolves: #2877, #2870
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-06-26 12:28:55 +10:00
Jakub Sztandera
ce8c8a7a71 Update go-log in whole dependency tree (#2898)
* Update golog in go-ipfs

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-secio for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-crypto for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p-peer for go-log

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Import peersore, it wasn't imported

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update peerstore

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update peer

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update secio

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

* Update go-libp2p

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 09:38:07 -07:00
Jeromy
3d5e015876 add a test for auto-raising ulimit
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-22 11:17:16 -07:00
Jeromy Johnson
472deb0e96 Merge pull request #2872 from ipfs-filestore/best-effort-pins
Add Files API root as best-effort pin
2016-06-21 20:42:19 -07:00
Jeromy Johnson
7d18f74879 Merge pull request #2880 from yuvallanger/swarm-filters-save-config
Swarm filters save config (fix #2878)
2016-06-21 10:42:19 -07:00
Yuval Langer
d608f32916 Add ipfs config Swarm.AddrFilters test
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 09:03:40 +03:00
Kevin Atkinson
466d70993f Enhance tests and fix tests copyright for files API root best-effort pin.
License: MIT
Signed-off-by:  <k@kevina.org>
2016-06-20 21:19:08 -04:00
Kevin Atkinson
714f2debea Add Files API root as best-effort pin.
Closes #2697.  Closes #2698.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-06-20 17:09:56 -04:00
Jeromy Johnson
c6443fd933 Merge pull request #2874 from ipfs/extract-gateway
gateway: clean up its surface, and remove BlockList
2016-06-20 12:34:29 -07:00
Lars Gierth
1afebc21f3 gateway: clean up its surface, and remove BlockList
This patch is in preparation for the gateway's extraction.

It's interesting to trace technical debt back to its
origin, understanding the circumstances in which it
was introduced and built up, and then cutting it back
at exactly the right places.

- Clean up the gateway's surface
  The option builder GatewayOption() now takes only
  arguments which are relevant for HTTP handler muxing,
  i.e. the paths where the gateway should be mounted.
  All other configuration happens through the
  GatewayConfig object.

- Remove BlockList
  I know why this was introduced in the first place,
  but it never ended up fulfilling that purpose.
  Somehow it was only ever used by the API server,
  not the gateway, which really doesn't make sense.
  It was also never wired up with CLI nor fs-repo.
  Eventually @krl started punching holes into it
  to make the Web UI accessible.

- Remove --unrestricted-api
  This was holes being punched into BlockList too,
  for accessing /ipfs and /ipn on the API server.
  With BlockList removed and /ipfs and /ipns freely
  accessible, putting this option out of action
  is safe. With the next major release,
  the option can be removed for good.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-19 00:52:35 +02:00
Jakub Sztandera
c10ed855a5 Add test for online field in diag sys
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-18 19:15:04 +02:00
Jeromy
de56a47bc0 update go-libp2p to 3.3.4
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-15 13:04:49 -07:00
Jeromy Johnson
e5e2f2c19c Merge pull request #2822 from ipfs/feature/stdin-stable
Change logic of stdin input to be last and only if required
2016-06-15 11:32:42 -07:00
Jeromy Johnson
16245dbd99 Merge pull request #2778 from ipfs/feature/CORS-on-gateway-by-default
Add CORS headers to Read Only Gateway Default config
2016-06-15 09:59:30 -07:00