|
| 1 | + # |
| 2 | +# Test Endorser function |
| 3 | +# |
| 4 | +# Tags that can be used and will affect test internals: |
| 5 | +# @doNotDecompose will NOT decompose the named compose_yaml after scenario ends. Useful for setting up environment and reviewing after scenario. |
| 6 | +# @chaincodeImagesUpToDate use this if all scenarios chaincode images are up to date, and do NOT require building. BE SURE!!! |
| 7 | + |
| 8 | +#@chaincodeImagesUpToDate |
| 9 | +@endorser |
| 10 | +Feature: Endorser |
| 11 | + As a application developer |
| 12 | + I want to get endorsements and submit transactions and receive events |
| 13 | + |
| 14 | + Scenario: Peers list test, single peer issue #827 |
| 15 | + Given we compose "docker-compose-1.yml" |
| 16 | + When requesting "/network/peers" from "vp0" |
| 17 | + Then I should get a JSON response with array "peers" contains "1" elements |
| 18 | + |
| 19 | +# @doNotDecompose |
| 20 | + @FAB-184 |
| 21 | + Scenario Outline: Basic deploy endorsement for chaincode through GRPC to multiple endorsers |
| 22 | + |
| 23 | + Given we compose "<ComposeFile>" |
| 24 | + And I wait "1" seconds |
| 25 | + And I register with CA supplying username "binhn" and secret "7avZQLwcUe9q" on peers: |
| 26 | + | vp0 | |
| 27 | + |
| 28 | + When user "binhn" creates a chaincode spec of type "GOLANG" for chaincode "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02" aliased as "cc_spec" with args |
| 29 | + | funcName | arg1 | arg2 | arg3 | arg4 | |
| 30 | + | init | a | 100 | b | 200 | |
| 31 | + And user "binhn" creates a deployment proposal "proposal1" using chaincode spec "cc_spec" |
| 32 | + And user "binhn" sends proposal "proposal1" to endorsers with timeout of "2" seconds: |
| 33 | + | vp0 | vp1 | vp2 | vp3 | |
| 34 | + And user "binhn" stores their last result as "proposal1Responses" |
| 35 | + Then user "binhn" expects proposal responses "proposal1Responses" with status "200" from endorsers: |
| 36 | + | vp0 | vp1 | vp2 | vp3 | |
| 37 | + |
| 38 | + |
| 39 | + Examples: Orderer Options |
| 40 | + | ComposeFile | Waittime | |
| 41 | + | docker-compose-next-4.yml | 60 | |
| 42 | + |
| 43 | + |
| 44 | +# @doNotDecompose |
| 45 | + @FAB-314 |
| 46 | + Scenario Outline: Advanced deploy endorsement with ESCC for chaincode through GRPC to single endorser |
| 47 | + |
| 48 | + Given we compose "<ComposeFile>" |
| 49 | + And I register with CA supplying username "binhn" and secret "7avZQLwcUe9q" on peers: |
| 50 | + | vp0 | |
| 51 | + |
| 52 | + When user "binhn" creates a chaincode spec of type "GOLANG" for chaincode "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02" aliased as "cc_spec" with args |
| 53 | + | funcName | arg1 | arg2 | arg3 | arg4 | |
| 54 | + | init | a | 100 | b | 200 | |
| 55 | + And user "binhn" sets ESCC to "my_escc" for chaincode spec "cc_spec" |
| 56 | + And user "binhn" creates a deployment proposal "proposal1" using chaincode spec "cc_spec" |
| 57 | + And user "binhn" sends proposal "proposal1" to endorsers with timeout of "2" seconds: |
| 58 | + | vp0 | vp1 | vp2 | vp3 | |
| 59 | + And user "binhn" stores their last result as "proposal1Responses" |
| 60 | + Then user "binhn" expects proposal responses "proposal1Responses" with status "200" from endorsers: |
| 61 | + | vp0 | vp1 | vp2 | vp3 | |
| 62 | + |
| 63 | + Examples: Orderer Options |
| 64 | + | ComposeFile | Waittime | |
| 65 | + | docker-compose-next-4.yml | 60 | |
| 66 | + |
| 67 | +# @doNotDecompose |
| 68 | + @FAB-314 |
| 69 | + Scenario Outline: Advanced deploy endorsement with VSCC for chaincode through GRPC to single endorser |
| 70 | + |
| 71 | + Given we compose "<ComposeFile>" |
| 72 | + And I register with CA supplying username "binhn" and secret "7avZQLwcUe9q" on peers: |
| 73 | + | vp0 | |
| 74 | + |
| 75 | + When user "binhn" creates a chaincode spec of type "GOLANG" for chaincode "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02" aliased as "cc_spec" with args |
| 76 | + | funcName | arg1 | arg2 | arg3 | arg4 | |
| 77 | + | init | a | 100 | b | 200 | |
| 78 | + And user "binhn" sets VSCC to "my_vscc" for chaincode spec "cc_spec" |
| 79 | + And user "binhn" creates a deployment proposal "proposal1" using chaincode spec "cc_spec" |
| 80 | + And user "binhn" sends proposal "proposal1" to endorsers with timeout of "2" seconds: |
| 81 | + | vp0 | vp1 | vp2 | vp3 | |
| 82 | + And user "binhn" stores their last result as "proposal1Responses" |
| 83 | + Then user "binhn" expects proposal responses "proposal1Responses" with status "200" from endorsers: |
| 84 | + | vp0 | vp1 | vp2 | vp3 | |
| 85 | + |
| 86 | + Examples: Orderer Options |
| 87 | + | ComposeFile | Waittime | |
| 88 | + | docker-compose-next-4.yml | 60 | |
| 89 | + |
0 commit comments