mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 00:39:31 +08:00
t0062: check that 'ipfs config' works
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
@ -12,11 +12,14 @@ test_init_ipfs
|
|||||||
differentport=$((PORT_API + 1))
|
differentport=$((PORT_API + 1))
|
||||||
api_different="/ip4/127.0.0.1/tcp/$differentport"
|
api_different="/ip4/127.0.0.1/tcp/$differentport"
|
||||||
api_unreachable="/ip4/127.0.0.1/tcp/1"
|
api_unreachable="/ip4/127.0.0.1/tcp/1"
|
||||||
api_fromcfg=$(ipfs config Addresses.API)
|
|
||||||
|
test_expect_success "config setup" '
|
||||||
|
api_fromcfg=$(ipfs config Addresses.API) &&
|
||||||
peerid=$(ipfs config Identity.PeerID)
|
peerid=$(ipfs config Identity.PeerID)
|
||||||
|
'
|
||||||
|
|
||||||
test_client() {
|
test_client() {
|
||||||
printf $peerid >expected
|
printf "$peerid" >expected
|
||||||
ipfs "$@" id -f="<id>" >actual
|
ipfs "$@" id -f="<id>" >actual
|
||||||
test_cmp expected actual
|
test_cmp expected actual
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user