Commit Graph

1591 Commits

Author SHA1 Message Date
Steven Allen
0252710020 remove Godeps
fixes #2722

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-11 12:11:24 -07:00
Łukasz Magiera
a5e5b5be66 p2p: test custom protocol
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
87567645f4 p2p: test for double-registering listeners
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
5e8725dbde p2p: test to ensure closing right linsters
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
a3c84e20ef p2p: refactor review
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
f5ab137fc0 p2p: split forward into 2 commands
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
eb45436512 p2p: allow-custom-protocol option
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
c19102816f p2p: change the required prefix to /x/
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
df6decd31c p2p: don't automatically prefix proto with /p2p
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Łukasz Magiera
e8ba4fc01a p2p: fix sharness tests after refactor
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-11 04:57:40 +02:00
Steven Allen
a6e617f55c gx: update peerstore
Also:

* Updates go-floodsub to fix a data race.
* Updates golang-lru

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-07 23:40:08 -07:00
Kejie Zhang
9898ba9309 update test and do not overwrite in sharness test
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-07 00:37:56 +08:00
Kejie Zhang
76e8190a38 drop --name test file and update test case
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-06 23:58:55 +08:00
Kejie Zhang
ad27614a66 add sharness tests for --name option
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-09-06 16:08:19 +08:00
Steven Allen
21befd5f53 run the twonode test with QUIC enabled
No reason not to and it would have caught #5416

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-31 15:13:45 -07:00
Steven Allen
1b4972b4cf
Merge pull request #5350 from marten-seemann/feat/quic
add QUIC support
2018-08-31 20:43:45 +00:00
Steven Allen
46a1d9d39b gx update deps
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-31 10:29:26 -07:00
Marten Seemann
41806ccf35 add a QUIC twonode sharness test
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2018-08-31 13:31:22 +07:00
Marten Seemann
8193a76d7d add a QUIC sharness test
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2018-08-31 13:30:27 +07:00
Steven Allen
acfa02359d fix a test failure caused by eagerly killing nc
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-29 16:36:25 -07:00
Marten Seemann
1c57b1d287 update go-ipfs-config to version 0.2.5
License: MIT
Signed-off-by: Marten Seemann <martenseemann@gmail.com>
2018-08-29 08:58:40 +07:00
Hector Sanjuan
fe89e2e185 Add sharness tests for the refs -r command using --max-depth
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-08-27 20:34:52 +02:00
Steven Allen
93c4f19169
Merge pull request #5281 from ipfs/kevina/inline-cids
Add support for inlinling via the id-hash
2018-08-24 22:09:49 +00:00
Kevin Atkinson
7e3265a16d Change "--inline-limit" default to 32.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-24 16:06:54 -04:00
Steven Allen
4fb2666a24
Merge pull request #5372 from raulk/dns-resolution-api-endpoint
Run DNS lookup for --api endpoint provided in CLI
2018-08-23 03:51:14 +00:00
Steven Allen
0be1f5f755
Merge pull request #5359 from achingbrain/allow-files-write-to-create-parent-directories
Allow mfs files.write command to create parent directories
2018-08-23 03:34:22 +00:00
Kevin Atkinson
b0f90e3e84 Address code review.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-22 21:41:25 -04:00
Steven Allen
c89102a01c dns test: switch to localhost
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-22 18:18:30 -07:00
Raúl Kripalani
9a579499b2 add sharness test for DNS resolution on API CLI flag.
License: MIT
Signed-off-by: Raúl Kripalani <raul.kripalani@gmail.com>
2018-08-22 18:18:30 -07:00
Steven Allen
43f4147d25 fix the urlstore tests
1. GC the intentionally broken files so we don't reuse their blocks.
2. Make sure we actually check the *new* output file instead of an old one.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-22 17:14:56 -07:00
Kevin Atkinson
08c96ba073 Add support for inlining via the id-hash to the add command.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-08-21 21:56:49 -04:00
Steven Allen
aef8eec279 fix cid-fmt import path
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-21 17:47:14 -07:00
Steven Allen
656d7cc1a6 gx: update go-cid, go-libp2p-peer, go-ipfs-cmds, go-ipfs-cmdkit
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-08-21 17:39:56 -07:00
Steven Allen
fcc96a3ae7
Merge pull request #4177 from Voker57/feat/gw-filename-option
Set filename in Content-Disposition if filename=x is passed in URI query
2018-08-21 16:49:53 +00:00
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
achingbrain
c97c44e8a4 Allow mfs files.write command to create parent directories
Adds support for a `-p/--parents` flag to the `files.write` command
similar to the one supported by the `files.mkdir` command. If this
is true and the directory for the file is not `"/"`, try to create
the containing directory before writing to the file.

License: MIT
Signed-off-by: Alex Potsides <alex@achingbrain.net>
2018-08-14 07:59:36 +01: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
Steven Allen
6112150d04 fix dht sharness tests
We can't currently put binary values due to API limitations. This worked before
because the DHT wasn't checking values on local put.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-25 18:15:33 -07:00
achingbrain
3cdaea663c feat: Allow specifing how object data is encoded
Adds a --data-encoding flag to `ipfs object get` to let the user
specify base64 encoding for object data.

License: MIT
Signed-off-by: Alex Potsides <alex@achingbrain.net>
2018-06-19 16:37:45 +01:00
Whyrusleeping
aedc3217b5
Merge pull request #5107 from ipfs/fix/5102
improve swarm connect/disconnect commands
2018-06-13 15:29:02 +08:00
Whyrusleeping
92f3725fd7
Merge pull request #5069 from ipfs/feat/cat-iptb-logs
cat iptb logs on iptb failure (for debugging CI)
2018-06-13 15:27:12 +08:00
Whyrusleeping
1f3a5fe481
Merge pull request #4991 from ipfs/feat/git-plugin-default
plugin: preload git plugin by default
2018-06-13 15:26:27 +08:00
Steven Allen
98a1c44489 test swarm connect/disconnect
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-12 14:50:33 -07:00
Steven Allen
85acad9a01 gx update go-log, sys, go-crypto
* go-log
* sys
* go-crypto

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-08 22:36:24 -07:00
Whyrusleeping
65b8d70eca
Merge pull request #4693 from ipfs/kevina/fix-zero-raw-leaf
Create a raw node instead of a file node when there is no content.
2018-06-08 16:41:24 +08:00
Steven Allen
39f927aa04 update gx imports
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-05 23:55:08 -07:00
Steven Allen
c9c9986c9e update multiplexers
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-04 10:05:20 -07:00
Steven Allen
8f95badb12 cat iptb logs on iptb failure (for debugging CI)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-03 12:47:52 -07:00
Steven Allen
8293e20aae fix the repo verify test
We've added a new file to the flatfs datastore.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-06-01 23:39:32 -07:00
Steven Allen
916572f38d fix keystore tests for peer ID inlining patch
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-05-31 18:29:22 -07:00
Steven Allen
b4ed464ba5 remove extra newline from expected command output
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-05-31 18:29:22 -07:00
Steven Allen
1e9e2f453c update deps
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-05-31 17:59:17 -07:00
Kevin Atkinson
6ab1e71473 Avoid changing hash for empty non-raw leaves.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-05-31 04:27:34 -04:00
Kevin Atkinson
485a5e59e9 Create a raw node instead of a file node when there is no content.
This fixes things so when raw-leaves are enabled a zero size file creates
a zero size raw leaf.  When raw-leaves are not enabled the hash created
changes from QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH to
Qmdsf68UUYTSSx3i4GtDJfxzpAEZt7Mp23m3qa36LYMSiW, since the type field
changed from TFile to TRaw.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-05-31 04:05:30 -04:00
Whyrusleeping
2ba717994e
Merge pull request #4967 from PlayerWithoutName/fix/sharness-multinode-tree
fix: Reduce tree in multinode test
2018-05-24 17:35:31 +02:00
Whyrusleeping
75f295dd7a
Merge pull request #4966 from PlayerWithoutName/fix/sharness-connect-timeout
Fix: sharness iptb connect timeout
2018-05-12 12:46:28 +01:00
Whyrusleeping
36d819d018
Merge pull request #4959 from ipfs/feat/ci/times
ci: Collect test times for sharness
2018-05-12 12:45:04 +01:00
Łukasz Magiera
6696342ac7 plugin: fix failing t0280-plugin-git
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-05-01 18:47:48 +02:00
Kacper Łukawski
2d9285d36d fix: add timeout to iptb connect in sharness
License: MIT
Signed-off-by: Kacper Łukawski <kacluk98@gmail.com>
2018-04-23 20:22:05 +02:00
Xiaoyi Wang
be6920fe9b Add testcase for key rename command output
License: MIT
Signed-off-by: Xiaoyi Wang <wangxiaoyi@hyperchain.cn>
2018-04-23 22:33:31 +08:00
Kacper Łukawski
5ae57ef595 fix: reduced number of leafs in multinode test's file tree
License: MIT
Signed-off-by: Kacper Łukawski <kacluk98@gmail.com>
2018-04-22 19:07:28 +02:00
Łukasz Magiera
9b4296d9fd ci: Collect test times for sharness
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-21 22:40:03 +02:00
Jakub Sztandera
e5ff2c3de2 cidsec: add test for command closing right away
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-04-20 17:07:39 +02:00
Whyrusleeping
67a8cb04f1
Merge pull request #4530 from ipfs/feat/sharness-junit
sharness: Generate JUnit test reports
2018-04-20 23:41:50 +09:00
Whyrusleeping
c225c344e4
Merge pull request #4833 from ipfs/misc/remove-dead-code
misc: Remove some dead code
2018-04-20 23:39:55 +09:00
Whyrusleeping
076fd91e5f
Merge pull request #4835 from ipfs/fix/typos
misc: Fix a few typos
2018-04-20 23:35:58 +09:00
Łukasz Magiera
6b3915ba90 ci: run go vet, disable docker on jenkins
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-10 18:31:25 +02:00
Łukasz Magiera
3e41b15906 sharness: Don't escape colors in junit xml
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-10 18:31:25 +02:00
Łukasz Magiera
d25e82616e sharness/junit: Better test tree in jenkins
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-10 18:31:25 +02:00
Łukasz Magiera
d6fe0c195d ci: New Jenkinsfile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-10 18:31:25 +02:00
Łukasz Magiera
ea4a46250c sharness/junit: fixes after review
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-10 18:31:25 +02:00
Łukasz Magiera
b2b68c8214 sharness/junit: review
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-10 18:31:25 +02:00
Łukasz Magiera
83c57eda1f sharness: Fix tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-10 18:31:25 +02:00
Łukasz Magiera
3eb614fcb2 sharness: Generate JUnit test reports
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-10 18:31:25 +02:00
Łukasz Magiera
dd23bec97e profile: fix test profile tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-04-08 13:59:12 +02:00
Łukasz Magiera
b290286dd7 misc: Fix a few typos
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-30 09:47:22 +02:00
Steven Allen
ee6c95c22e test listing a sharded directory with a missing block.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-27 22:18:17 -07:00
Whyrusleeping
a98a4f40d3
Merge pull request #4873 from ipfs/fix/4871
make the tar writer handle sharded ipfs directories
2018-03-25 12:47:40 -07:00
Łukasz Magiera
af9b4af581 config: apply review to lowpower profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-24 16:11:42 +01:00
Łukasz Magiera
fae9967a03 init: lowpower profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-24 16:11:42 +01:00
Steven Allen
0dc984290c test ipfs get on sharded directory
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-23 16:24:57 -07:00
Whyrusleeping
8dbdb29576
Merge pull request #4849 from ipfs/no-dev-null-pipe
No dev null pipe
2018-03-23 09:41:04 -07:00
Whyrusleeping
4f601a0ec0
Merge pull request #4859 from ipfs/fix/govet
Fix go vet warnings
2018-03-23 09:10:43 -07:00
Christian Couder
8a2035eaa2 sharness/t0010: also check 'echo stuff | $cmd --help'
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2018-03-23 10:23:33 +01:00
Christian Couder
1bb3abafe2 sharness/t0010: don't pipe /dev/null into $cmd --help tests
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2018-03-23 10:21:11 +01:00
Whyrusleeping
550c6eb5bf
Merge pull request #4848 from ipfs/check-failure-with-bad-flag
sharness/t0010: check that all the commands fail when passed a bad flag
2018-03-22 23:35:23 -07:00
Whyrusleeping
6b180b2f7c
Merge pull request #4832 from ipfs/fix/bootstrap-cmd-prefix
Use prefix in bootstrapWritePeers
2018-03-22 23:32:47 -07:00
Whyrusleeping
b0ac2b8dac
Merge pull request #4816 from ipfs/fix/t0063-test-profile
Fix t0063-daemon-init.sh by adding test profile to daemon
2018-03-22 23:30:55 -07:00
Whyrusleeping
64944f57e9
Merge pull request #4767 from schomatis/fix/dag/diff
dag: diff: check CIDs in base case when comparing nodes
2018-03-22 23:19:53 -07:00
Whyrusleeping
59ad0f8c4b
Merge pull request #4755 from schomatis/fix/add/hash-only
add: hash-only: set the prefix for MFS root
2018-03-22 23:18:23 -07:00
Whyrusleeping
c44191e096
Merge pull request #4743 from schomatis/fix/unixfs/dagarchive-path
unixfs: clean path in DagArchive
2018-03-22 23:16:24 -07:00
Whyrusleeping
a9dfe410d2
Merge pull request #4563 from ipfs/fix/block-mhtype
commands/block: use CIDv1 with custom mhtype
2018-03-22 23:03:56 -07:00
Łukasz Magiera
221652fcfb fix govet warnings
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-22 17:31:22 +01:00
Łukasz Magiera
ae528640d9 misc: Remove some dead code
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-21 01:34:04 +01:00
Christian Couder
30039a78b2 sharness/t0010: quote error messages
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2018-03-20 22:22:45 +01:00
Christian Couder
3a00b7dca1 sharness/t0010: check that all the commands fail when passed a bad flag
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2018-03-20 22:16:35 +01:00
Steven Allen
781dfa1252 cleanup name publish argument tests
1. Don't bother testing the peer IDs. These commands won't ever use them.
2. Move the `--help` test out from in-between the missing argument tests.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-19 16:31:07 -07:00
Steven Allen
3bb59efade add sharness test for #4837
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-19 16:00:51 -07:00
Łukasz Magiera
ed54f58df7 use prefix in bootstrapWritePeers
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-19 01:36:51 +01:00
Steven Allen
4e9a6c7eab add regression test for #4823
for both online and offline mode (tests both the cli and the api)

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

Also:

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

fixes #4823

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-18 13:04:25 -07:00
Łukasz Magiera
6b67125139 Fix t0063-daemon-init.sh by adding test profile to daemon
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-15 01:06:54 +01:00
Jakub Sztandera
16dad7515b tar: fix Go 1.10 breakage
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-08 04:17:47 +01:00
Whyrusleeping
13887ff2c7
Merge pull request #4751 from ipfs/feat/safe-cid
Disallow usage of unsafe hashes for reading and adding content
2018-03-05 12:25:26 -08:00
Jeromy
dd40a5a2d5 fix pubsub pub reading stdin args
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-05 11:45:11 -08:00
Jakub Sztandera
60018d3ee8 cid_secuirty: add test for gc
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-05 19:38:25 +01:00
Lucas Molas
90acbfaae7 dag: diff: check CIDs in base case when comparing nodes
Fixes #4591.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This test fails when 54d7e03303 is reverted.

fixes #4408

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

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

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

namesys/pubsub: unit  test

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

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

namesys/pubsub: integrate namesys pubsub

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

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

namesys/pubsub: parallelize dht and pubsub publishing

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

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

namesys/pubsub: error checking

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

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

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

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

namesys/pubsub: pubsub sharness test

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

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

namesys/pubsub: update for new command interface

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

namesys/pubsub: fix sharness test for broken MacOS echo

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

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

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

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

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

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

fixes #3950

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

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

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

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

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

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

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

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

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

This fix:

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

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

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

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

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

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

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

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-19 11:46:55 -07:00
Quantomic
48dcd67dfe Add sharness test
License: MIT
Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
2017-07-17 20:48:16 +02:00
Jakub Sztandera
c0ee7d68fd
misc: small code style edit
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-16 10:26:34 +02:00
Jakub Sztandera
b5ea00e6b4
sharness: add debug output for TEST_NO_PLUGIN
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-14 13:23:14 +02:00
Łukasz Magiera
f947931af9 git: add git plugin tests
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-12 23:38:32 +02:00
Jakub Sztandera
2c71cf0fd7
test: add git plugin test stub
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 21:53:59 +02:00
Jakub Sztandera
d2cc708650
make(sharness): add plugins as part of sharness build
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 21:53:59 +02:00
Jakub Sztandera
285a4d8e10
test: add TEST_NO_PLUGIN and PLUGIN prereq
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 21:53:59 +02:00
Jeromy
cccc6a94a3 update go-multihash and bubble up changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-11 19:27:43 -07:00
Łukasz Magiera
962e1bbc45 Add test init profile
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-06 22:41:47 +02:00
Steven Allen
cc844ba3db sharness: fix the error message in the mount-publish test case
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-04 16:54:12 -07:00
Jeromy Johnson
ba9435d850 Merge pull request #4001 from ipfs/feat/profile
Implement --profile option in ipfs init
2017-07-04 15:16:22 -07:00