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
Jakub Sztandera
628e458e7d
Add regression sharness test for ipfs init
...
This tests expects ipfs init with no arguments to work
even with occuipied stdin.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-13 13:09:52 +02:00
Jakub Sztandera
6822c0c670
Revert "Revert "Implements repository initialization with default config""
...
This reverts commit 77ef3913d9 .
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-13 13:09:52 +02:00
Jakub Sztandera
4190076c66
Add the time-out script
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-13 13:09:52 +02:00
Jakub Sztandera
cafd81c8c6
Import go-datastore to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:47:15 +02:00
Jakub Sztandera
6217e1f141
Remove go-datastore from Godeps
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:23:43 +02:00
Jeromy Johnson
c9ddc7d1d5
Merge pull request #2798 from ipfs/feat/smarter-bitswap
...
Make bitswap better
2016-06-11 16:52:45 -07:00
Jeromy
4c1201badb
update iptb and multinode tests
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 15:54:28 -07:00
Jeromy
7c8e641436
pull in libp2p updates with utp fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 10:33:44 -07:00
Jeromy Johnson
444a8dc2f6
Merge pull request #2812 from ipfs/feature/refs-local-api
...
Fix refs local marshalling
2016-06-10 11:35:06 -07:00
Jakub Sztandera
eaccd07505
Update go-log
...
https://github.com/ipfs/go-log/pull/3
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 23:37:09 +02:00
Jakub Sztandera
6d4975d82c
Move go-humanize to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 11:32:02 +02:00
Jeromy
d16591ad21
Make bitswap better
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-08 14:17:08 -07:00
Jeromy Johnson
7a7a267e36
Merge pull request #2818 from ipfs/deps/libp2p/id-fix
...
update libp2p to version 3.2.2
2016-06-07 01:08:55 -07:00
Jeromy
afbc6be0a6
update libp2p to version 3.2.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-07 00:20:06 -07:00
Jeromy Johnson
e2c7a04400
Merge pull request #2795 from ipfs/fix/mfs-caching
...
rework add-mfs to not use caching
2016-06-07 00:01:44 -07:00
Jakub Sztandera
b2a082fb13
Add tests to prevent future regressions
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-06 12:35:29 +02:00
Michael Pfister
5aaebd0b2d
Adding tests for repo stat and repo version cmd
...
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-06-03 13:54:39 -07:00
Michael Pfister
53ccaa9722
adding tests
...
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-06-03 13:39:56 -07:00
Lars Gierth
00ae31cbdd
docker: make dockerfile differences more obvious
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-03 02:12:31 +02:00
Jeromy
22a5b79508
rework add-mfs to not use caching
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-02 12:54:53 -07:00
Jeromy Johnson
994109c731
Merge pull request #2790 from ipfs/feature/version-all
...
Add version --all option
2016-06-02 12:23:45 -07:00
Jakub Sztandera
c8c329df14
Move tests around as for #2774
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-02 17:53:27 +02:00
Jakub Sztandera
01d596bc83
Add test for version --all
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-02 17:53:24 +02:00
Jeromy
7274c6be35
update libp2p to v3.3.1
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-01 16:45:46 -07:00
Jakub Sztandera
c0393383fd
test: CORS is enabled by default
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-01 19:05:43 +02:00
Jeromy Johnson
5f6961028c
Merge pull request #2757 from ipfs/feature/Godeps-to-gx-2
...
Second wave of gx migrations
2016-06-01 09:17:26 -07:00
Jeromy Johnson
ed2d94b007
Merge pull request #2775 from ipfs/feature/head-no-body
...
Add check for HEAD response to be empty
2016-06-01 09:11:40 -07:00
Jeromy Johnson
c814478fb9
Merge pull request #2773 from ipfs/feature/commands-flags
...
Fix commands --flags not showing flags via HTTP API
2016-05-31 16:32:20 -07:00
Jakub Sztandera
d7913c893a
Migrate rs/cors to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-31 22:40:41 +02:00
Jeromy Johnson
88da12ef56
Merge pull request #2707 from ipfs/local-mount-test
...
Make t0030 use iptb for consistent test passing.
2016-05-31 10:15:20 -07:00
Jakub Sztandera
7167e93be4
Add test to prevent future regressions
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-31 18:55:45 +02:00
Jeromy Johnson
82c0a3ba97
Merge pull request #2754 from ipfs/fix-dockerfile-currentcommit
...
docker: simplify git ref resolution, thanks @chriscool
2016-05-31 09:20:55 -07:00
Jeromy Johnson
6a894d6e76
Merge pull request #2696 from ipfs/feature/Offline-2393
...
Offline daemon mode
2016-05-31 09:12:13 -07:00
Jeromy Johnson
4974a02f27
Merge pull request #2772 from ipfs/deps/libp2p/3.2.3
...
update libp2p to v3.2.3
2016-05-31 08:44:43 -07:00
Jakub Sztandera
f99bb4f9d5
Add check for HEAD response to be empty
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-31 17:18:50 +02:00
Jeromy
aae6a2c379
update libp2p to v3.2.3
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-30 22:14:21 -07:00
Jakub Sztandera
d527e581e2
Add test for directly adding hidden file
...
It got broken no so long ago so this is the regression
test for that.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-31 06:51:51 +02:00
Jeromy Johnson
6c3350369e
Merge pull request #2516 from Stebalien/protobuf-content-type
...
Correctly set the content type for `object get --encoding=protobuf`
2016-05-28 23:28:45 -07:00
Jakub Sztandera
e293204666
Add t0040 test for offline daemon
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-24 15:59:56 +02:00
Jakub Sztandera
bdea10ff0e
Make if condition in sharness lib silent
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-24 15:59:56 +02:00
Jakub Sztandera
7614f4f700
Create shanress test for offline mode node
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-24 15:59:56 +02:00
Lars Gierth
0eed330ec2
docker: simplify git ref resolution, thanks @chriscool
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-05-24 00:27:02 +02:00
Richard Littauer
03dd669430
Refactor progress and showProgressBar
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-21 14:27:10 +01:00
Lars Gierth
7145d306b4
docker: add test for ipfs version --commit
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-05-20 02:40:51 +02:00
Lars Gierth
6b94fdecd6
docker: fix CurrentCommit discovery
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-05-20 02:40:41 +02:00
Lars Gierth
77ef3913d9
Revert "Implements repository initialization with default config"
...
See #2748
This reverts commit 6989686b8b .
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-05-20 01:49:35 +02:00
Jeromy Johnson
6f716463d2
Merge pull request #2706 from ipfs/feature/MFSStatsHashOnly
...
Add --format option to mfs stat command
2016-05-18 13:47:46 -07:00
Jakub Sztandera
fea0b940d6
Replace head piping with --hash option in t0250
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-18 07:01:51 +02:00
Jakub Sztandera
64677e75a3
Add sharness tests for files stat format options
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-18 06:58:38 +02:00
Jeromy Johnson
abeea4f8e1
Merge pull request #2720 from ipfs/flaky_dht_query
...
marks dht query as known breakage for now
2016-05-17 16:04:50 -07:00
Jeromy Johnson
414c0ccbc4
Merge pull request #2716 from ipfs/patch-add-link-paths
...
Fix #2715 and patch add-link paths
2016-05-17 11:43:11 -07:00
Jeromy
60cae2079a
check output hash for correctness
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-17 10:49:13 -07:00
Stephen Whitmore
8d35bd5f3f
marks dht query as known breakage for now
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-05-17 10:36:08 -07:00
Jeromy
e22345ae65
update go-libp2p 3.2.2, nil maddr fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-17 10:23:10 -07:00
jbenet
9f79dde058
ipfs object patch add-link supports paths
...
previously, paths were not supported as link values.
this would not work, and now can:
ipfs object patch $root add-link foo /ipfs/$hash/foo/bar
License: MIT
Signed-off-by: Juan Benet <juan@benet.ai>
2016-05-16 23:03:31 -07:00
Stephen Whitmore
305cf122a7
Make t0030 use iptb for consistent test passing.
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-05-16 13:38:41 -07:00
Jeromy
23c8ed93fd
update libp2p to v3.2.1
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-16 11:22:36 -07:00
Jeromy Johnson
f747cf6fbe
Merge pull request #2687 from Kubuxu/fix/t0060
...
Increase timeout in t0060
2016-05-13 15:25:24 -07:00
Jeromy Johnson
fb87d2faf0
Merge pull request #2643 from RichardLitt/docs/lint-diff-text
...
Linted object diff help text
2016-05-13 15:24:52 -07:00
Jeromy
a657ccf6c0
update deps to introduce yamux hang fix
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-13 13:42:46 -07:00
Jakub Sztandera
3ff35ab47a
Increase timeout in t0060
...
Resolves #2684
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-13 19:46:09 +02:00
Jeromy
6359dc9d5e
update libp2p with go-multiaddr and go-stream-muxer updates
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-10 16:06:28 -07:00
Richard Littauer
f419f3aba6
Fixed tests
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-10 10:39:53 -04:00
Jeromy Johnson
1a6f8c68fd
Merge pull request #2584 from ipfs/fix/build-process
...
add a dist_get script for getting bins from dist.ipfs.io
2016-05-09 13:46:27 -07:00
Jeromy
1e31839cc2
use repo level bins in test Makefile
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-09 12:48:06 -07:00
Jeromy Johnson
2c8fdab197
Merge pull request #2638 from ipfs/t0170-misc-fixes
...
t0170 misc fixes
2016-05-09 11:26:13 -07:00
Christian Couder
c54c0456b7
test-lib: make checking for docker silent
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-05-07 13:14:11 +02:00
Christian Couder
e8bc591fe5
t0170: remove useless 'echo' and add '&&'
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-05-07 09:38:44 +02:00
Christian Couder
01bf209c31
t0170: put startup_cluster() call outside test_expect_success
...
startup_cluster() already contains some test_expect_success, so
it should not be inside one.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-05-07 09:37:04 +02:00
Kevin Atkinson
b84cbec2b6
Make blocks.Block an interface.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-05-05 18:02:11 -04:00
Jeromy Johnson
fbf745fbcd
Merge pull request #2632 from hsanjuan/issue_2434
...
"ipfs log ls" command
2016-05-05 12:17:37 -07:00
Jeromy Johnson
2862e58a6e
Merge pull request #2581 from RealImage/default-config
...
Implements repository initialization with default config
2016-05-05 10:10:59 -07:00
Siva Chandran
6989686b8b
Implements repository initialization with default config
...
Modified init command to receive default configuration from stdin. The changes enable us to use existing key-pair, datastore configuration while initializing new ipfs node.
License: MIT
Signed-off-by: Sivachandran <sivachandran.p@gmail.com>
2016-05-05 14:44:15 +05:30
Hector Sanjuan
57b494a70c
Update go-log to 1.1.0 and fix calls to go-log.Uuid
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2016-05-04 23:17:21 +02:00
Christian Couder
5b17654211
test/Makefile: use gx deps find for gx dependencies
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-04-30 08:52:19 +02:00
Christian Couder
13354f31dc
test/Makefile: add global-deps target
...
We need to make sure that go, gx, gx-go are properly installed.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-04-30 07:25:10 +02:00
Christian Couder
d4e7287980
sharness/Makefile: check global dependencies
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-04-30 07:17:36 +02:00
Christian Couder
857fce168a
Replace existing iptb dependencies with the gx one
...
Now that iptb has been added as a gx dependency, we can replace
existing dependencies with the one from gx.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-04-30 07:17:36 +02:00
Richard Littauer
f60ae0a1b9
Capitalized NOTE, first letter of following word
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-29 16:57:19 -04:00
Stephen Whitmore
0a45ada4ed
CLI: discoverability and consistency ( #2542 )
...
* reduces help indent from 4 to 2 spaces
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* reduces horz/vert space taken by "ipfs" cmd
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* show subcommands on shorthelp
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Drops colons at the end of cmd headings.
This makes command headings consistent with the output of 'ipfs', which
does not include colons.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* more consistent output between short-/long-help
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Puts DESCRIPTION before SUBCOMMANDS.
Users likely want to understand what a command does before worrying
about its subcommands.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Keeps ipfs cmd from outputting its subcmds twice.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "file"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes extra whitespace from longhelp
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Consistent spacing whether SUBCMDS or not.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant SUBCMD output from ipfs object.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "name"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Newline after Description only if it exists.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "bootstrap"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "swarm"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes trailing newline in ping help.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Prints shorthelp on parse error.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* tiny comment fixes
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* updates README usage
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Don't include extra whitespace if no .MoreHelp
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* description improvements
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Hides the obscure 'file' subcommand.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Splits 'ipfs daemon' into Short and Long help.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "config"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Wraps lines to keep from going over 80.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* specify repo separately
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* s/structure/hierarchy
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* missing .
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes trailing colon from 'usage' test.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Updates sharness test error messages.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes trailing colon from 'usage' test.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Updates add-symlink to use /bin/sh.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes "hierarchy".
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Updates "ipfs ping" synopsis.
* Updates t0040 with latest wording.
* Removes unnecessary daemon setup.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-28 14:08:32 -07:00
Lars Gierth
e933a57976
docker: allow IPFS_LOGGING to be passed
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-28 20:57:02 +02:00
Jeromy
cffec77cea
update libp2p with utp dep
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-27 14:10:54 -07:00
Jeromy Johnson
49ea0f835e
Merge pull request #2608 from ipfs/fix-docker-build
...
Dockerfile: use go version 1.5.4-r0
2016-04-27 14:08:44 -07:00
michael
46bcdce15d
commands: repo fsck ( #2597 )
...
* Adds repo fsck subcommand
Fixes #2457
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
* Checks for error on file deletion
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
* Checks if node is online
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
* Update error checking
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Prevents command from running while daemon is running
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Add newline to command output message
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* removing superfluous error
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Adds sharness test for repo fsck command
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Ignore warning if file doesn't exist
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Updating message output
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* adding debug statements
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* update and add fsck sharness tests
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* updating comments
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Use printf in test
Using printf prevents a newline from being printed to the api test file. When
the newline was present, multiaddr threw errors trying to parse the api address
to an integer since the newline character was present.
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* updating tests
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* removing commented code
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-04-27 13:28:53 -07:00
Jeromy
01fd30069f
bump test/Dockerfile go version to 1.5.4
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-27 13:11:39 -07:00
Stephen Whitmore
5d25fc1f16
unix-friendly output for 'ipfs dht' commands ( #2560 )
...
* Cleans up 'ipfs dht findpeer' output
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Adds more docs for 'ipfs dht put'.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Write pretty peer ids for ipfs dht put.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Writes pretty peer ids for ipfs dht query.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Suppresses unrecognized event type for FinalPeer.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Improves helptext on dht commands.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Adds 'ipfs dht findpeer' sharness test.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Adds sharness tests for remaining DHT commands.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Uses bash tests rather than 'test' command.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes commented code.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes unneeded init_ipfs.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Tweaks iptb setup.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Tweaks wording on dht 'put' and 'get'.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes extraneous ).
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes apostrophe.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Tests the expected peer addresses.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Gets peer id using iptb.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Checks explicitly for common put/findprovs peers.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Sorts expected/actual findpeer results.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Fix disconnect argument description
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
* Fixes sort order in t0170-dht.sh.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-27 09:31:06 -07:00
Jeromy Johnson
8ab1b8b2cb
Merge pull request #2576 from ipfs/update-libp2p
...
Update go-libp2p
2016-04-18 15:31:10 -07:00
Jeromy Johnson
2509631c29
Merge pull request #2531 from noffle/output-dirs-on-add
...
Outputs added directories as they are traversed.
2016-04-18 13:29:44 -07:00
Jeromy Johnson
a8b7c9adec
Merge pull request #2562 from ipfs/feat/object-diff
...
implement object diff command
2016-04-18 12:53:48 -07:00
Lars Gierth
00ec976e1d
Use extracted go-libp2p-crypto, -secio, -peer packages
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-16 21:48:06 -07:00
Lars Gierth
907f4fadbd
Update go-libp2p
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-16 21:23:47 -07:00
Jeromy
7e7fcb35ea
changes from CR feedback
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-16 12:23:34 -07:00
Lars Gierth
f7230b0480
repo: don't create logs directory, not used any longer
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-15 13:50:46 -07:00
Jeromy
bf7da8522c
basic implementation of object diff
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-14 13:06:51 -07:00
Jeromy
e79e1d31e9
remove a ton of unused godeps
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-13 11:23:10 -07:00
Jeromy Johnson
185a3a6be9
Merge pull request #2523 from ipfs/clean-all-bins
...
sharness/Makefile: clean all BINS when cleaning
2016-04-12 18:57:06 -07:00
Stephen Whitmore
6d25aca9ed
Adds tests to make sure 'object patch' writes.
...
Tests to ensure that object patching writes to the block store.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 17:22:06 -07:00
Stephen Whitmore
3876f1b98e
More thorough ipfs add test.
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
Stephen Whitmore
d30152cfe9
Adds tests for "ipfs add -rn"
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
Jeromy Johnson
6c8bebbedd
Merge pull request #2257 from ipfs/feat/promise-fail
...
allow promises to fail
2016-04-12 11:52:13 -07:00
Jeromy
5a0b6e593a
small sharness test for promise failure checking
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-12 11:21:34 -07:00
Jeromy
bdc5456d52
update libp2p dep to fix hanging listeners problem
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-11 12:52:54 -07:00
Jeromy
e9edd2d884
use nc -w instead of -q because osx is slow
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
Jeromy
42455d27b3
multistream tests use data from file
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
Jeromy
3148f4c34f
fix tests that check swarm port knocking
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
Jeromy
8f3a51ac42
switch to new libp2p with mss crypto
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
Jeromy
e661832575
hide fd adjusting code behind daemon feature flag
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 07:41:09 -07:00
Lars Gierth
09937f84b6
gateway: enforce allowlist for path prefixes
...
The gateway accepts an X-Ipfs-Path-Prefix header,
and assumes that it is mounted in a reverse proxy
like nginx, at this path. Links in directory listings,
as well as trailing-slash redirects need to be rewritten
with that prefix in mind.
We don't want a potential attacker to be able to
pass in arbitrary path prefixes, which would end up
in redirects and directory listings, which is why
every prefix has to be explicitly allowed in the config.
Previously, we'd accept *any* X-Ipfs-Path-Prefix header.
Example:
We mount blog.ipfs.io (a dnslink page) at ipfs.io/blog.
nginx_ipfs.conf:
location /blog/ {
rewrite "^/blog(/.*)$" $1 break;
proxy_set_header Host blog.ipfs.io;
proxy_set_header X-Ipfs-Gateway-Prefix /blog;
proxy_pass http://127.0.0.1:8080 ;
}
.ipfs/config:
"Gateway": {
"PathPrefixes": ["/blog"],
// ...
},
dnslink:
> dig TXT _dnslink.blog.ipfs.io
dnslink=/ipfs/QmWcBjXPAEdhXDATV4ghUpkAonNBbiyFx1VmmHcQe9HEGd
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-04 16:31:57 -04:00
Christian Couder
908fb95bb1
sharness/Makefile: clean all BINS when cleaning
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-04-03 13:02:04 +02:00
Steven Allen
a72d26b875
api: correctly set the content type for object get --encoding=protobuf
...
It used to default to `application/json` but is now correctly set to
`application/protobuf`.
fixes #2469
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2016-03-31 17:14:41 -04:00
Jeromy
9f75ac4d75
update utp and cleanup more godeps along the way
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-29 19:18:14 -07:00
Jeromy
e9b1fe4cef
clean up dependencies
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-23 11:54:26 -07:00
Jeromy Johnson
573b191df2
Merge pull request #2465 from ipfs/fix/double-encoding-header
...
fix double transfer encoding header problem
2016-03-15 10:22:14 -07:00
Jeromy Johnson
655804c5ef
fix whitespace trimming
...
License: MIT
Signed-off-by: Jeromy Johnson <why@ipfs.io>
2016-03-14 16:36:31 -07:00
Jeromy Johnson
850602361d
fix double transfer encoding head problem
...
License: MIT
Signed-off-by: Jeromy Johnson <why@ipfs.io>
2016-03-14 16:26:49 -07:00
Jeromy Johnson
102a6dde22
Merge pull request #2451 from ipfs/t0300-improve-debug-message
...
t0300: improve docker_build debug message
2016-03-14 16:15:59 -07:00
Jeromy Johnson
286a5968c5
Merge pull request #2430 from diasdavid/feat/repo-stat
...
Feature: `ipfs repo stat`
2016-03-11 12:51:11 -08:00
Jeromy
97d583dd8f
update libp2p dep
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-09 09:53:19 -08:00
Jeromy
d8be357087
add new test to show problem
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-09 09:50:00 -08:00
Christian Couder
94083ae624
t0300: improve docker_build debug message
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-03-07 10:35:52 +01:00
David Dias
c10e329b78
repo-stat
...
License: MIT
Signed-off-by: David Dias <daviddias.p@gmail.com>
2016-03-04 23:45:03 +00:00
Jeromy
7072dab396
grab daemon pid into its own variable
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-03 22:47:50 -08:00
Jeromy
63a9ed202c
make t0060 use port zero
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-02 15:00:04 -08:00
Stephen Whitmore
f4367f6831
t0031: ensure iptb init happens
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-29 16:05:48 -08:00
Stephen Whitmore
b66e089ec1
trailing whitespace
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-29 16:05:48 -08:00
Stephen Whitmore
b4bd604426
uses iptb exclusively for mount-publish test
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-29 16:05:48 -08:00
Stephen Whitmore
0afbd1857f
Prevents 'ipfs name publish' when /ipns is mounted.
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-29 16:05:48 -08:00
Jeromy Johnson
922ad3cde5
Merge pull request #2392 from ipfs/std-err-msg-prereq
...
sharness: replace POSIX prereq with STD_ERR_MSG
2016-02-29 15:11:17 -08:00
Jeromy Johnson
dede20eab4
Merge pull request #2384 from ipfs/feat/dag-refactor
...
refactor merkledag fetching methods
2016-02-29 10:04:34 -08:00
Stephen Whitmore
2f64de0d61
Uses preset API_MADDR and GWAY_ADDR globals.
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-23 13:22:58 -08:00
Stephen Whitmore
c342d57347
Updates uses of *_ADDR -> *_MADDR
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-23 13:22:58 -08:00
Stephen Whitmore
31f4ef02c2
Use test_launch_ipfs_daemon
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-23 13:22:58 -08:00
Stephen Whitmore
597d684160
Adds arbitrary port support to t0060-daemon.sh.
...
Removes all of the hardcoded ports and defaults to non-standard API,
Gateway, and Swarm ports.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-23 13:22:58 -08:00
Jeromy Johnson
f630f9d92a
Merge pull request #2382 from ipfs/fix/mfs-truncate
...
fix minor mfs truncate bug
2016-02-23 10:42:06 -08:00
Christian Couder
00e03404d8
sharness: replace POSIX prereq with STD_ERR_MSG
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-22 22:13:30 +01:00
Christian Couder
73e76dca56
files: make 'files ls' defaults to /
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-22 19:15:49 +01:00
Jeromy
d2931d70a6
fix test now that dag batches can more properly fail
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-20 16:21:04 -08:00
Jeromy
973707a884
fix minor mfs truncate bug
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-19 18:57:41 -08:00
Jeromy Johnson
662625318a
Merge pull request #2374 from ipfs/t0062-indentation-fix
...
t0062: fix indentation
2016-02-19 08:42:08 -08:00
Christian Couder
c6a7b51f0c
t0062: fix indentation
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-19 04:24:12 +01:00
Christian Couder
ad71b15e36
sharness: remove xt0130-multinode.sh
...
xt0130 test is already in as t0130.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-19 03:32:07 +01:00
Christian Couder
fa57fb7349
sharness: remove x0045-add-cat-iptb.sh
...
x0045 can be removed since we do the same stuff in other tests.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-19 03:31:39 +01:00
Jeromy
11f9e7f647
add a pause to fix timing on t0065
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-15 19:16:03 -08:00
Jeromy Johnson
6b76e2a41a
Merge pull request #2319 from ipfs/cleanup/gx-godeps
...
use gx vendored packages instead of godeps ones
2016-02-13 14:46:19 -08:00
Jeromy
d7dab3afea
Use gx vendored go-ipfs-utils where possible
...
For the rest of the packages in util, move them to thirdparty
and update the references. util is gone!
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-12 17:21:40 -08:00
Christian Couder
ce5eac46d4
t0020: improve error message
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-12 17:20:23 -08:00
Christian Couder
7d80512a4c
test-lib: add test_path_cmp()
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-12 17:20:23 -08:00
Christian Couder
ea8d8aaa13
appveyor: use a POSIX prereq
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-12 17:20:23 -08:00
Jeromy
0c7595b65b
Use port zero for all ipfs daemon addresses in sharness testing
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-12 14:04:32 -08:00
Jeromy Johnson
c913105dd7
Merge pull request #2308 from ipfs/docker-auto-builds
...
Docker automatic builds
2016-02-10 09:23:23 -08:00
Jeromy
5474e15e93
blockstore locks return unlocker object now
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Jeromy
d2e0d73bd5
flush pinning improvements
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Jeromy
1feea8bc5f
flushing and shallow list names
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-08 14:42:07 -08:00
Lars Gierth
e59dc8e49d
docker: move to ipfs/go-ipfs image name
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-02-06 04:28:45 +01:00
Jeromy Johnson
5a0b8023be
Merge pull request #2256 from ipfs/feat/gx-libp2p
...
vendor libp2p with gx
2016-02-05 16:52:02 -08:00
Lars Gierth
ce0d62dca3
docker: save image space by excluding .git/
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-02-05 04:03:30 +01:00
Lars Gierth
c103efc1a9
sharness: disable t0300-docker-image on Circle CI
...
The actual tests for the IPFS daemon within the image,
which were added in the previous commits, made Circle CI unhappy.
Circle CI runs an old version of Docker
which still uses LXC instead of libcontainer.
The existing lxc-attach hack is testament to that.
We might be able to get it work [1][2]
but it's really not worth it at the moment,
and Circle CI isn't a good option for Docker things, right now.
[1] https://jpetazzo.github.io/2014/03/23/lxc-attach-nsinit-nsenter-docker-0-9/
[2] https://github.com/jpetazzo/nsenter
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-02-05 03:11:50 +01:00
Christian Couder
91322346e2
t0240: improvements
...
This:
- uses startup_cluster() from iptb-lib.sh,
- avoids running test_expect_success() inside test_expect_success()
as it makes the output confusing,
- makes the number of test nodes easily configurable.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-04 22:42:02 +01:00
Christian Couder
78f2f10ccf
iptb-lib: small improvements
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-04 22:32:49 +01:00
Lars Gierth
81c8cffee9
Rework the Dockerfile
...
- Have two Dockerfiles doing essentially the same,
but optimized for build time (for tests)
and image size (for Docker Hub)
- Fetch gx dependencies
- Expose port 4002 for utp
- Specify go version, currently 1.5.3-r0
- Create ephemeral fs-repo if none is mounted
- Have t0300-docker-image actually test IPFS, not just an echo
- Make everything a bit less hardcoded
- Remove dead shacheck
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-02-04 10:46:26 -08:00
Jeromy Johnson
585ef2b957
Merge pull request #2275 from ipfs/refactor-iptb-tests
...
Refactor iptb tests
2016-02-02 08:44:57 -08:00
Jeromy
c7c1e72eaf
add sharness test
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-01 16:35:22 -08:00
Christian Couder
79b6297770
t0130: use startup_cluster() from iptb-lib.sh
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-01 23:23:53 +01:00
Christian Couder
e0a48ffcf6
iptb-lib: add startup_cluster()
...
While at it let's cleanup startup_cluster() too.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-01 23:22:35 +01:00
Christian Couder
8b875ebe77
t0121, t0130, t0240: use iptb-lib.sh
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-01 13:48:00 +01:00
Christian Couder
d1f15d445b
iptb-lib: small cleanup
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-01 13:23:51 +01:00
Christian Couder
cacb1cc2d4
sharness: add lib/iptb-lib.sh
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-01 13:17:13 +01:00
Jeromy
2263539c1c
do that last thing again
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 15:37:39 -08:00
Jeromy
c0101c0c4b
update libp2p dep
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 10:19:50 -08:00
Jeromy
0e8a6700f9
correct go-log dep
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:10 -08:00
Jeromy
3d0aa592ec
go-keyspace dep from libp2p added
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:08 -08:00
Jeromy
0e312f5caf
initial vendoring of libp2p outside of the repo with gx
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:06 -08:00
Stephen Whitmore
81b9607c49
Merge pull request #2201 from noffle/unpin-2155
...
Resolve paths in 'pin rm' /wo network lookup
2016-01-25 17:17:47 -08:00
Stephen Whitmore
9745704f5f
Slightly optimizes core.ResolveToKey().
...
This is done by skipping the step of resolving the final segment in the
path to a DAG node; instead preferring to look at the second-to-last
segmenet's links.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-24 23:31:05 -08:00
Juan Benet
a5c4c5d17c
Merge pull request #2232 from lidel/cors-preflight-fix
...
Gateway: add support for HTTP OPTIONS request type
2016-01-23 19:56:24 -08:00
Marcin Rataj
15d717c165
CORS header tests for Gateway
...
- Implements
https://github.com/ipfs/go-ipfs/pull/2232#issuecomment-173742385
- Separate test suite:
- we don't want to pollute other gateway tests with CORS headers
- (as of now) changing headers requires daemon restart anyway
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2016-01-22 23:41:33 +01:00
Juan Benet
a2b0287a5f
Merge pull request #2141 from Kubuxu/patch-1
...
Add Server field in HTTP API response header
2016-01-21 23:31:25 -08:00
Juan Benet
ffe6c8576e
Merge pull request #2021 from ipfs/fix/corsconfig
...
Fix SetAllowedOrigins
2016-01-21 23:03:23 -08:00
rht
f0801589b4
Add SetAllowedOrigins race test case
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-21 20:03:17 +07:00
Jakub Sztandera
981b389a04
Add Server field in HTTP API
...
Resolves #625
Included in tests.
License: MIT
Signed-off-by: Jakub (Kubuxu) Sztandera <kubuxu@gmail.com>
2016-01-20 18:30:39 +01:00
Christian Couder
2dd4f40c10
test/bin: remove ipfs-pin-stat
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
Christian Couder
893ab6dc83
t0081: use 'ipfs pin ls <arg>' in test_pin_flagi()
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
Jeromy
39d0b33507
address CR feedback
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-16 17:51:08 -08:00
Jeromy
52da1e3293
fix bootstrapping bug and add real test for bootstrapping
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-16 16:05:46 -08:00
Stephen Whitmore
32ceaa61e8
Resolves paths in 'pin rm' without network lookup.
...
Fixes ipfs/go-ipfs#2155 by turning the hash path arguments into keys
and unpinning directly, rather than running a full core.Resolve on
them. This lets users fail fast when they try to remove pins that
they don't have locally.
Note that this will only work when the path is of the form <hash> or
/ipfs/<hash>. Given e.g. /ipfs/<hash>/foo, foo's key cannot be known
without first resolving <hash>, which may involve talking to the
network.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-16 03:11:36 +01:00
Jeromy Johnson
f89a915ca0
Merge pull request #2114 from ipfs/remove-jenkins
...
ci: remove dead jenkins code
2016-01-15 23:55:20 +01:00
Jeromy Johnson
b182e539f0
Merge pull request #2202 from noffle/hidden_files-2145
...
Lets 'ipfs add' include top-level hidden files
2016-01-15 20:40:52 +01:00
Stephen Whitmore
0828d1eb64
Lets 'ipfs add' add hidden files when explicit.
...
Fixes ipfs/go-ipfs/#2145. The --hidden switch (still) only affects
recursive adding.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-15 11:19:40 -08:00
Juan Benet
2d9f6a8367
Merge pull request #2137 from Dignifiedquire/app
...
Fix appveyor
2016-01-15 12:11:41 -05:00
dignifiedquire
4f06a0d8bd
Start fixing appveyor
...
License: MIT
Signed-off-by: dignifiedquire <dignifiedquire@gmail.com>
2016-01-15 17:27:21 +01:00
Christian Couder
14462092f8
test-lib: improve on previous fix
...
With GNU "grep" \b works but it's safer to use "egrep" which is also
POSIX rather than "grep" as not all the "grep"s out there might support \b.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-15 16:50:16 +01:00
Christian Couder
cd9c9a6525
.gitignore: clean up how 'test/bin' content is ignored
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-15 10:43:29 +01:00
Christian Couder
e6201151c6
t0081: fix greping pin type
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-15 10:27:21 +01:00
Christian Couder
7e8052ef32
test-lib: fix test_str_contains
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-15 09:54:44 +01:00
Jeromy
a99ad8a411
add tests for and fix {set/append}-data
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
d4ffc9454f
refactor object patch command to work more betterer
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
9aea2c7895
fix shared node reference issue
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
4d5af93f43
vendor in new go-datastore
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
cb1c5c535c
add sharness test for index.html content type
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
f4ba724dbe
implement utp transport
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
f08c88c8bb
feedback from CR
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
06c013bf67
cleanup and more testing
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
9e7e826b8a
sort output in tests
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
be09205310
fixify tests
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
b2b415b57d
fix some tests
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
dc2e343a99
add option to disable flushing files structure on writes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Andrew Chin
b6f28dad1b
Add a --pin option to ipfs add (allowing --pin=false)
...
Implements a solution for #1908
This PR replaces #1909
License: MIT
Signed-off-by: Andrew Chin <achin@eminence32.net>
2016-01-12 08:22:55 -08:00
Jeromy
38fab91013
address comments from CR
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
6faa70ee59
implement ipfs files command
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Tommi Virtanen
d83644628b
sharness: Stop assuming leveldb Datastore
...
License: MIT
Signed-off-by: Tommi Virtanen <tv@eagain.net>
2016-01-12 08:22:55 -08:00
Tommi Virtanen
a5f9832937
gofmt generated assets
...
The generated file went through some changes because of differing
go-bindata versions.
License: MIT
Signed-off-by: Tommi Virtanen <tv@eagain.net>
2016-01-12 08:22:55 -08:00
Jeromy
b12ee40aba
implement mark and sweep GC
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
dont GC blocks used by pinner
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
comment GC algo
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
add lock to blockstore to prevent GC from eating wanted blocks
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
improve FetchGraph
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
separate interfaces for blockstore and GCBlockstore
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
reintroduce indirect pinning, add enumerateChildren dag method
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:21:13 -08:00
Jeromy
de50b21562
using multistream muxer
...
* ID service stream
* make the relay service use msmux
* fix nc tests
Note from jbenet: Maybe we should remove the old protocol/muxer
and see what breaks. It shouldn't be used by anything now.
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2016-01-12 08:21:13 -08:00
Tommi Virtanen
e5b8ee4819
pin: Rewrite to store pins in IPFS objects
...
WARNING: No migration performed! That needs to come in a separate
commit, perhaps amended into this one.
This is the minimal rewrite, only changing the storage from
JSON(+extra keys) in Datastore to IPFS objects. All of the pinning
state is still loaded in memory, and written from scratch on Flush. To
do more would require API changes, e.g. adding error returns.
Set/Multiset is not cleanly separated into a library, yet, as it's API
is expected to change radically.
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:21:13 -08:00
Tommi Virtanen
531f0579a4
sharness: Don't assume we know all things that can create garbage
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
sharness: Don't assume we know all things that can create garbage
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:21:13 -08:00
Tommi Virtanen
5b96d4d6b8
sharness: fusermount -u is the documented way to unmount FUSE on Linux
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:17:17 -08:00
Tommi Virtanen
a3de9bf3a0
sharness: Use sed in a cross-platform safe way
...
OS X sed is documented as "-i SUFFIX", GNU sed as "-iSUFFIX". The one
consistent case seems to be "-iSUFFIX", where suffix cannot empty (or
OS X will parse the next argument as the suffix).
This used to leave around files named `refsout=` on Linux, and was
just confusing.
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:17:17 -08:00
Christian Couder
1fbbd1de15
Add and use a DOCKER prereq
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-10 20:19:23 +01:00
Christian Couder
d356ed0d53
sharness: add t0300-docker-image.sh
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-10 20:19:23 +01:00
Christian Couder
29ec4c06e4
test/ipfs-test-lib: add docker support
...
We have to do something special for CircleCI in docker_exec()
because "docker exec" doesn't work on CircleCi:
https://circleci.com/docs/docker#docker-exec
We indeed get "Unsupported: Exec is not supported by the lxc
driver" with CircleCi, when using "docker exec".
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-10 20:19:23 +01:00
Jeromy Johnson
4ba3a754ae
Merge pull request #2147 from ipfs/reenable-ipns-test
...
reenable ipns sharness test now that iptb is fixed
2016-01-02 12:39:33 +01:00
Jeromy
ba33de36e3
reenable ipns sharness test now that iptb is fixed
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-01 19:38:18 -08:00
Jeromy
543f527bca
fix typos in quick start doc
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-01 18:15:29 -08:00
Lars Gierth
711b95ed3b
ci: remove dead jenkins code
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-01-01 15:11:32 -08:00
Jeromy
7fe0dadcd9
add a test
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-12-30 11:08:09 -08:00
Jeromy
de702ead33
add sharness test to verify requests look good
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-12-28 05:01:06 -08:00
Jeromy
d207e8b87c
disable auto repo gc tests temporarily
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-12-27 14:55:19 -08:00
Christian Couder
57c4188a98
test/supernode_client/main: fix t.Fatal in a goroutine
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-12-14 22:31:57 +01:00
Juan Benet
4397adf51c
Merge pull request #2041 from ipfs/t0080-osx-fix
...
t0080 improvements
2015-12-12 04:31:18 -05:00
Juan Benet
0f39687fb6
Merge pull request #2019 from ipfs/Dignifiedquire-fix/access-controll-headers
...
Dignifiedquire fix/access controll headers
2015-12-09 00:55:06 -08:00
Christian Couder
0d7ef453f8
t0080: improve 'ipfs refs --unique' test
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-12-05 08:45:35 +01:00
Christian Couder
715e0c915e
t0080: improve last tests
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-12-05 08:20:27 +01:00
Christian Couder
5721a1050c
t0020: cleanup dir with bad perms
...
This is needed on OSX otherwise the trash directory for the
t0020-init.sh test fails to be removed due to a permissions
error.
This fixes https://github.com/ipfs/go-ipfs/issues/2026
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-12-05 07:36:53 +01:00
Lars Gierth
dcc9a63a34
assets: fix gc example
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-12-03 03:25:28 +01:00
Juan Benet
1c53aea2d2
Merge pull request #2000 from nham/object_put_newline
...
Add newline to end of `ipfs object put` text output.
2015-12-02 03:40:27 -08:00
Jeromy
891a8d7656
no newlines in json objects
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-30 15:23:48 -08:00
Nick Hamann
d49a15f566
Add newline to end of the output for a few commands.
...
Commands affected:
- ipfs object put
- ipfs tar add
- ipfs resolve
- ipfs name resolve
License: MIT
Signed-off-by: Nick Hamann <nick@wabbo.org>
2015-11-29 11:50:48 -06:00
dignifiedquire
e09c397aba
Try to fix tests
...
License: MIT
Signed-off-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
2015-11-25 20:11:20 +01:00
rht
54a9891822
Add gc auto test
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-11-15 18:50:51 +07:00
rht
48a33ffb67
Add fixed period repo GC + test
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-11-10 14:03:29 +07:00
Jeromy
94bdce63a7
vendor logging lib update
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-05 15:57:21 -08:00
Jeromy
0d35cc9aea
set data and links nil if not present
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-02 23:38:36 -08:00
Jeromy
c7fb7ce17d
cache ipns entries to speed things up a little
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-02 12:53:08 -08:00
rht
31115f51a0
Allow ipfs cat on ipns path
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-31 15:55:47 +07:00
Juan Benet
f703b2c375
Merge pull request #1886 from ipfs/fix/ThatPut
...
fixing putHandler
2015-10-31 01:03:33 -04:00
Henry
c1847e9f69
putHandler: addressed CR from @jbenet
...
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-10-31 01:37:37 +01:00
Juan Benet
a93dbf6d01
Merge pull request #1913 from ipfs/test-ipfs-config
...
t0021: test 'ipfs config show'
2015-10-30 17:06:33 -04:00
Juan Benet
933b973394
Merge pull request #1912 from ipfs/t0220-bitswap-stat
...
t0220: add 'ipfs bitswap stat' tests
2015-10-30 17:06:25 -04:00
Juan Benet
d82ff148e5
Merge pull request #1847 from ipfs/sharness-coverage-script
...
Sharness coverage script
2015-10-30 17:04:37 -04:00
Christian Couder
bbe95b8ad4
t0021: test 'ipfs config show'
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-29 16:26:52 +01:00
Christian Couder
3e57460c87
t0220: show breakage with ipfs bitswap wantlist -p
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-29 15:37:58 +01:00
Christian Couder
1c279b936e
t0220: add 'ipfs bitswap stat' tests
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-29 15:07:46 +01:00
Henry
b8b4e45665
fixing putHandler for --writable http gateway
...
I disabled this a long time ago and never refactored it. About time.
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-10-28 08:11:56 +01:00
Jeromy
c023d187b5
update code to use new logging changes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-27 11:04:56 -07:00
Juan Benet
4022d8b8bd
Merge pull request #1885 from ipfs/fix/ndjson
...
put newlines between streaming json output objects
2015-10-27 06:24:02 -04:00
Juan Benet
fff95d6fff
Merge pull request #1856 from ipfs/fix/id-self
...
allow ipfs id to work on self
2015-10-27 04:52:07 -04:00
Juan Benet
2963d2e169
Merge pull request #1871 from ipfs/test-commands-flags
...
t0010: add tests for 'ipfs commands --flags'
2015-10-27 04:47:46 -04:00
Jeromy
f130869b45
put newlines between streaming json output objects
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-25 22:38:38 -07:00
Christian Couder
d5da16faf6
test/Makefile: add coverage target
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 12:34:40 +02:00
Christian Couder
891b4c569e
coverage_helper: better group long and short options
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 11:22:53 +02:00
Christian Couder
c321f0626a
coverage_helper: use 'ipfs commands --flags'
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 09:15:15 +02:00
Christian Couder
e1ef4d6f54
coverage_helper: log found commands
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 06:49:33 +02:00
Christian Couder
292ef427d0
coverage_helper: refactor matching commands
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 06:49:33 +02:00
Christian Couder
46394ce452
coverage_helper: exclude variables definitions
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 06:49:33 +02:00
Christian Couder
6291662b89
coverage_helper: output a result
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 06:49:33 +02:00
Christian Couder
06c3a21c94
coverage_helper: match commands from both sources
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 06:49:33 +02:00
Christian Couder
33c6df6827
coverage_helper: get commands from 'ipfs commands'
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 06:49:33 +02:00
Christian Couder
5e3d3895f5
coverage_helper: refactor egreps
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 06:49:33 +02:00
Christian Couder
106b841398
coverage_helper: remove grep commands
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 06:49:33 +02:00
Christian Couder
5abf294cf7
coverage_helper: remove .ipfs
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 06:49:33 +02:00
Christian Couder
741c0e5e50
coverage_helper: remove more cruft
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 06:49:33 +02:00
Christian Couder
97a80e93ae
Add first version of sharness_test_coverage_helper.sh
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-24 06:49:33 +02:00
Jeromy
5dc2c7e010
add sharness test for streaming output from daemon
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-21 15:01:51 -07:00
Juan Benet
a79a9e7759
Merge pull request #1868 from ipfs/t0060-alternative-nc-fix
...
t0060: fail if no nc
2015-10-20 12:24:39 -07:00
Christian Couder
8a3bf95365
t0010: add tests for 'ipfs commands --flags'
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-20 14:57:54 +02:00
Christian Couder
c424b4d5ad
t0060: fail if no nc
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-20 10:00:56 +02:00
Jeromy
71288160b1
add small test to ensure ipfs id <self> works
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-19 22:07:39 -07:00
Lars Gierth
a872199714
config: update pluto's peerID
...
We lost its private key a while ago...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-10-19 21:04:42 +02:00
Jeromy
1cef170243
add small sharness test to make sure output happens
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-18 19:50:15 -07:00
Christian Couder
e5031788fd
t00{1,6}0: remove some useless cats
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-16 21:54:47 +02:00
Christian Couder
51d05fb8dc
t0010: test 'ipfs commands' and 'ipfs * --help'
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-16 21:54:47 +02:00
Juan Benet
d6297c7498
Merge pull request #1823 from ForrestWeston/recurPin
...
Pin commands default to recursive
2015-10-16 08:43:25 -07:00
Juan Benet
751c69ee70
Merge pull request #1621 from ipfs/real-trailers
...
use go's built in handling of trailers and dont do custom chunking
2015-10-14 17:02:46 +08:00
ForrestWeston
01239147b7
changed pinning to be recursive by default
...
pin add, pin rm, and pin ls will be recursive unless
specified with '=false' eg. 'ipfs pin add -r=false <file>'
tests for pinning have been updated/added
License: MIT
Signed-off-by: ForrestWeston <Forrest.Weston@gmail.com>
2015-10-13 17:11:05 -07:00
Matt Bell
04482cbe41
Consolidated 'resolve' tests
...
License: MIT
Signed-off-by: Matt Bell <mappum@gmail.com>
2015-10-13 16:51:44 +07:00
Juan Batiz-Benet
dd8267b9e0
resolve sharness test
...
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-10-13 13:11:41 +07:00
Matt Bell
16e29dae77
sharness: Added tests for 'ipfs resolve'
...
License: MIT
Signed-off-by: Matt Bell <mappum@gmail.com>
2015-10-13 13:11:41 +07:00
Jeromy
e89f7b8ded
use go's built in handling of trailers and dont do custom chunking
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
use go1.5 syntax to ensure builds on older versions fail
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
fix t0230
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-11 23:04:41 -07:00
Jeromy
c6f93380fc
fix random bitswap hangs
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-11 22:10:19 -07:00
Jeromy
4ace45d930
vendor in new iptb code (and as a result, go-multiaddr-net and friends
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-11 22:10:16 -07:00
Forrest Weston
6e2435211f
Added an xml decoder, Fixes #1612
...
License: MIT
Signed-off-by: Forrest Weston <forrest.weston@gmail.com>
2015-10-09 12:05:48 -07:00
rht
6ae0973e1f
Add context to coreunix.Cat argument
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-04 23:10:43 +07:00
Christian Couder
e499ee4470
sharness: swap test_*cmp arguments
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-04 11:39:22 +02:00
Christian Couder
bf8adc6c69
t0044: fail when 'ipfs add' fails
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-04 11:39:22 +02:00
Christian Couder
7b81e4e885
t0220: use test_must_be_empty()
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-04 11:39:22 +02:00
Christian Couder
93aa8d0fb3
t0220: check if 'ipfs bitswap' fails
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-04 11:39:22 +02:00
Juan Benet
d4938c9b0c
Merge pull request #1777 from rht/test/add
...
Add trickle and chunker test
2015-10-03 19:40:31 -04:00
Juan Benet
979bcc8108
Merge pull request #1772 from ipfs/shell-quote
...
Shell quote
2015-10-03 19:34:43 -04:00
Juan Benet
d4ca23d349
Merge pull request #1785 from ipfs/improve-t0100
...
t0100: swap test_cmp arguments
2015-10-03 19:34:16 -04:00
Juan Benet
3e8f7bd3ff
Merge pull request #1786 from ipfs/improve-t0120
...
Improve t0120
2015-10-03 19:34:09 -04:00
Christian Couder
69c2340e06
t0120: add missing &&
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-04 00:08:16 +02:00
Christian Couder
9b316e8c66
t0120: swap test_cmp arguments
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-04 00:06:17 +02:00
Christian Couder
3c3a9c974a
t0100: swap test_cmp arguments
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-04 00:02:17 +02:00
Juan Benet
47a353de6a
Merge pull request #1781 from ipfs/improve-t0240
...
Improve t0240
2015-10-03 18:00:22 -04:00
Juan Benet
513b75a889
Merge pull request #1783 from ipfs/improve-t0051
...
t0051: swap test_cmp arguments
2015-10-03 17:58:50 -04:00
Juan Benet
3eea954a78
Merge pull request #1784 from ipfs/improve-t0081
...
t0081: swap test_cmp arguments
2015-10-03 17:58:31 -04:00
Christian Couder
5686762055
t0081: swap test_cmp arguments
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 23:49:01 +02:00
Christian Couder
088aa1a623
ipfs-test-lib: clarify and simplify shellquote()
...
Let's first add a comment to explain why the wrapper printf()
is needed.
Then let's replace the last instructions by quotes inside the
wrapper printf() first argument, and let's also put there the
eventual space so that we can remove the printf on the above
line.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 23:35:44 +02:00
Jeromy
8f0623255d
replace imports with absolute path instead of using symlink
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-03 14:30:50 -07:00
Christian Couder
8f102d2cbd
t0051: swap test_cmp arguments
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 23:26:20 +02:00
Christian Couder
880f378932
t0240: swap 'resolve' and 'expected'
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 22:46:10 +02:00
Christian Couder
0f7f0495a6
t0240: use test_seq instead of seq
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 22:42:41 +02:00
Christian Couder
e6890e1b63
t0240: improve ipfsi()
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 22:33:12 +02:00
Christian Couder
4cab9fe37e
ipfs-test-lib: fix shellquote() on Mac OS
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 16:06:40 +02:00
Christian Couder
d352b0421b
Add t0015-basic-sh-functions.sh
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 12:27:01 +02:00
rht
32d9bd76f3
sharness: add trickle and chunker test
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-03 09:03:09 +07:00
rht
220b9d22ae
Move test add cat offline into t0040
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-03 08:48:22 +07:00
Jeromy
e5512b4115
make publish more configurable and add test for repub
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 11:03:44 -07:00
Jeromy
e202c6592f
vendor in iptb and kingpin
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 11:03:02 -07:00
Jeromy
815a031f59
Implement ipns republisher
...
This commit adds a very basic process that will periodically go through
a list of given ids and republish the values for their ipns entries.
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:47 -07:00
Christian Couder
1bd182055b
ipfs-test-lib: add shellquote()
...
This function can be usefull in many places.
See for example:
https://github.com/ipfs/go-ipfs/pull/1742
Git has `git rev-parse --sq-quote` that does the same thing.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-09-27 09:11:25 +02:00
Juan Benet
08e06764c8
Merge pull request #1742 from ipfs/test/gz
...
Sharness: add test for compression level
2015-09-26 18:36:36 -04:00
Cayman Nava
9634b25b63
remove hard-coded json content-type for streaming http output
...
There was a stale assumption that streaming output from a channel would
always be json.
This commit removes that code, allowing Content-Type to appropriately be
set like other, non-channel-streaming commands.
License: MIT
Signed-off-by: Cayman Nava <caymannava@gmail.com>
2015-09-24 19:13:29 -07:00
rht
43dbd1cdb9
Sharness: add test for compression level
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-23 19:08:26 +07:00
Juan Benet
46e888bdfc
Merge pull request #1701 from ipfs/feat/extract-logging
...
extract logging
2015-09-15 13:05:31 -04:00
Juan Benet
df861afccc
Merge pull request #1672 from ipfs/feat/unwant
...
implement unwant command to remove blocks from wantlist
2015-09-15 00:57:57 -04:00
Jeromy
e5a2896c0e
extract logging
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-14 17:35:50 -07:00
Jeromy
6c02259a5f
add a basic test for unwant
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-14 15:26:09 -07:00
rht
23dd82f549
Fix t0090 tar&gz unexpected EOF error
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-14 01:23:54 +07:00
Christian Couder
6e59b39b74
test-lib: improve test_check_peerid
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-09-12 19:27:55 +02:00
Christian Couder
e22cbcec27
t0100: add peerid check
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-09-12 19:16:54 +02:00
Christian Couder
bec8224a0e
t0062: add peerid check
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-09-12 19:14:34 +02:00
Christian Couder
9563cb29d9
t0110: add peerid check
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-09-12 19:10:18 +02:00
Christian Couder
0aa59368e4
t0060: simplify peerid check
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-09-12 19:06:50 +02:00
Christian Couder
5c118a20d7
sharness: generalize test_check_peerid()
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-09-12 19:00:26 +02:00
Jeromy
7496df76d2
vendor binary deps in test/dependencies
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-10 18:09:12 -07:00
Jeromy
533a729949
add sharness test for tar commands
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-10 17:11:35 -07:00
Juan Benet
408bea3797
Merge pull request #1641 from rht/namedpipe
...
Serialfile: Explicit err on unrecognized file type
2015-09-05 03:19:54 +02:00
rht
8ec121239e
Bump version of dir-index-html
...
Based on https://github.com/ipfs/go-ipfs/pull/1615
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-05 01:06:35 +07:00
rht
1b26ca724f
Add test for ipfs add err for unsupported file type
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-04 18:04:56 +07:00
Jeromy
ab0c668ab8
fix panic caused by accessing config after repo closed
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-03 09:28:36 -07:00
Juan Benet
dfa27c0c5a
Merge pull request #1623 from rht/fix-check-api-test
...
Fix and refactor daemon api test
2015-09-02 22:42:09 +02:00
Juan Benet
a3f0a6eb73
Merge pull request #1625 from ipfs/check-peerid
...
t0020: simplify peerid check
2015-09-02 22:41:13 +02:00
Juan Benet
5ff766bea9
Merge pull request #1626 from ipfs/t0062-cleanup
...
t0062 cleanup
2015-09-02 22:40:10 +02:00
Jeromy
a4e72871fa
add tests for symlinks
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-02 12:59:09 -07:00
Christian Couder
dc68ae76e3
t0020: simplify peerid check
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-30 18:23:03 +02:00
Christian Couder
3562e72d8e
t0062: add missing && in test_client*()
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-29 22:30:37 +02:00
Christian Couder
cbeff099a2
t0062: check that 'ipfs config' works
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-29 22:28:58 +02:00
Christian Couder
fe742050ac
t0062: use "$@" directly
...
This avoids potential quoting problems.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-29 22:23:55 +02:00
rht
1198564ca3
Fix and refactor daemon api test
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-29 22:10:58 +07:00
Juan Benet
8c652907de
Merge pull request #1598 from ipfs/check-for-api
...
check for API -- WIP
2015-08-29 06:20:59 +02:00
Juan Batiz-Benet
8c547ff7b8
t0062-daemon-api.sh tabs
...
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-29 06:13:50 +02:00
Juan Batiz-Benet
b883381b63
improved t0062-daemon-api.sh tests
...
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-29 06:12:12 +02:00
Juan Benet
9f253dfa7a
Merge pull request #1592 from prusnak/empty-repo
...
Add --empty-repo option for init (#1559 )
2015-08-28 14:13:09 +02:00
rht
be96d8d7d5
Fix test cases for ipfs api check
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-28 13:20:13 +07:00
Christian Couder
e1d8200ffb
test-lib: use all the test_launch_ipfs_daemon() arguments
...
It is simpler and less error prone to just pass to `ipfs daemon`
all the arguments that are passed to test_launch_ipfs_daemon().
Maybe the arguments should be shell quoted too, but that's
another issue.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-28 05:17:27 +02:00
Jeromy
94000e6490
replace nodebuilder with a nicer interface
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
use NewNode instead of NewIPFSNode in most of the codebase
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
make mocknet work with node constructor better
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
finish cleanup of old construction method
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
blockservice.New doesnt return an error anymore
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
break up node construction into separate function
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
add error case to default filling on node constructor
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-27 08:43:10 -07:00
rht
dd265b7f03
Add test cases for ipfs api check
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-27 18:30:28 +07:00
Christian Couder
872daf8357
t0020: add test for --empty-repo
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-25 21:26:06 +02:00
Juan Benet
0f9065963f
Merge pull request #1599 from ipfs/binary-data-and-json
...
Binary data and json test
2015-08-25 16:18:31 +02:00
Christian Couder
5cced6f21a
t0051: check json i/o
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-24 23:13:55 +02:00
Christian Couder
e4a0a3bfcb
t0051: add UTF-8 test file
...
This new file comes from:
https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt
It is licensed under CC BY 4.0.
After discussing that with its author, I think it is ok to
add it as is to our repository. The only restriction might
be that we should indicate in the file any change we make
to it.
License: CC BY 4.0
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-24 23:05:48 +02:00
Juan Benet
a052087974
Merge pull request #1569 from rht/daemon-msg
...
Notify when daemon is ready
2015-08-23 05:11:27 +02:00
Christian Couder
dd6fe10f02
t0042: fix test indentation
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-21 20:29:18 +02:00
rht
90b6490a35
Add test for readonly gateway api sanitation
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-17 15:07:31 +07:00
Karthik Bala
d140b8aae1
Add router that does nothing for bitswap_wo_routing test
...
License: MIT
Signed-off-by: Karthik Bala <karthikbala444@gmail.com>
2015-08-16 16:42:08 -07:00
rht
dd99a70a7d
Add readonly api to gateway
...
Based on https://github.com/ipfs/go-ipfs/pull/1389
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-15 17:08:59 +07:00
Stephan Seidt
afbdedb469
config set: test setting with null & not-defined parent
...
This adds a failing for the case described in #1561
License: MIT
Signed-off-by: Stephan Seidt <evilhackerdude@gmail.com>
2015-08-13 19:41:41 +07:00
rht
35ab1e347b
Notify when daemon is ready
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-13 09:51:52 +07:00
Juan Batiz-Benet
978c9fa16f
cmds/add: use dagutils.Editor, like patch
...
This changes the pin behavior. It uses the filenames given through
the api, and allows files to be streamed faltly (not a hierarchy),
which is easier for other things (like vinyl in node-ipfs-api land).
Files can also be entirely out of order, and the garbage intermediate
directories will not be pinned (gc-ed later).
The changes also mean the output of add has changed slightly-- it
no longer shows the local path added, but rather the dag path
relative to the added roots. This is a small difference, but changes
tests.
The dagutils.Editor creates a lot of chaff (intermediate objects)
along the way. Wonder how we might minimize the writes to the
datastore...
This commit also removes the "NilRepo()" part of the --only-hash
mode. We need to store at least in an in-mem repo/datastore because
otherwise the dagutils.Editor breaks.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-12 08:24:06 +02:00
Juan Batiz-Benet
f105ce439f
get: fix bug + improvements
...
up until now there has been a very annoying bug with get, we would
get halting behavior. I'm not 100% sure this commit fixes it,
but it should. It certainly fixes others found in the process of
digging into the get / tar extractor code. (wish we could repro
the bug reliably enough to make a test case).
This is a much cleaner tar writer. the ad-hoc, error-prone synch
for the tar reader is gone (with i believe was incorrect). it is
replaced with a simple pipe and bufio. The tar logic is now in
tar.Writer, which writes unixfs dag nodes into a tar archive (no
need for synch here). And get's reader is constructed with DagArchive
which sets up the pipe + bufio.
NOTE: this commit also changes this behavior of `get`:
When retrieving a single file, if the file exists, get would fail.
this emulated the behavior of wget by default, which (without opts)
does not overwrite if the file is there. This change makes get
fail if the file is available locally. This seems more intuitive to
me as expected from a unix tool-- though perhaps it should be
discussed more before adopting.
Everything seems to work fine, and i have not been able to reproduce
the get halt bug.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-05 09:50:33 +02:00
Juan Batiz-Benet
741cf7e793
sharness/t009-get: fix space/tabs
...
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-05 09:47:58 +02:00
Juan Batiz-Benet
b858928662
unixfs/tar: cleaned up reader code
...
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-05 09:46:58 +02:00
Juan Batiz-Benet
5f59556ff9
add -w comprehensive tests
...
made many more tests for ipfs add -w
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-29 04:08:08 -07:00
Juan Batiz-Benet
431d6a5a14
added random-files tool for testing
...
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-29 03:18:24 -07:00
Juan Batiz-Benet
6e6badf105
add -w: fix to work correctly with dirs.
...
this commit changes the behavior of ipfs add -w:
- it makes it able to work with ipfs add -r <dir>
- instead of hacking around the add, we simply just add a wrapper
directory around the whole result of the add. this means that
ipfs add -w calls will output _two_ lines, but this is actually
more correct than outputting one line, as two objects were added.
this _may_ break scripts out there which expect the output to
look a certain way. we should consider whether the old output is
more _useful_ (even if less in-line with the model.)
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-29 02:30:08 -07:00
Jeromy
314f7bbfea
space out sharness test calls
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
194eb7c0dc
more tests and better path handling in object
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
bfe4e4be4f
let rm understand paths
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Jeromy
870df2431a
allow patch to optionally create intermediate dirs
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-28 15:00:07 -07:00
Shaun Bruce
c175700dea
Better error message on unrecognized command
...
Closes issue #1436
License: MIT
Signed-off-by: Shaun Bruce <shaun.m.bruce@gmail.com>
2015-07-28 09:20:53 -06:00
Juan Batiz-Benet
490ed41c45
sharness/ipfs refs bigger tests
...
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-28 06:14:20 -07:00
gatesvp
8fe7d2f571
Fix refs -r -u for #1211
...
License: MIT
Signed-off-by: Gaetan Voyer-Perrault <gatesvp@gmail.com>
2015-07-28 06:14:20 -07:00
Juan Batiz-Benet
a5521fcc76
sharness/repo: fix pinning test
...
looks like the test was broken by GC-ing everything.
the pin expects $HASH to still be there.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-28 06:14:13 -07:00
rht
eb45082103
Add reversible gc test
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-28 09:47:15 +07:00
Jeromy
138198e786
print output on test failure for t0081
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-27 18:34:37 -07:00
Jeromy
bb3a75aa08
remove context from context
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 20:53:06 -07:00
Jeromy
f9f3c6a527
make offline commands respect timeout
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 14:34:16 -07:00
Jeromy
5711eb8cd9
better test of failure case
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 13:28:22 -07:00
Jeromy
4cce6f8adf
add sharness test to check object stat with no leading /ipfs/
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 12:28:38 -07:00
gatesvp
e55a130b49
Add hidden file support to add
...
License: MIT
Signed-off-by: Gaetan Voyer-Perrault <gatesvp@gmail.com>
2015-07-09 04:07:34 -07:00
Henry
1b16712b5a
assets: seed gateway index assets on 'ipfs init'
...
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
t0080-repo.sh: added gateway assets to pinning tests
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-07-04 01:47:07 +02:00
Henry
358d04c606
sharness/t0110-gateway: add simple 404 check for non existent file
...
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-07-04 00:51:42 +02:00
Juan Batiz-Benet
8143d381c1
Merge pull request #1441 from rht/path-validate
...
Remove redundant path validation
2015-07-03 15:23:17 -07:00
rht
44245fe015
Add test to detect invalid path
...
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-04 02:50:15 +07:00
Henry
624c6e8fe5
assets: fix typo
...
closes #1343
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-07-03 10:59:08 +02:00
Henry
5fbf1e7416
assets: switch to go-bindata
...
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-07-03 09:52:08 +02:00
Juan Batiz-Benet
c595cf8ae0
config: DialBlocklist -> Swarm.AddrFilters
...
This commit changes the DialBlocklist key to be under the key
Swarm.AddrFilters instead.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-02 16:11:46 -07:00
Juan Batiz-Benet
a119b72243
t0141-addfilter: check init has no filters
...
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-02 16:10:30 -07:00
Jeromy
57d7a443a0
test dialblocklist loading from config
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-02 13:38:15 -07:00