1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 23:53:19 +08:00

t0062: check that 'ipfs config' works

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
Christian Couder
2015-08-29 22:28:58 +02:00
parent fe742050ac
commit cbeff099a2

View File

@ -12,11 +12,14 @@ test_init_ipfs
differentport=$((PORT_API + 1))
api_different="/ip4/127.0.0.1/tcp/$differentport"
api_unreachable="/ip4/127.0.0.1/tcp/1"
api_fromcfg=$(ipfs config Addresses.API)
peerid=$(ipfs config Identity.PeerID)
test_expect_success "config setup" '
api_fromcfg=$(ipfs config Addresses.API) &&
peerid=$(ipfs config Identity.PeerID)
'
test_client() {
printf $peerid >expected
printf "$peerid" >expected
ipfs "$@" id -f="<id>" >actual
test_cmp expected actual
}