Commit Graph

6900 Commits

Author SHA1 Message Date
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
Jakub Sztandera
a9054e1273 deps: update IPTB to 1.1.4 for fixed env var passing
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
Jeromy Johnson
56058c19f0 Merge pull request #3569 from ipfs/feat/libp2p-agent-vers
set the agent version based on version string
2017-01-07 02:45:12 -08: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
Jeromy Johnson
12d51a6f51 Merge pull request #3557 from ipfs/kevina/raw-leaves-ls-fix
Fix "ipfs ls" so it works correctly with raw leaves.
2017-01-04 12:54:46 -08: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 Johnson
defd1a17e5 Merge pull request #3554 from mateon1/fix/inconsistent-bw
Fix inconsistent `ipfs stats bw` formatting
2017-01-01 11:20:54 -08:00
mateon1
e1e57c8480 Fix inconsistent ipfs stat bw formatting
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
2017-01-01 18:56:34 +00: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
Jeromy Johnson
17699b2e5f Merge pull request #3519 from ipfs/fix/gateways/suborigins-off
gateway: disable Suborigins as it conflicts the spec
2016-12-21 11:20:20 -08:00
Jeromy Johnson
e2864627c7 Merge pull request #3521 from ipfs/feat/commands/no-option-desc
commands: fix opt.Description panic when desc was empty
2016-12-21 11:19:07 -08:00
Jeromy Johnson
41744ef95e Merge pull request #3526 from ipfs/fix/sharness/init-test
sharness: don't run go-ipfs instance with default config
2016-12-21 11:18:25 -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
Jeromy Johnson
8b6646310f Merge pull request #3513 from ipfs/fix/coreunix-add-docs
coreunix: fix Add() docs regarding pinning
2016-12-20 14:09:56 -08:00
Jakub Sztandera
591e82618e
commands: fix opt.Description panic when desc was empty
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-20 22:55:47 +01:00
Jeromy Johnson
a15360f349 Merge pull request #3517 from ipfs/fix/dag-get-accept-paths
dag/get: accept paths and not just cids
2016-12-20 11:14:38 -08:00
Jakub Sztandera
912a9720bd
gateway: remove Suborigins as it conflicts the spec
The Suborigins spec was changed and we have to adjust, the spec is still
unstable and it might change in future. Currently the only browser
supporting it (Chrome) errors out on it as it doesn't confront spec it
uses.

See https://github.com/ipfs/specs/issues/131

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-19 14:41:58 +01:00
Lars Gierth
71a03fe35d coreunix: fix Add() docs regarding pinning
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-18 01:09:23 +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
Jeromy
839adbf48d dag/get: accept paths and not just cids
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-17 12:38:51 -08:00
Jeromy Johnson
548490f558 Merge pull request #3516 from Zanadar/test/routing/offline
Test/routing/offline
2016-12-17 12:30:31 -08:00
Zander Mackie
834f22328c Testing the rest of the interface
License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2016-12-17 11:05:36 -05:00
Zander Mackie
058bfc3b54 Testutil to gen random CidV0
License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2016-12-17 11:05:36 -05: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
Zander Mackie
695c22a7d1 Tests for OfflineRouting storage and Retrieval
License: MIT
Signed-off-by: Zander Mackie <zmackie@gmail.com>
2016-12-16 07:14:55 -05:00
Jeromy Johnson
e2ba43c12d Merge pull request #3494 from ipfs/fix/gc-timeout
Remove GC timeout, fix GC tests
2016-12-15 20:15:49 -08:00
Jeromy Johnson
56bc19bae8 Merge pull request #3507 from ipfs/fix/pbnode-json
merkledag: fix json marshalling of pbnode
2016-12-15 16:41:43 -08:00
Jeromy Johnson
f6948bbec4 Merge pull request #3509 from ipfs/fix/namesys/dht-cache-panic
namesys: fix case where there is no cache
2016-12-15 16:41:15 -08:00
Jakub Sztandera
c1d5a60b66
namesys: add test for publish with cache size 0
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-15 22:05:23 +01:00
Jakub Sztandera
0864c8e20e
namesys: fix case where there is no cache
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-15 02:17:55 +01:00
Jeromy
7c8a8a81cf Add json unmarshal code and fix panic
A panic would occur when a link was created with a nil cid, this should
be allowable, just catch the potential problem and skip marshaling the
cid.

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-14 16:11:07 -08: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
9e8d108a8c Merge pull request #3499 from ipfs/dag-get-ro
dag get should be a read only command
2016-12-14 13:07:42 -08:00
Jeromy Johnson
a47d1b03b1 Merge pull request #3501 from ipfs/feat/namesys/publish-cache
namesys: add entry to DHT cache after publish
2016-12-14 13:00:40 -08:00
Jakub Sztandera
6a9009b8aa
namesys: fix TYPO, make constant constant
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-14 21:53:10 +01:00
Jeromy Johnson
edeffa558c Merge pull request #3502 from ipfs/deps/go-ds-measure
Update go-ds-measure to 1.1.0
2016-12-14 11:58:53 -08:00
Jakub Sztandera
2d37e60334
namesys: extract DefaultRecortTTL to a variable
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-14 20:50:04 +01:00
Jakub Sztandera
4016f40311
repo: remove nodeid from the metrics
It was there because old collector was using debug env to report metrics
and there keys have to very unique.

As we are reporting it now to prometheus it is better to have it under
the same key as we had before.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-14 20:45:50 +01:00
jbenet
bb85dd9815 dag get should be a read only command
added CmdDagGet to the read only command set.

tried to add a test, but dag get needs tests in general

License: MIT
Signed-off-by: Juan Batiz-Benet
2016-12-14 10:45:54 -08:00
Jakub Sztandera
ab48dee695
Update go-ds-measure to 1.1.0
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-13 22:26:40 +01:00
Jakub Sztandera
b558012d27
namesys: fix length of self resolve cache
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-13 20:58:10 +01:00
Jakub Sztandera
9fe9d9eb53
namesys: add entry to DHT cache after publish
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-13 20:38:05 +01:00
Lars Gierth
2836c64642 gc: remove unneccessary full repo scan
GetStorageUsage() is super expensive as it involves a full repo scan,
and it's already bad enough that we have do it once.

The call that's being removed here is purely for cosmetical purposes:
printing the number of bytes freed by the GC run. Let's drop it.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-13 14:50:01 +01:00