Juan Batiz-Benet
0de13b071d
Merge pull request #743 from jbenet/misc-2-2
...
Gateway Changes
2015-02-05 00:05:43 -08:00
Matt Bell
09e4224aa7
test/sharness: Fixed gateway tests
2015-02-04 18:46:59 -08:00
Christian Couder
bbb6196d12
Delete test/bin/fsh
...
It has been replaced with test_fsh().
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-04 22:01:03 +01:00
Christian Couder
fa13afa5ca
Replace fsh with test_fsh in sharness tests
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-04 21:53:19 +01:00
Christian Couder
65cbbdff84
Add ipfs-test-lib.sh and source it in sharness test-lib.sh
...
The new ipfs-test-lib.sh file contains generic test
functions.
We also start replacing fsh with a shell function named
test_fsh() in ipfs-test-lib.sh.
And we move our custom test_cmp in ipfs-test-lib.sh.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-04 21:50:07 +01:00
Juan Batiz-Benet
756382a6c3
sharness/test-lib: wait longer for daemon
...
it keeps failing early.
2015-02-02 21:05:32 -08:00
Christian Couder
752f54e313
sharness/test-lib: remove some "cat" followed by |
...
The pattern "cat FILE | COMMAND" can be simplified
to just "COMMAND FILE" when COMMAND accepts files as
arguments.
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-03 04:46:35 +01:00
Matt Bell
48885377fc
test/sharness: rm quotes
2015-02-02 10:13:46 -08:00
Matt Bell
54fef5ea96
test/sharness: Added tests for 'ipfs add -w'
2015-02-02 10:07:36 -08:00
Brian Tiger Chow
07529fa56a
run profiler in test
2015-02-02 01:31:51 -08:00
Brian Tiger Chow
4af79b7135
clean old docker images
2015-02-02 01:31:51 -08:00
Brian Tiger Chow
093c87ef45
feat: keep profiling data from test runs
2015-02-02 01:31:51 -08:00
Brian Tiger Chow
c2664288be
fix(integrationtest) let amount of information match test name
2015-02-01 21:54:21 -08:00
Brian Tiger Chow
f9de5fb106
fix test name
2015-02-01 21:54:21 -08:00
Brian Tiger Chow
a9573058f5
refac(integrationtest) remove core.ConfigOption cast in tests
2015-02-01 21:54:20 -08:00
Brian Tiger Chow
41d6d040b8
misc(integrationtest) bump 3-legged cat to 100 MB
2015-02-01 21:54:19 -08:00
Juan Batiz-Benet
b2da275475
sharness/lib: fix daemon startup check
...
Go back to test_run_repeat_10_sec to make sure the API
is there. I think this is also clearer on the reader.
2015-02-01 21:23:31 -08:00
Christian Couder
ce10f20ca7
test/sharness: improve t0111 using test_cmp
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-02-01 20:46:28 -08:00
Juan Batiz-Benet
1d9d13e286
Merge pull request #720 from jbenet/fix-sharness-gateway-addr-check
...
sharness/lib: fixing gateway addr check
2015-02-01 20:45:58 -08:00
Juan Batiz-Benet
7ce3c79519
sharness/lib: fixing gateway addr check
...
seems that the previous way isnt liked by all platforms
2015-02-01 20:41:34 -08:00
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
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
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
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
de464b7e40
test/3nodetest: list bootstrap nodes to debug
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
c372255807
daemon: fix output + time waiting
2015-02-01 04:29:32 -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
Mildred Ki'Lya
51af53d8f7
Added Sharness test for HTTP Gateway
2015-01-31 23:36:46 +01: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
Jeromy
9ddfafb40a
address concerns about user interface with new Path type
2015-01-30 19:55:38 +00:00
Brian Tiger Chow
f1333d6419
bench: offline add
2015-01-30 06:57:42 -08:00
Brian Tiger Chow
fadedab003
rename epictest -> integrationtest
2015-01-29 22:22:25 -08:00
Jeromy
abb3c9c9c4
implement path type
2015-01-29 17:51:08 +00:00
Juan Batiz-Benet
14eceee35e
epictest: fix three-legged-cat
...
http://gateway.ipfs.io/ipfs/QmfUFkQuqjfQzLNhMLwiibiAxnAaZEJAbYkey9orXJ4aQe/3lcat.jpg
2015-01-29 01:10:01 -08:00
Juan Batiz-Benet
958cc61647
epictest: added test for bitswap wo routing
2015-01-28 23:55:30 -08:00
Juan Batiz-Benet
8ed1b14034
sharness: rename conflicting test
2015-01-28 17:02:04 -08:00
Matt Bell
21575ba535
test/sharness: Fixed gateway test formatting
2015-01-28 16:52:46 -08:00
Matt Bell
2028d37076
test/sharness: Added basic gateway tests
2015-01-28 16:46:00 -08:00
Jeromy
72a5902e12
address concerns from PR
2015-01-28 19:36:30 +00:00
Jeromy
f1267d0624
change ipns resolve/publish to store raw keys, not b58 encoded
2015-01-28 19:36:30 +00:00
Juan Batiz-Benet
cbe07776e3
test/sharness: make sure to output vars in quotes
...
cc @whyrusleeping: you werent doing so
cc @mappum: you were trying to escape them, but
were un-escaping them in cases with longer quotes.
2015-01-28 01:04:06 -08:00