Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename migrations from ipfs-x-to-y to fs-repo-x-to-y #135

Merged
merged 10 commits into from
Mar 31, 2021
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ os:
language: go

go:
- "1.13.1"
- "1.16.x"

env:
- TEST_VERBOSE=1
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ go 1.15

require (
github.com/blang/semver v3.5.1+incompatible
github.com/ipfs/go-ipfs v0.7.1-0.20210316235744-1430a0104c79
github.com/ipfs/go-ipfs v0.8.1-0.20210331210551-bb8260abe11b
github.com/ipfs/go-ipfs-api v0.2.0
github.com/urfave/cli/v2 v2.3.0
github.com/whyrusleeping/stump v0.0.0-20160611222256-206f8f13aae1
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f
golang.org/x/sys v0.0.0-20210309074719-68d13333faf2
)
245 changes: 220 additions & 25 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sharness/lib/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ test_install_version() {
VERSION="$1"

test_expect_success "'ipfs-update install' works for $VERSION" '
exec_docker "$DOCID" "$GUEST_IPFS_UPDATE --distpath $IPFS_DIST_PATH --verbose install --allow-downgrade $VERSION" >actual 2>&1 ||
exec_docker "$DOCID" "$GUEST_IPFS_UPDATE --verbose install --allow-downgrade $VERSION" >actual 2>&1 ||
test_fsh cat actual
'

Expand Down
7 changes: 2 additions & 5 deletions sharness/t0030-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ test_description="ipfs-update install"

GUEST_IPFS_UPDATE="sharness/bin/ipfs-update"

# TODO: remove this when migrations are availabe one the distributions site
IPFS_DIST_PATH="/ipfs/Qme8pJhBidEUXRdpcWLGR2fkG5kdwVnaMh3kabjfP8zz7Y"

test_expect_success "start a docker container" '
DOCID=$(start_docker)
'
Expand All @@ -32,7 +29,7 @@ test_expect_success "'ipfs-update version' output looks good" '
'

test_expect_success "'ipfs-update install' works when something is installed" '
exec_docker "$DOCID" "$GUEST_IPFS_UPDATE --distpath $IPFS_DIST_PATH --verbose install v0.4.23" >actual 2>&1 ||
exec_docker "$DOCID" "$GUEST_IPFS_UPDATE --verbose install v0.4.23" >actual 2>&1 ||
test_fsh cat actual
'

Expand All @@ -42,7 +39,7 @@ test_expect_success "'ipfs-update install' fails when downgrading without the d
'

test_expect_success "'ipfs-update install' works when downgrading with flag" '
exec_docker "$DOCID" "$GUEST_IPFS_UPDATE --distpath $IPFS_DIST_PATH --verbose install --allow-downgrade v0.3.8" >actual 2>&1 ||
exec_docker "$DOCID" "$GUEST_IPFS_UPDATE --verbose install --allow-downgrade v0.3.8" >actual 2>&1 ||
test_fsh cat actual
'

Expand Down
2 changes: 0 additions & 2 deletions sharness/t0040-install-many.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ test_description="ipfs-update install with many different versions"
. lib/test-lib.sh

GUEST_IPFS_UPDATE="sharness/bin/ipfs-update"
# TODO: remove this when migrations are availabe one the distributions site
IPFS_DIST_PATH="/ipfs/Qme8pJhBidEUXRdpcWLGR2fkG5kdwVnaMh3kabjfP8zz7Y"

test_expect_success "start a docker container" '
DOCID=$(start_docker)
Expand Down
2 changes: 0 additions & 2 deletions sharness/t0050-revert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ test_description="ipfs-update revert"
. lib/test-lib.sh

GUEST_IPFS_UPDATE="sharness/bin/ipfs-update"
# TODO: remove this when migrations are availabe one the distributions site
IPFS_DIST_PATH="/ipfs/Qme8pJhBidEUXRdpcWLGR2fkG5kdwVnaMh3kabjfP8zz7Y"

test_expect_success "start a docker container" '
DOCID=$(start_docker)
Expand Down