Commit Graph

1305 Commits

Author SHA1 Message Date
vyzo
42a9cdcbfb fix gossipsub test initialization
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-08-15 10:02:32 -07:00
vyzo
884df03320 gossipsub sharness test
just a copy of t0180-pubsub with gossipsub enabled for now

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-08-15 10:02:32 -07:00
vyzo
e002de9571 update go-ipfs-config
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2018-08-15 10:02:32 -07:00
Steven Allen
2450ddde81 gx: update go-cid
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-15 08:30:22 -07:00
Steven Allen
0e5ed59400
Merge pull request #5364 from ipfs/fix/1515
add correct test for 1515
2018-08-13 17:01:58 +00:00
Kevin Atkinson
075ecb09d0 Gx updates and fixes to use new cid.Builder interface.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-12 19:15:07 -04:00
Steven Allen
c1e10dbc4e add correct test for 1515
When checking to see if GC fully reverses an `ipfs add`, we should check the
size of the actual files, not the directory sizes. A bunch of empty directories
won't use *that* much space and really shouldn't count against GC.

closes #1515

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-11 09:53:52 -07:00
Łukasz Magiera
838a30cd22 gx: Update config
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 12:39:55 +02:00
Łukasz Magiera
d52091fa55 Update iptb
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 10:57:31 +02:00
Łukasz Magiera
b65cf84a34 repo: move version.go back here
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-08-09 10:51:15 +02:00
Steven Allen
594d95af5d update gogo-protobuf
fixes #3214

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-08 18:56:13 -07:00
Kevin Atkinson
e7ca9554d0 Add ability to retrieve blocks even if given using a different CID version.
This is done via a wrapper blockstore.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-06 22:12:40 -04:00
Whyrusleeping
ba3f8fc6e9
Merge pull request #5329 from grokcoder/fix/dht_findprovs_error
fix: dht findprovs unable to handle /ipfs/hash #5311
2018-08-05 10:56:55 -07:00
Xiaoyi Wang
664d881b89 fix: dht findprovs unable to handle /ipfs/hash
License: MIT
Signed-off-by: Xiaoyi Wang <wangxiaoyi@hyperchain.cn>
2018-08-02 11:24:15 +08:00
Steven Allen
00158c4b92 wait for all connections to close before exiting on shutdown.
Using httpServer.Shutdown will:

1. Close the listener (preventing new connections).
2. Close each connection as outstanding requests finish.

This prevent us from shutting down before outstanding requests get a chance to
respond.

fixes #4055

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-31 13:07:19 -07:00
Steven Allen
7705240997
Merge pull request #5315 from ipfs/fix/5272
wait for the nodes to fully stop
2018-07-31 01:25:31 +00:00
Steven Allen
abad8ca76e wait for the nodes to fully stop
Ideally, we'd fix this in IPTB but I'm tired of this bug and this is the easy
fix.

fixes #5272

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-30 16:21:25 -07:00
Steven Allen
e25383e49e make faulty tests always pass
see: https://github.com/ipfs/go-ipfs/issues/4055

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-30 16:21:22 -07:00
Steven Allen
848a923c99 fix private network tests
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-30 15:59:31 -07:00
Steven Allen
ca1024a16a sharness: remove extraneous iptb stop
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-30 15:59:31 -07:00
Steven Allen
e51588ee77 test pin update
tests #4999 and #5264

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-30 00:13:05 -07:00
Kevin Atkinson
1e7b2559e4 Include cid-fmt binary in test/bin.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-28 02:28:27 -04:00
Whyrusleeping
eb59a62736
Merge pull request #5268 from ipfs/gx/update-deps
gx update deps
2018-07-23 17:17:13 -07:00
Whyrusleeping
42156532e4
Merge pull request #5271 from ipfs/fix/5270
Fix resolving links in sharded directories on gateway
2018-07-23 12:53:42 -07:00
Steven Allen
53235242a1 gx update deps
Updates:

* go-net
* go-text
* dns
* prometheus
* protobuf (golang, not gogo)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-23 11:49:43 -07:00
Łukasz Magiera
a11c5d27e1 path: gateway test for sharded dirs
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-07-21 15:15:40 +02:00
Kevin Atkinson
c8613b4300 Add initial support for identity hashes.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-19 18:09:52 -04:00
Whyrusleeping
1dede1b1d7
Merge pull request #5219 from schomatis/fix/mfs/remove-sort
mfs: remove `sort` from `ListNames()`
2018-07-19 14:29:11 -05:00
Lucas Molas
65a18ed669 unixfs: fix dagTruncate to preserve node type
Extract the original `FSNode` passed inside the `ipld.Node` argument and modify
its `Blocksizes` (removing all of them and re-adding the ones that were not
truncated). In contrast, the replaced code was creating a new `FSNode` that was
not preserving some of the features of the original one.

Change `TRUNC_HASH` values in `sharness` that were created with the bug to the
correct values.

License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-18 13:07:21 -03:00
Whyrusleeping
454a170032
Merge pull request #5245 from ipfs/fix/5241
add trickle-dag support to the urlstore
2018-07-18 10:39:10 -05:00
Steven Allen
9a9979b193 update go-cid
alternative to #5243 that updates go-cid and all packages that depend on it

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-16 15:16:49 -07:00
Steven Allen
4d4f343df7 check hashes in urlstore sharness tests
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-16 15:04:46 -07:00
Steven Allen
1358b28204 add sharness for trickle importer
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-16 15:04:45 -07:00
Whyrusleeping
bda81cd2d4
Merge pull request #5045 from schomatis/fix/cmd/files-ls-file-long
cmd: fix `files ls` to report hash and size for files
2018-07-16 16:52:13 +02:00
Whyrusleeping
07feeec9c4
Merge pull request #5010 from ipfs/feat/diskusage2
Efficient "repo stat" (DiskUsage) and "--size-only" flag
2018-07-16 16:50:41 +02:00
Whyrusleeping
4f1391f477
Merge pull request #5139 from achingbrain/feat/specify-object-data-encoding
feat: Allow specifing how object data is encoded
2018-07-16 16:49:31 +02:00
Lucas Molas
dfb81abf80 commands: files ls: sort output
Imitate Unix `ls` command, sort by default; disable with `-U` flag.

License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-16 09:58:55 -03:00
Kevin Atkinson
6a4b1262a5 Make sure you can't add URL's unless the url store is enabled.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:52 -04:00
Kevin Atkinson
0c2efb90d3 More test fixes.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:52 -04:00
Kevin Atkinson
b3457f240c Enhance tests.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:52 -04:00
Kevin Atkinson
90972095a9 Add test cases for urlstore.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-07-13 09:07:51 -04:00
Steven Allen
7df7d11199 fix dht commands when pubsub routing is enabled
Instead of checking if Routing is a DHT (because it can now be a tiered
router and still contain a DHT), stash the DHT in a separate field in the IPFS
node (same as we do with the PSRouter).

fixes #5197

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-09 09:58:44 +02:00
Hector Sanjuan
37d4989647 Sharness: add tests for ipfs repo stat --size-only
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-07-08 13:01:46 +02:00
Steven Allen
cb0ad0d6ce fix starting iptb nodes with additional arguments
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-06 23:33:12 -07:00
Steven Allen
667a9c8999 add test for sharness locking
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-07-05 14:33:01 -07:00
Lucas Molas
cbc239ce44 sharness: add files ls test (without -l)
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-02 17:17:46 -03:00
Lucas Molas
dfe64980ce cmd: fix files ls to report hash and size for files
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-07-02 17:17:43 -03:00
Steven Allen
780f110aad add test for /p2p addresses
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-26 17:11:40 -07:00
Steven Allen
3eba14aa24 gx update
Updates:

* go-kad-dht: Query performance improvements, DHT client fixes, validates
  records on *local* put.
* go-libp2p-swarm/go-libp2p-transport: Timeout improvements.
* go-multiaddr-net: Exposes useful Conn methods (CloseWrite, CloseRead, etc.)
* go-log: fixes possible panic when enabling/disabling events.
* go-multiaddr: fixes possible panic when stringifying malformed multiaddrs,
  adds support for consuming /p2p/ multiaddrs.

fixes #5113
unblocks #4895

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-26 17:11:33 -07:00
Steven Allen
384e2c40b2 add a failing test case for calling dht put with a bad key
see #5113

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-25 18:15:33 -07:00