Skip to content

Commit

Permalink
Update for plugins split
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
  • Loading branch information
Travis Person committed Nov 2, 2018
1 parent e68c10a commit be3fc3e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
"version": "0.1.4"
},
{
"hash": "QmU5w6sBozzDcfHXuKn1ZZAYuBw1rE57YYRVxgUcCjEX8C",
"hash": "QmYAXfidRkyrQH5sGVA71TAwL1cknsDtMoLPV6Bjk13VrG",
"name": "iptb",
"version": "2.0.0"
"version": "1.3.7"
},
{
"hash": "QmPnFwZ2JXKnXgMw8CdBPxn7FWh6LLdjUjxV1fKHuJnkr8",
Expand Down Expand Up @@ -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",
Expand Down
7 changes: 4 additions & 3 deletions test/dependencies/iptb/iptb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
6 changes: 3 additions & 3 deletions test/sharness/t0276-cidv0v1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'

Expand Down

0 comments on commit be3fc3e

Please sign in to comment.