Commit Graph

3259 Commits

Author SHA1 Message Date
Christian Couder
5aeadd44ad test/sharness: improve t0090 by using printf
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-01 20:25:24 -08:00
Juan Batiz-Benet
f5f5700ddf Merge pull request #712 from jbenet/cat-length-fix
cat length output now uses unixfs size
2015-02-01 20:23:29 -08:00
Juan Batiz-Benet
5b0a544b92 sharness/t0090-get.sh disable the failing tar test 2015-02-01 20:16:56 -08:00
Juan Batiz-Benet
33144f4e39 sharness/t0021-config.sh test config setting 2015-02-01 20:15:51 -08:00
Juan Batiz-Benet
24f0d020e0 sharness: better config setting 2015-02-01 20:15:50 -08:00
Juan Batiz-Benet
56b6a2069a sharness: gateway fixes
there's an odd error setting the config.
2015-02-01 19:24:36 -08:00
Juan Batiz-Benet
c43f539f3d cmds/cat: fix length to use reader.Size()
unixfs file size != merkledag cumulative size
2015-02-01 19:24:36 -08:00
Juan Batiz-Benet
fcd8ebcca5 NewDagReader: return DagReader for more functions
Since the DagReader has lots of useful information (like sizes etc)
it's good to be able to use it.
2015-02-01 19:24:36 -08:00
Juan Batiz-Benet
4539b977c4 Merge pull request #716 from jbenet/improve_t0080
test/sharness: improve t0080
2015-02-01 18:33:49 -08:00
Christian Couder
83e88a8e2b test/sharness: improve t0080
The following changes are made to make t0080
cleaner, safer and more canonical:

- remove useless stuff,
- don't use a pipe after ipfs commands,
- use test_must_fail before ipfs commands instead of !

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-02 01:24:33 +01:00
Juan Batiz-Benet
fbf1a50a54 Merge pull request #608 from jbenet/ipfs-multiaddr
multiaddrs with .../ipfs/...
2015-02-01 06:45:14 -08:00
Juan Batiz-Benet
aff1d8bdcf ipfs swarm disconnect (opposite of connect) 2015-02-01 06:37:14 -08:00
Juan Batiz-Benet
3cd3424900 cmds/swarm: now speaks ipfsaddr (.../ipfs...) 2015-02-01 06:36:51 -08:00
Juan Batiz-Benet
fc78f20093 p2p/conn: expose io.Closer interface 2015-02-01 06:35:48 -08:00
Juan Batiz-Benet
5a8aa1afcf ipfsaddr: Transport part. 2015-02-01 06:34:13 -08:00
Juan Batiz-Benet
d0dd22b7d4 sharness/t0120-bootstrap: test the bootstrap cmd
and do it both online + offline
2015-02-01 06:07:28 -08:00
Juan Batiz-Benet
bebc3ca0fd cmd/bootstrap: bugfix on add (dedup) 2015-02-01 06:07:21 -08:00
Juan Batiz-Benet
188d336204 cmds/bootstrap: fix marshalling + listing errors 2015-02-01 05:36:07 -08:00
Juan Batiz-Benet
de464b7e40 test/3nodetest: list bootstrap nodes to debug 2015-02-01 05:16:53 -08:00
Juan Batiz-Benet
af5b835dc7 util/ipfsaddr: recover from panics parsing 2015-02-01 05:16:53 -08:00
Juan Batiz-Benet
c99dd848dc changelog: added to account for breaking changes 2015-02-01 05:16:53 -08:00
Juan Batiz-Benet
29bf59dded bootstrap: use ipfsaddr for boostrap peers ⚠️
⚠️ this commit makes your current configs unusable, as the
default bootstrap peers. You may need to edit your config.

Go from:

```js
Bootstrap: [
  {
    "Address": "/ip4/104.131.131.82/tcp/4001",
    "PeerID": "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
  }
]
```

To:
```js
Bootstrap: [
  "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
]
```
2015-02-01 05:16:52 -08:00
Juan Batiz-Benet
2e6be0b199 util/ipfsaddr: Multiaddr() + ID() 2015-02-01 05:16:52 -08:00
Juan Batiz-Benet
6f9c297f08 update multiaddr for ipfs addrs 2015-02-01 05:16:52 -08:00
Juan Batiz-Benet
d0f60432d8 Merge pull request #711 from jbenet/fix-hanging-notifs
misc fixes: hanging connects + test output
2015-02-01 05:15:27 -08:00
Juan Batiz-Benet
3f5374717d notifs: rate limit notifications 2015-02-01 04:59:48 -08:00
Juan Batiz-Benet
a2e3ea6236 dht/notif: bugfix in hanging connects
http://gifs.gifbin.com/012011/1295375531_cat-jump-fail.gif
2015-02-01 04:29:32 -08:00
Juan Batiz-Benet
c372255807 daemon: fix output + time waiting 2015-02-01 04:29:32 -08:00
Juan Batiz-Benet
282be4fd9a Merge pull request #710 from jbenet/sharness-gateway-fix
sharness fixes - gateway and more
2015-02-01 00:44:04 -08:00
Juan Batiz-Benet
8ce304014c require curl 2015-02-01 00:10:48 -08:00
Juan Batiz-Benet
1dbe39b678 sharness/t0111-gateway-writable: removed fd redirect
Not sure why this fd redirect was here. Is it necessary?
Tests seem to pass for me.

cc @mildred
2015-01-31 22:55:06 -08:00
Juan Batiz-Benet
12cf6a8426 sharness: note re API/Gateway in t0110-gateway 2015-01-31 22:55:05 -08:00
Juan Batiz-Benet
052c867a70 sharness: output options in verbose mode 2015-01-31 22:55:05 -08:00
Juan Batiz-Benet
f1d34a2a85 test/sharness: fix errors
- core: daemon stdout print to cmd + daemon init checks
- core: fixed bug where the gateway was printed as "API"
- sharness/test-lib: daemon init checks
- sharness/test-lib: portable TCP port check
- sharness/init: fix test bits output
- sharness: use common hashes in one place.
- move t0100-http-gateway -> t0111-gateway-writable
- sharness: test-lib funcs for gateway config
- sharness/t0111-gateway-writable: use sh funcs
- sharness/t0111-gateway-writable: fixes
  - escape all vars (always `cmd "$VAR"` never `cmd $VAR`)
  - use $FILEPATH, not $path
  - last test seems to fail
2015-01-31 22:54:34 -08:00
Juan Batiz-Benet
4016d35a81 Merge pull request #617 from mildred/http-rest
HTTP: add handlers to allow object creation and modification
2015-01-31 18:07:56 -08:00
Juan Batiz-Benet
f43cf2d917 Merge pull request #703 from jbenet/net-set-listener
online services started before network listens
2015-01-31 17:25:18 -08:00
Juan Batiz-Benet
f322a245af Merge pull request #708 from jbenet/fix-proc-race
blockservice/worker: fix proc/limiter sync
2015-01-31 17:24:19 -08:00
Juan Batiz-Benet
7b85579d7a core: move online service init block into own func
addresses CR comments
2015-01-31 17:20:34 -08:00
Juan Batiz-Benet
1a2307aff6 blockservice/worker: fix proc/limiter sync
see: https://gist.github.com/jbenet/6b8b45bde9d9fce17d57

I want to make the goprocess API nicer so it doesnt lead
users into this problem. any ideas?
2015-01-31 17:08:50 -08:00
Jeromy Johnson
0c53a66d11 Merge pull request #707 from jbenet/fix/689
fix cast panic in ipfs name resolve when daemon is running
2015-01-31 15:55:44 -08:00
Jeromy
b57ba192e6 fix cast panic in ipfs name resolve when daemon is running
Addresses bug #689
2015-01-31 23:55:07 +00:00
Mildred Ki'Lya
51af53d8f7 Added Sharness test for HTTP Gateway 2015-01-31 23:36:46 +01:00
Mildred Ki'Lya
c9ff778bd6 Added -bool option to ipfs config command 2015-01-31 23:36:46 +01:00
Mildred Ki'Lya
295cc443da HTTP Gateway: add /ipns/ GET requests 2015-01-31 23:36:46 +01:00
Mildred Ki'Lya
7d09da3c8b Make gateway read-only by default and add option to make it writable 2015-01-31 23:36:45 +01:00
Mildred Ki'Lya
d221d55d85 HTTP: add handlers to allow object creation and modification 2015-01-31 20:47:34 +01:00
Juan Batiz-Benet
8bc223c09a Merge branch 'init-docs' 2015-01-31 07:55:29 -08:00
Juan Batiz-Benet
3f4d38feca sharness: correctness. must have &&
cc @whyrusleeping
2015-01-31 07:52:47 -08:00
Juan Batiz-Benet
73234479fa init docs: go generated welcome dir + files
updated sharness hashes
2015-01-31 07:51:30 -08:00
Juan Batiz-Benet
1a3752b81f core: setup peerhost + listen separate steps
We had a problem: we were starting all the services with the network
live, and so would miss early messages. We were noticing bitswap
messages not handled (not in muxer). Many of the subsystems expect
the network to _exist_ when they start up, so we split construction
and starting to listen into two separate steps.
2015-01-30 20:37:53 -08:00