Update for plugins split

License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
This commit is contained in:
Travis Person 2018-11-01 18:09:08 -07:00
parent e68c10abf4
commit be3fc3e791
3 changed files with 15 additions and 8 deletions

View File

@ -47,9 +47,9 @@
"version": "0.1.4"
},
{
"hash": "QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C",
"hash": "QmYAXfidRkyrQH5sGVA71TAwL1cknsDtMoLPV6Bjk13VrG",
"name": "iptb",
"version": "2.0.0"
"version": "1.3.7"
},
{
"hash": "QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8",
@ -586,6 +586,12 @@
"hash": "QmY4dowpPFCBsbaoaJc9mNWso64eDJsm32LJznwPNaAiJG",
"name": "go-libp2p-pubsub",
"version": "0.11.3"
},
{
"author": "travisperson",
"hash": "QmZJXRAhsC7Zi94udXXdsnncJLYdSYBAckWxbxHJe9fPG3",
"name": "iptb-plugins",
"version": "1.0.0"
}
],
"gxVersion": "0.10.0",

View File

@ -4,9 +4,10 @@ import (
"fmt"
"os"
cli "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/cli"
plugin "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/plugins/ipfs/local"
testbed "gx/ipfs/QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C/iptb/testbed"
cli "gx/ipfs/QmYAXfidRkyrQH5sGVA71TAwL1cknsDtMoLPV6Bjk13VrG/iptb/cli"
testbed "gx/ipfs/QmYAXfidRkyrQH5sGVA71TAwL1cknsDtMoLPV6Bjk13VrG/iptb/testbed"
plugin "gx/ipfs/QmZJXRAhsC7Zi94udXXdsnncJLYdSYBAckWxbxHJe9fPG3/iptb-plugins/local"
)
func init() {

View File

@ -108,18 +108,18 @@ test_expect_success "add afile using CIDv0 to node 0" '
'
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_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" '
BHASHv0=$(cid-fmt -v 0 %s $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
'