Skip to content

Commit

Permalink
sharness?
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Jan 30, 2024
1 parent e3f026d commit 80d0362
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/sharness/t0003-docker-migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,18 @@ test_expect_success "configure migration sources" '
ipfs config --json Migration.DownloadSources "[\"http://127.0.0.1:17233\"]"
'

test_expect_success "make repo be version 4" '
echo 4 > "$IPFS_PATH/version"
'

test_expect_success "setup http response" '
mkdir migration &&
echo "v1.1.1" > migration/versions &&
CID=$(ipfs add -r -Q migration) &&
echo "HTTP/1.1 200 OK" > vers_resp &&
echo "Content-Length: 7" >> vers_resp &&
echo "Content-Type: application/vnd.ipld.car" >> vers_resp &&
echo "" >> vers_resp &&
echo "v1.1.1" >> vers_resp
ipfs dag export $CID >> vers_resp
'

test_expect_success "make repo be version 4" '
echo 4 > "$IPFS_PATH/version"
'

test_expect_success "startup fake dists server" '
Expand Down

0 comments on commit 80d0362

Please sign in to comment.