Merge branch 'master' into fix/raft-rejoin-errors
Adding in sharness test fixes to pass tests
This commit is contained in:
commit
a5de825897
|
@ -27,7 +27,7 @@ test_ipfs_init() {
|
||||||
echo "Docker not found"
|
echo "Docker not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if docker ps --format '{{.Names}}' | egrep -q '^ipfs$'; then
|
if docker ps -a --format '{{.Names}}' | egrep -q '^ipfs$'; then
|
||||||
echo "ipfs container already running"
|
echo "ipfs container already running"
|
||||||
else
|
else
|
||||||
docker run --name ipfs -d -p 127.0.0.1:5001:5001 ipfs/go-ipfs > /dev/null 2>&1
|
docker run --name ipfs -d -p 127.0.0.1:5001:5001 ipfs/go-ipfs > /dev/null 2>&1
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
test_description="Test service startup and init functionality"
|
test_description="Test service startup and init functionality"
|
||||||
|
|
||||||
. lib/test-lib.sh
|
. lib/test-lib.sh
|
||||||
|
|
||||||
test_ipfs_init
|
test_ipfs_init
|
||||||
cleanup test_clean_ipfs
|
cleanup test_clean_ipfs
|
||||||
test_cluster_init
|
test_cluster_init
|
||||||
|
|
|
@ -9,9 +9,8 @@ cleanup test_clean_ipfs
|
||||||
test_cluster_init
|
test_cluster_init
|
||||||
cleanup test_clean_cluster
|
cleanup test_clean_cluster
|
||||||
|
|
||||||
|
|
||||||
test_expect_success IPFS,CLUSTER "pin data to cluster with ctl" '
|
test_expect_success IPFS,CLUSTER "pin data to cluster with ctl" '
|
||||||
cid=`docker exec ipfs bash -c "echo test | ipfs add -q"`
|
cid=`docker exec ipfs sh -c "echo test | ipfs add -q"`
|
||||||
ipfs-cluster-ctl pin add "$cid" &> test4 &&
|
ipfs-cluster-ctl pin add "$cid" &> test4 &&
|
||||||
ipfs-cluster-ctl pin ls "$cid" | grep -q "$cid" &&
|
ipfs-cluster-ctl pin ls "$cid" | grep -q "$cid" &&
|
||||||
ipfs-cluster-ctl status "$cid" | grep -q -i "PINNED"
|
ipfs-cluster-ctl status "$cid" | grep -q -i "PINNED"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user