1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 01:12:24 +08:00

4662 Commits

Author SHA1 Message Date
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
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
5040fee906 implement support for --api option
This commit adds support for the --api option, which allows users
to specify an API endpoint to run the cli command against. It enables
much easier control of remote daemons.

It also
- ensures the API server version matches the API client
- implements support for the $IPFS_PATH/api file

Still TODO:
- tests!
- multiaddr to support /dns/

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-27 08:03:56 +02:00
7abebb1653 Merge pull request #1611 from ipfs/quick-fix/ipns-err
dont create ipnsfs filesystem until its needed
2015-08-27 02:51:36 +02:00
a97639a78a dont create ipnsfs filesystem until its needed
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-26 14:55:36 -07:00
0f9065963f Merge pull request #1599 from ipfs/binary-data-and-json
Binary data and json test
2015-08-25 16:18:31 +02:00
5301b33e3d Merge pull request #1609 from drathir/patch-1
Update README.md
2015-08-25 16:16:44 +02:00
a283db2328 Update README.md
Update the usage output to present one.
2015-08-25 15:38:03 +02:00
5cced6f21a t0051: check json i/o
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-24 23:13:55 +02:00
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
a965316f0e Merge pull request #1585 from rht/cleanup-context
Make sure ctx in commands are derived from req.Context
2015-08-24 10:33:38 +02:00
rht
de5c0ceff0 Localize the scope of context.WithCancel for every DAG.Get
Instead put it inside of DAG.Get.
The fix is applied only in the case when the context.WithCancel
before a DAG.Get is also used later on in the scope.

License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 22:38:04 +07:00
rht
ccd06e5b66 Fix ctx used in pub.Publish
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 21:31:21 +07:00
rht
dc2153574c Remove ctx timeout in unixfsNode GetChild
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 20:02:08 +07:00
rht
30e03b2da6 Replace context.TODO in test files with context.Background
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 19:55:45 +07:00
rht
fcf915fc47 Define discoveryConnTimeout and set it to 30s
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 19:37:23 +07:00
rht
a7202fa94c Fix 'ctx, _' to have explicit cancel
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 19:35:03 +07:00
rht
34e06f6c95 Wire a context down to (n *helpers.UnixfsNode) GetChild
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 19:35:03 +07:00
rht
5d8e15042f Replace WithTimeout with WithCancel whenever possible
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 19:35:03 +07:00
rht
d32177cda0 Make sure ctx in commands are derived from req.Context
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-23 19:35:03 +07:00
a052087974 Merge pull request #1569 from rht/daemon-msg
Notify when daemon is ready
2015-08-23 05:11:27 +02:00
11a66b3efd Merge pull request #1558 from rht/cleanup-get
Refactor ipfs get
2015-08-23 05:08:21 +02:00
27e6840613 Merge pull request #1596 from ipfs/fix-test-indent
t0042: fix test indentation
2015-08-22 01:19:28 +02:00
dd6fe10f02 t0042: fix test indentation
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-08-21 20:29:18 +02:00
4cef86298e Merge pull request #1595 from ipfs/hotfix-venodr
fix master: make vendor
2015-08-20 18:22:56 +02:00
941e0769ed fix master: make vendor
blame: @whyrusleeping on ed4274c9b75b513672fa674884a5df2cdb45276c

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-20 18:15:59 +02:00
rht
9f0c8134cb Decompose DagArchive from unixfs tar
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-20 14:56:07 +07:00
rht
dfa0351df9 Refactor ipfs get
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-20 14:56:07 +07:00
3dfe02aa95 Merge pull request #1577 from lgierth/gateway-host-header
gateway: make IPNSHostname work on responses too
2015-08-19 05:50:05 +02:00
d1dd53bde0 Merge pull request #1587 from rht/feat/read-only-api-gateway
Add test for readonly gateway api sanitation
2015-08-19 05:49:00 +02:00
0634f98da4 Merge pull request #1588 from ipfs/version-bump
bump development version
2015-08-19 02:22:56 +02:00
e9bedb1aef bump development version
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-18 15:45:14 -07:00
09d7501724 gateway: make IPNSHostname complete
IPNSHostnameOption() touches the URL path only on the way in,
but not on the way out. This commit makes it complete by
touching the following URLs in responses:

- Heading, file links, back links in directory listings
- Redirecting /foo to /foo/ if there's an index.html link
- Omit Suborigin header

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-08-17 15:39:19 +02:00
a3a10a4bc1 gateway: bring back TestGatewayGet test
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-08-17 15:27:13 +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
d07bf89988 Merge pull request #1563 from ipfs/dag-diff
implement a basic DAG diffing algorithm
2015-08-17 04:50:32 +02:00
49dab68bfc Merge pull request #1568 from ipfs/fix/dht-commands
use correct context for dht notifs
2015-08-17 04:38:05 +02:00
e10e711a19 Merge pull request #1583 from rht/feat/read-only-api-gateway
Readonly gateway API fix
2015-08-17 04:36:54 +02:00
ee54f87411 Merge pull request #1579 from heems/nonerouter
Add router that does nothing for bitswap_wo_routing test
2015-08-17 04:32:27 +02:00
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
916f987de2 Sanitize readonly refs
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-16 07:21:10 +07:00
rht
e4dbec59cf Show readonly commands in gateway readonly API
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-08-16 07:03:25 +07:00
fbac82046d Merge pull request #1581 from rht/feat/read-only-api-gateway
Add readonly api to gateway
2015-08-15 12:25:34 +02: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
4433c30ef2 Merge pull request #1575 from ipfs/blockservice-no-err
blockservice.New doesnt need to return an error
2015-08-15 06:47:23 +02:00
7789077dbd Merge pull request #1076 from zorun/fix-listen-ipv6
Default config: listen on IPv6 for the swarm address
2015-08-15 06:41:26 +02:00
f209763357 blockservice.New doesnt need to return an error
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-14 16:25:51 -07:00
da75e92d5b Merge pull request #1570 from rht/config-null
Config: allow to set maps on null value
2015-08-14 04:08:45 +02:00
c1380f122b Merge pull request #1571 from ipfs/fix/refs-json
dont put newlines in refs json output
2015-08-14 04:08:30 +02:00
8d6fa2ede7 dont put newlines in refs json output
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-13 11:08:10 -07:00