Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #570 from bstasyszyn/567-3
Browse files Browse the repository at this point in the history
chore: Release 0.1.6
  • Loading branch information
bstasyszyn authored Mar 4, 2021
2 parents c5ded8c + 623ce57 commit bfcd41d
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 30 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ require (
google.golang.org/grpc v1.29.1
)

replace github.com/hyperledger/fabric => github.com/trustbloc/fabric-mod v0.1.6-0.20210209215355-966ca0cc520e
replace github.com/hyperledger/fabric => github.com/trustbloc/fabric-mod v0.1.6

replace github.com/hyperledger/fabric/extensions => ./mod/peer

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,8 @@ github.com/syndtr/goleveldb v1.0.1-0.20190625010220-02440ea7a285/go.mod h1:9OrXJ
github.com/tedsuo/ifrit v0.0.0-20180802180643-bea94bb476cc h1:LUUe4cdABGrIJAhl1P1ZpWY76AwukVszFdwkVFVLwIk=
github.com/tedsuo/ifrit v0.0.0-20180802180643-bea94bb476cc/go.mod h1:eyZnKCc955uh98WQvzOm0dgAeLnf2O0Rz0LPoC5ze+0=
github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
github.com/trustbloc/fabric-mod v0.1.6-0.20210209215355-966ca0cc520e h1:UkC+RK4HR0CLpAF965s5d66AdRMCjo7EBtoLsLfzrcE=
github.com/trustbloc/fabric-mod v0.1.6-0.20210209215355-966ca0cc520e/go.mod h1:XaPNFwRTdf4lOytspbjkw1W0nsbmzC7ni0L6DQN1yDM=
github.com/trustbloc/fabric-mod v0.1.6 h1:tZkr8ICfr/sRslEDfQsEvbjQ+C0KG2E7Gc5ZDBZrBk4=
github.com/trustbloc/fabric-mod v0.1.6/go.mod h1:XaPNFwRTdf4lOytspbjkw1W0nsbmzC7ni0L6DQN1yDM=
github.com/trustbloc/fabric-protos-go-ext v0.1.5 h1:dJ/Bt/nj98SRhUlZQc2DV5wRSE/oDcs3gJQRimwNQ3o=
github.com/trustbloc/fabric-protos-go-ext v0.1.5/go.mod h1:xVYTjK4DtZRBxZ2D9aE4y6AbLaPwue2o/criQyQbVD0=
github.com/ugorji/go v1.1.1/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ=
Expand Down
2 changes: 1 addition & 1 deletion mod/peer/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module github.com/trustbloc/fabric-peer-ext/mod/peer

replace github.com/hyperledger/fabric => github.com/trustbloc/fabric-mod v0.1.6-0.20210209215355-966ca0cc520e
replace github.com/hyperledger/fabric => github.com/trustbloc/fabric-mod v0.1.6

replace github.com/hyperledger/fabric/extensions => ./

Expand Down
4 changes: 2 additions & 2 deletions mod/peer/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,8 @@ github.com/syndtr/goleveldb v1.0.1-0.20190625010220-02440ea7a285/go.mod h1:9OrXJ
github.com/tedsuo/ifrit v0.0.0-20180802180643-bea94bb476cc h1:LUUe4cdABGrIJAhl1P1ZpWY76AwukVszFdwkVFVLwIk=
github.com/tedsuo/ifrit v0.0.0-20180802180643-bea94bb476cc/go.mod h1:eyZnKCc955uh98WQvzOm0dgAeLnf2O0Rz0LPoC5ze+0=
github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
github.com/trustbloc/fabric-mod v0.1.6-0.20210209215355-966ca0cc520e h1:UkC+RK4HR0CLpAF965s5d66AdRMCjo7EBtoLsLfzrcE=
github.com/trustbloc/fabric-mod v0.1.6-0.20210209215355-966ca0cc520e/go.mod h1:XaPNFwRTdf4lOytspbjkw1W0nsbmzC7ni0L6DQN1yDM=
github.com/trustbloc/fabric-mod v0.1.6 h1:tZkr8ICfr/sRslEDfQsEvbjQ+C0KG2E7Gc5ZDBZrBk4=
github.com/trustbloc/fabric-mod v0.1.6/go.mod h1:XaPNFwRTdf4lOytspbjkw1W0nsbmzC7ni0L6DQN1yDM=
github.com/trustbloc/fabric-protos-go-ext v0.1.5 h1:dJ/Bt/nj98SRhUlZQc2DV5wRSE/oDcs3gJQRimwNQ3o=
github.com/trustbloc/fabric-protos-go-ext v0.1.5/go.mod h1:xVYTjK4DtZRBxZ2D9aE4y6AbLaPwue2o/criQyQbVD0=
github.com/ugorji/go v1.1.1/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ=
Expand Down
4 changes: 2 additions & 2 deletions scripts/pull_fabric.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ git clone https://github.com/trustbloc/fabric-mod.git $GOPATH/src/github.com/hyp
cp -r . $GOPATH/src/github.com/hyperledger/fabric/fabric-peer-ext
cd $GOPATH/src/github.com/hyperledger/fabric
git config advice.detachedHead false
# fabric-mod (Feb 9, 2021)
git checkout 966ca0cc520e95e448847861e16a484fb087bd20
# fabric-mod (Mar 4, 2021)
git checkout v0.1.6

declare envOS
envOS=$(uname -s)
Expand Down
14 changes: 7 additions & 7 deletions test/bddtests/features/e2e.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,39 @@ Feature:

# Test transactions
When client invokes chaincode "e2e_cc" with args "del,k1" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "get,k1" on a single peer in the "peerorg1" org on the "mychannel" channel
Then response from "e2e_cc" to client equal value ""

When client invokes chaincode "e2e_cc" with args "put,k1,20" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "get,k1" on a single peer in the "peerorg1" org on the "mychannel" channel
Then response from "e2e_cc" to client equal value "20"

When client invokes chaincode "e2e_cc" with args "put,k1,20" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "get,k1" on a single peer in the "peerorg1" org on the "mychannel" channel
Then response from "e2e_cc" to client equal value "20-20"

When client invokes chaincode "e2e_cc" with args "del,k1" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "get,k1" on a single peer in the "peerorg1" org on the "mychannel" channel
Then response from "e2e_cc" to client equal value ""

# Test private data collection transactions
When client invokes chaincode "e2e_cc" with args "putprivate,collection3,pvtKey,pvtVal" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "getprivate,collection3,pvtKey" on the "mychannel" channel
Then response from "e2e_cc" to client equal value "pvtVal"

# Update the value to ensure that the state cache is updated/invalidated
When client invokes chaincode "e2e_cc" with args "putprivate,collection3,pvtKey,pvtVal2" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "getprivate,collection3,pvtKey" on the "mychannel" channel
Then response from "e2e_cc" to client equal value "pvtVal2"

When client invokes chaincode "e2e_cc" with args "delprivate,collection3,pvtKey" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "getprivate,collection3,pvtKey" on the "mychannel" channel
Then response from "e2e_cc" to client equal value ""

Expand Down
14 changes: 7 additions & 7 deletions test/bddtests/features/lc_e2e.feature
Original file line number Diff line number Diff line change
Expand Up @@ -98,39 +98,39 @@ Feature:

# Test transactions
When client invokes chaincode "e2e_cc" with args "del,k1" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "get,k1" on a single peer in the "peerorg1" org on the "mychannel" channel
Then response from "e2e_cc" to client equal value ""

When client invokes chaincode "e2e_cc" with args "put,k1,20" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "get,k1" on a single peer in the "peerorg1" org on the "mychannel" channel
Then response from "e2e_cc" to client equal value "20"

When client invokes chaincode "e2e_cc" with args "put,k1,20" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "get,k1" on a single peer in the "peerorg1" org on the "mychannel" channel
Then response from "e2e_cc" to client equal value "20-20"

When client invokes chaincode "e2e_cc" with args "del,k1" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "get,k1" on a single peer in the "peerorg1" org on the "mychannel" channel
Then response from "e2e_cc" to client equal value ""

# Test private data collection transactions
When client invokes chaincode "e2e_cc" with args "putprivate,collection3,pvtKey,pvtVal" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "getprivate,collection3,pvtKey" on the "mychannel" channel
Then response from "e2e_cc" to client equal value "pvtVal"

# Update the value to ensure that the state cache is updated/invalidated
When client invokes chaincode "e2e_cc" with args "putprivate,collection3,pvtKey,pvtVal2" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "getprivate,collection3,pvtKey" on the "mychannel" channel
Then response from "e2e_cc" to client equal value "pvtVal2"

When client invokes chaincode "e2e_cc" with args "delprivate,collection3,pvtKey" on the "mychannel" channel
And we wait 2 seconds
And we wait 10 seconds
And client queries chaincode "e2e_cc" with args "getprivate,collection3,pvtKey" on the "mychannel" channel
Then response from "e2e_cc" to client equal value ""

Expand Down
2 changes: 1 addition & 1 deletion test/bddtests/fixtures/fabric/peer/cmd/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/trustbloc/fabric-peer-ext v0.0.0
)

replace github.com/hyperledger/fabric => github.com/trustbloc/fabric-mod v0.1.6-0.20210209215355-966ca0cc520e
replace github.com/hyperledger/fabric => github.com/trustbloc/fabric-mod v0.1.6

replace github.com/hyperledger/fabric/extensions => ../../../../../../mod/peer

Expand Down
4 changes: 2 additions & 2 deletions test/bddtests/fixtures/fabric/peer/cmd/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,8 @@ github.com/syndtr/goleveldb v1.0.1-0.20190625010220-02440ea7a285/go.mod h1:9OrXJ
github.com/tedsuo/ifrit v0.0.0-20180802180643-bea94bb476cc h1:LUUe4cdABGrIJAhl1P1ZpWY76AwukVszFdwkVFVLwIk=
github.com/tedsuo/ifrit v0.0.0-20180802180643-bea94bb476cc/go.mod h1:eyZnKCc955uh98WQvzOm0dgAeLnf2O0Rz0LPoC5ze+0=
github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
github.com/trustbloc/fabric-mod v0.1.6-0.20210209215355-966ca0cc520e h1:UkC+RK4HR0CLpAF965s5d66AdRMCjo7EBtoLsLfzrcE=
github.com/trustbloc/fabric-mod v0.1.6-0.20210209215355-966ca0cc520e/go.mod h1:XaPNFwRTdf4lOytspbjkw1W0nsbmzC7ni0L6DQN1yDM=
github.com/trustbloc/fabric-mod v0.1.6 h1:tZkr8ICfr/sRslEDfQsEvbjQ+C0KG2E7Gc5ZDBZrBk4=
github.com/trustbloc/fabric-mod v0.1.6/go.mod h1:XaPNFwRTdf4lOytspbjkw1W0nsbmzC7ni0L6DQN1yDM=
github.com/trustbloc/fabric-protos-go-ext v0.1.5 h1:dJ/Bt/nj98SRhUlZQc2DV5wRSE/oDcs3gJQRimwNQ3o=
github.com/trustbloc/fabric-protos-go-ext v0.1.5/go.mod h1:xVYTjK4DtZRBxZ2D9aE4y6AbLaPwue2o/criQyQbVD0=
github.com/ugorji/go v1.1.1/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ=
Expand Down
5 changes: 2 additions & 3 deletions test/bddtests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ require (
github.com/cucumber/godog v0.8.1
github.com/golang/protobuf v1.3.3
github.com/hyperledger/fabric-protos-go v0.0.0
github.com/hyperledger/fabric-sdk-go v1.0.0-beta3.0.20201103202456-5b6912cc2680
github.com/hyperledger/fabric-sdk-go v1.0.1-0.20210201220314-86344dc25e5d
github.com/ipfs/go-cid v0.0.7
github.com/ipfs/go-ipfs-ds-help v0.1.1
github.com/multiformats/go-multihash v0.0.13
github.com/pkg/errors v0.8.1
github.com/spf13/viper v1.1.1
github.com/trustbloc/fabric-peer-test-common v0.1.5
golang.org/x/net v0.0.0-20190620200207-3b0461eec859 // indirect
github.com/trustbloc/fabric-peer-test-common v0.1.6
)

replace github.com/hyperledger/fabric-protos-go => github.com/trustbloc/fabric-protos-go-ext v0.1.5
Expand Down
4 changes: 2 additions & 2 deletions test/bddtests/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ github.com/tidwall/match v1.0.1 h1:PnKP62LPNxHKTwvHHZZzdOAOCtsJTjo6dZLCwpKm5xc=
github.com/tidwall/match v1.0.1/go.mod h1:LujAq0jyVjBy028G1WhWfIzbpQfMO8bBZ6Tyb0+pL9E=
github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4=
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
github.com/trustbloc/fabric-peer-test-common v0.1.5 h1:45pztjyFZhRujUIuNg0X4Uq+fzcsaKgSTzbJsC9crZM=
github.com/trustbloc/fabric-peer-test-common v0.1.5/go.mod h1:+31f4Ca6QzxBqJm5XCAAyc3NkCTqpKa+zgLBpJB5tco=
github.com/trustbloc/fabric-peer-test-common v0.1.6 h1:/7U3mpotskolP+52qoxGG1crEQv9K4d+EmwMoU2qVAE=
github.com/trustbloc/fabric-peer-test-common v0.1.6/go.mod h1:sTvfqXS6NErcUpqMzsN0haLZq4S8loj9rLk8vqatFg0=
github.com/trustbloc/fabric-protos-go-ext v0.1.5 h1:dJ/Bt/nj98SRhUlZQc2DV5wRSE/oDcs3gJQRimwNQ3o=
github.com/trustbloc/fabric-protos-go-ext v0.1.5/go.mod h1:xVYTjK4DtZRBxZ2D9aE4y6AbLaPwue2o/criQyQbVD0=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
Expand Down

0 comments on commit bfcd41d

Please sign in to comment.