提交 be3fc3e7 作者: Travis Person

Update for plugins split

License: MIT
Signed-off-by: 's avatarTravis Person <travis@protocol.ai>
上级 e68c10ab
...@@ -47,9 +47,9 @@ ...@@ -47,9 +47,9 @@
"version": "0.1.4" "version": "0.1.4"
}, },
{ {
"hash": "QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C", "hash": "QmYAXfidRkyrQH5sGVA71TAwL1cknsDtMoLPV6Bjk13VrG",
"name": "iptb", "name": "iptb",
"version": "2.0.0" "version": "1.3.7"
}, },
{ {
"hash": "QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8", "hash": "QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8",
...@@ -586,6 +586,12 @@ ...@@ -586,6 +586,12 @@
"hash": "QmY4dowpPFCBsbaoaJc9mNWso64eDJsm32LJznwPNaAiJG", "hash": "QmY4dowpPFCBsbaoaJc9mNWso64eDJsm32LJznwPNaAiJG",
"name": "go-libp2p-pubsub", "name": "go-libp2p-pubsub",
"version": "0.11.3" "version": "0.11.3"
},
{
"author": "travisperson",
"hash": "QmZJXRAhsC7Zi94udXXdsnncJLYdSYBAckWxbxHJe9fPG3",
"name": "iptb-plugins",
"version": "1.0.0"
} }
], ],
"gxVersion": "0.10.0", "gxVersion": "0.10.0",
......
...@@ -4,9 +4,10 @@ import ( ...@@ -4,9 +4,10 @@ import (
"fmt" "fmt"
"os" "os"
cli "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/cli" cli "gx/ipfs/QmYAXfidRkyrQH5sGVA71TAwL1cknsDtMoLPV6Bjk13VrG/iptb/cli"
plugin "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/plugins/ipfs/local" testbed "gx/ipfs/QmYAXfidRkyrQH5sGVA71TAwL1cknsDtMoLPV6Bjk13VrG/iptb/testbed"
testbed "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/testbed"
plugin "gx/ipfs/QmZJXRAhsC7Zi94udXXdsnncJLYdSYBAckWxbxHJe9fPG3/iptb-plugins/local"
) )
func init() { func init() {
......
...@@ -108,18 +108,18 @@ test_expect_success "add afile using CIDv0 to node 0" ' ...@@ -108,18 +108,18 @@ test_expect_success "add afile using CIDv0 to node 0" '
' '
test_expect_success "get afile using CIDv1 via node 1" ' test_expect_success "get afile using CIDv1 via node 1" '
iptb run -raw 1 -- ipfs --timeout=2s cat $AHASHv1 > thefile && iptb -quiet run 1 -- ipfs --timeout=2s cat $AHASHv1 > thefile &&
test_cmp afile thefile test_cmp afile thefile
' '
test_expect_success "add bfile using CIDv1 to node 0" ' test_expect_success "add bfile using CIDv1 to node 0" '
BHASHv1=$(iptb run -raw 0 -- ipfs add -q --cid-version=1 --raw-leaves=false bfile) BHASHv1=$(iptb -quiet run 0 -- ipfs add -q --cid-version=1 --raw-leaves=false bfile)
' '
test_expect_success "get bfile using CIDv0 via node 1" ' test_expect_success "get bfile using CIDv0 via node 1" '
BHASHv0=$(cid-fmt -v 0 %s $BHASHv1) BHASHv0=$(cid-fmt -v 0 %s $BHASHv1)
echo $BHASHv1 && echo $BHASHv1 &&
iptb run -raw 1 -- ipfs --timeout=2s cat $BHASHv0 > thefile && iptb -quiet run 1 -- ipfs --timeout=2s cat $BHASHv0 > thefile &&
test_cmp bfile thefile test_cmp bfile thefile
' '
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论