You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This behave based system test takes down all kafka
brokers then brings back the last 3.
Change-Id: I56275a6a38a979f6358218a6ec4786e0e50054e6
Signed-off-by: Latitia M Haskins <[email protected]>
Scenario: FAB-4686: Test taking down all kafka brokers and bringing back last 3
76
+
Given I have a bootstrapped fabric network of type kafka
77
+
And I wait "60" seconds
78
+
When a user deploys chaincode at path "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02" with ["init","a","1000","b","2000"] with name "mycc"
79
+
And I wait "30" seconds
80
+
Then the chaincode is deployed
81
+
When a user invokes on the chaincode named "mycc" with args ["invoke","a","b","10"]
82
+
And a user queries on the chaincode named "mycc" with args ["query","a"]
83
+
Then a user receives expected response of 990
84
+
85
+
Given "kafka0" is taken down
86
+
And I wait "5" seconds
87
+
When a user invokes on the chaincode named "mycc" with args ["invoke","a","b","10"]
88
+
When a user queries on the chaincode with args ["query","a"]
89
+
Then a user receives expected response of 980
90
+
91
+
Given "kafka1" is taken down
92
+
And "kafka2" is taken down
93
+
And "kafka3" is taken down
94
+
And I wait "5" seconds
95
+
When a user invokes on the chaincode named "mycc" with args ["invoke","a","b","10"]
96
+
And a user queries on the chaincode named "mycc" with args ["query","a"]
97
+
Then a user receives expected response of 980
98
+
And I wait "5" seconds
99
+
100
+
Given "kafka3" comes back up
101
+
And "kafka2" comes back up
102
+
And "kafka1" comes back up
103
+
And I wait "240" seconds
104
+
When a user invokes on the chaincode named "mycc" with args ["invoke","a","b","10"]
105
+
When a user queries on the chaincode named "mycc" with args ["query","a"]
0 commit comments