Commit Graph

1198 Commits

Author SHA1 Message Date
Whyrusleeping
64944f57e9
Merge pull request #4767 from schomatis/fix/dag/diff
dag: diff: check CIDs in base case when comparing nodes
2018-03-22 23:19:53 -07:00
Whyrusleeping
59ad0f8c4b
Merge pull request #4755 from schomatis/fix/add/hash-only
add: hash-only: set the prefix for MFS root
2018-03-22 23:18:23 -07:00
Whyrusleeping
c44191e096
Merge pull request #4743 from schomatis/fix/unixfs/dagarchive-path
unixfs: clean path in DagArchive
2018-03-22 23:16:24 -07:00
Whyrusleeping
a9dfe410d2
Merge pull request #4563 from ipfs/fix/block-mhtype
commands/block: use CIDv1 with custom mhtype
2018-03-22 23:03:56 -07:00
Steven Allen
781dfa1252 cleanup name publish argument tests
1. Don't bother testing the peer IDs. These commands won't ever use them.
2. Move the `--help` test out from in-between the missing argument tests.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-19 16:31:07 -07:00
Steven Allen
3bb59efade add sharness test for #4837
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-19 16:00:51 -07:00
Steven Allen
4e9a6c7eab add regression test for #4823
for both online and offline mode (tests both the cli and the api)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-18 13:04:50 -07:00
Steven Allen
45fd7d213f pre-populate required arguments from request body
This way, we can always assume that indexing a required argument works.

Also:

* test that the command tree doesn't have any obvious bugs (duplicate options,
  arguments in the wrong order, etc).
* simplify the usage ParseBodyArgs.
* remove unnecessary check in the get command.

fixes #4823

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-18 13:04:25 -07:00
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
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