Commit cbeff099 authored by Christian Couder's avatar Christian Couder

t0062: check that 'ipfs config' works

License: MIT
Signed-off-by: default avatarChristian Couder <chriscool@tuxfamily.org>
parent fe742050
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment