Skip to content

Commit 8ccbd52

Browse files
committed
FAB-3505 Feature File verifying e2e test in Behave
Change-Id: I0943d457b2693affe538d356875a710ecf5afd52 Signed-off-by: nishi.nidamarty <[email protected]>
1 parent f3c61e6 commit 8ccbd52

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

test/feature/FAB-3505.feature

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#Copyright IBM Corp. 2017 All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
16+
Feature: FAB-3505 Test chaincode_example02
17+
As a user I want to run chaincode example02
18+
19+
Scenario Outline: Test chaincode example02 deploy
20+
Given I have a bootstrapped fabric network of type <type>
21+
When a user deploys chaincode at path "github.com/hyperledger/fabric/chaincode_example02" with ["init", "a", "1000" , "b", "2000"] with name "mycc"
22+
Then the chaincode is deployed
23+
When a user queries on the chaincode named "mycc" with args ["query", "a"]
24+
Then a user receives expected response is 1000
25+
When a user invokes on the chaincode named "mycc" with args ["txId1", "invoke", "a", 10]
26+
When a user queries on the chaincode named "mycc" with args ["query", "a"]
27+
Then a user receives expected response is 990
28+
29+
Given "Peer1" is taken down
30+
When a user invokes on the chaincode named "mycc" with args ["txId1", "invoke", "a", 10]
31+
And I wait "15" seconds
32+
And "Peer1" comes back up
33+
When a user queries on the chaincode named "mycc" with args ["query", "a"] on "Peer1"
34+
Then a user receives expected response is 980
35+
36+
37+
Examples:
38+
| type |
39+
| solo |
40+
| kafka |

0 commit comments

Comments
 (0)