File tree 1 file changed +24
-0
lines changed 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -59,5 +59,29 @@ test_expect_success "ipfs daemon --offline --mount fails - #2995" '
59
59
test_fsh cat daemon_err
60
60
'
61
61
62
+ test_launch_ipfs_daemon --offline
63
+
64
+ test_expect_success " 'ipfs name resolve' succeeds after ipfs id when daemon offline" '
65
+ PEERID=`ipfs id --format="<id>"` &&
66
+ test_check_peerid "${PEERID}" &&
67
+ ipfs name publish --allow-offline -Q "/ipfs/$HASH_WELCOME_DOCS" >publish_out
68
+ '
69
+
70
+ test_expect_success " pubrmlish --quieter output looks good" '
71
+ echo "${PEERID}" >expected1 &&
72
+ test_cmp expected1 publish_out
73
+ '
74
+
75
+ test_expect_success " 'ipfs name resolve' succeeds" '
76
+ ipfs name resolve "$PEERID" >output
77
+ '
78
+
79
+ test_expect_success " resolve output looks good" '
80
+ printf "/ipfs/%s\n" "$HASH_WELCOME_DOCS" >expected2 &&
81
+ test_cmp expected2 output
82
+ '
83
+
84
+ test_kill_ipfs_daemon
85
+
62
86
test_done
63
87
You can’t perform that action at this time.
0 commit comments