mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 00:39:31 +08:00
t0110: add peerid check
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
@ -59,8 +59,9 @@ test_expect_success "GET IPFS non existent file returns code expected (404)" '
|
|||||||
|
|
||||||
test_expect_failure "GET IPNS path succeeds" '
|
test_expect_failure "GET IPNS path succeeds" '
|
||||||
ipfs name publish "$HASH" &&
|
ipfs name publish "$HASH" &&
|
||||||
NAME=$(ipfs config Identity.PeerID) &&
|
PEERID=$(ipfs config Identity.PeerID) &&
|
||||||
curl -sfo actual "http://127.0.0.1:$port/ipns/$NAME"
|
test_check_peerid "$PEERID" &&
|
||||||
|
curl -sfo actual "http://127.0.0.1:$port/ipns/$PEERID"
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_failure "GET IPNS path output looks good" '
|
test_expect_failure "GET IPNS path output looks good" '
|
||||||
|
Reference in New Issue
Block a user