Skip to content

Commit

Permalink
feat: add test in t0700-remotepin.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rukolahasser committed Dec 31, 2021
1 parent 1d72f9a commit 8448e89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/sharness/t0700-remotepin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,14 @@ test_remote_pins() {
test_remote_pins ""

test_kill_ipfs_daemon

test_expect_success "'ipfs pin remote add' shows the warning message while offline" '
test_expect_code 0 ipfs pin remote add --service=test_pin_svc --enc=json $BASE_ARGS --name=name_a $HASH_A > actual &&
echo "Warning: the local node is offline and remote pinning may fail if there is no other provider" > expected &&
echo "{\"Status\":\"pinned\",\"Cid\":\"$HASH_A\",\"Name\":\"name_a\"}" >> expected &&
test_cmp expected actual
'

test_done

# vim: ts=2 sw=2 sts=2 et:

0 comments on commit 8448e89

Please sign in to comment.