@@ -8,9 +8,9 @@ test_description="Test migration 6 to 7"
88
99export IPTB_ROOT=" $( pwd) /.iptb"
1010ipfsi () {
11- dir=" $1 "
12- shift
13- IPFS_PATH=" $IPTB_ROOT /$dir " ipfs " $@ "
11+ dir=" $1 "
12+ shift
13+ IPFS_PATH=" $IPTB_ROOT /testbeds/default /$dir " ipfs " $@ "
1414}
1515
1616export DEBUG=true
@@ -29,7 +29,7 @@ test_install_ipfs_nd_6_7() {
2929test_install_ipfs_nd_6_7 " v0.4.15"
3030
3131test_expect_success " iptb init" '
32- iptb init -n 2 --bootstrap none --port 0
32+ iptb testbed create -type localipfs -count 2 -init
3333'
3434
3535for i in 0 1
4343
4444test_expect_success " generate keys" '
4545 ID1=$(ipfsi 0 id -f"<id>") &&
46- ID2=$(ipfsi 0 key gen --type=rsa --size=512 second) &&
47- ID3=$(ipfsi 0 key gen --type=rsa --size=512 third)
46+ ID2=$(ipfsi 0 key gen --type=rsa --size=2048 second) &&
47+ ID3=$(ipfsi 0 key gen --type=rsa --size=2048 third)
4848'
4949
5050i=0
@@ -85,7 +85,7 @@ test_resolve_fails() {
8585
8686test_start_0 () {
8787 test_expect_success " start cluster" '
88- iptb start 0 --args --migrate=true && iptb connect 0 1 && go-sleep 3s
88+ iptb start -wait 0 -- --migrate=true && iptb connect 0 1 && go-sleep 3s
8989 '
9090}
9191
@@ -97,7 +97,7 @@ test_stop_0() {
9797
9898test_start () {
9999 test_expect_success " start cluster" '
100- iptb start --args --migrate=true && iptb connect 0 1 && go-sleep 3s
100+ iptb start -wait -- --migrate=true && iptb connect 0 1 && go-sleep 3s
101101 '
102102}
103103
@@ -133,12 +133,12 @@ test_resolution
133133test_stop
134134
135135test_expect_success " 'ipfs-6-to-7 -revert' fails without -path" '
136- test_must_fail iptb run 0 ipfs-6-to-7 -revert
136+ IPFS_PATH="$IPTB_ROOT/testbeds/default/0" test_must_fail ipfs-6-to-7 -revert
137137'
138138
139139test_expect_success " 'ipfs-6-to-7 -revert' succeeds" '
140- ipfs-6-to-7 -revert -path="$IPTB_ROOT/0" &&
141- ipfs-6-to-7 -revert -path="$IPTB_ROOT/1"
140+ ipfs-6-to-7 -revert -path="$IPTB_ROOT/testbeds/default/ 0" &&
141+ ipfs-6-to-7 -revert -path="$IPTB_ROOT/testbeds/default/ 1"
142142'
143143
144144test_install_ipfs_nd " v0.4.15"
0 commit comments