-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-3846]: Behave test feature file placeholders
This commits a number of placeholder tests that will be executed using the behave framework. This is only a small representation of the tests that will be written and executed. Execute these tests by typing: $ behave --tags=-skip or these tests will be executed when executing the runDailyTestSuite.sh file with the correct tags and will generate the results in junit with output files in the test/regression/daily directory according to the feature file name. I have also updated the .gitignore to ignore the xml files that are generated as a result of executing the tests for CI ingestion. Change-Id: I61fc34fd430aace182b8bdffe36d42ad73e2cc6f Signed-off-by: Latitia M Haskins <latitia.haskins@gmail.com>
- Loading branch information
Showing
7 changed files
with
178 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright IBM Corp. 2017 All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
Feature: Bootstrapping Hyperledger Fabric | ||
As a user I want to be able to bootstrap my fabric network | ||
|
||
@skip | ||
Scenario: FAB-3635: Configuration files generated correctly | ||
Given I have a bootstrapped fabric network | ||
When a user deploys chaincode | ||
Then the chaincode is deployed | ||
|
||
@skip | ||
Scenario: FAB-3854: Ensure genesis block contains correct data | ||
Given I have a bootstrapped fabric network | ||
When a user deploys chaincode | ||
Then the chaincode is deployed | ||
|
||
@skip | ||
Scenario: FAB-3856: Verify crypto material (non-TLS) | ||
Given I have a bootstrapped fabric network | ||
When a user deploys chaincode | ||
Then the chaincode is deployed | ||
|
||
@skip | ||
Scenario: FAB-3858: Verify crypto material (TLS) | ||
Given I have a bootstrapped fabric network | ||
When a user deploys chaincode | ||
Then the chaincode is deployed |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Copyright IBM Corp. 2017 All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
Feature: Orderer Service | ||
As a user I want to be able to have my transactions ordered correctly | ||
|
||
@skip | ||
Scenario: FAB-1335: Resilient Kafka Orderer and Brokers | ||
Given the kafka default replication factor is 3 | ||
And the orderer Batchsize MaxMessageCount is 20 | ||
And the orderer BatchTimeout is 10 minutes | ||
And a bootstrapped orderer network of type kafka with 3 brokers | ||
When 10 unique messages are broadcasted | ||
Then we get 10 successful broadcast responses | ||
When the topic partition leader is stopped | ||
And 10 unique messages are broadcasted | ||
Then we get 10 successful broadcast responses | ||
And all 20 messages are delivered in 1 block | ||
|
||
@skip | ||
Scenario: FAB-1306: Adding a new Kafka Broker | ||
Given a kafka cluster | ||
And an orderer connected to the kafka cluster | ||
When a new organization NewOrg certificate is added | ||
Then the NewOrg is able to connect to the kafka cluster | ||
|
||
@skip | ||
Scenario: FAB-1306: Multiple organizations in a kafka cluster, remove 1 | ||
Given a certificate from Org1 is added to the kafka orderer network | ||
And a certificate from Org2 is added to the kafka orderer network | ||
And an orderer connected to the kafka cluster | ||
When authorization for Org2 is removed from the kafka cluster | ||
Then the Org2 cannot connect to the kafka cluster | ||
|
||
@skip | ||
Scenario: FAB-1306: Multiple organizations in a cluster - remove all, reinstate 1. | ||
Given a certificate from Org1 is added to the kafka orderer network | ||
And a certificate from Org2 is added to the kafka orderer network | ||
And a certificate from Org3 is added to the kafka orderer network | ||
And an orderer connected to the kafka cluster | ||
When authorization for Org2 is removed from the kafka cluster | ||
Then the Org2 cannot connect to the kafka cluster | ||
And the orderer functions successfully | ||
When authorization for Org1 is removed from the kafka cluster | ||
Then the Org1 cannot connect to the kafka cluster | ||
And the orderer functions successfully | ||
When authorization for Org3 is removed from the kafka cluster | ||
Then the Org3 cannot connect to the kafka cluster | ||
And the zookeeper notifies the orderer of the disconnect | ||
And the orderer stops sending messages to the cluster | ||
When authorization for Org1 is added to the kafka cluster | ||
And I wait "15" seconds | ||
Then the Org1 is able to connect to the kafka cluster | ||
And the orderer functions successfully | ||
|
||
@skip | ||
Scenario: FAB-3851: Message Payloads Greater than 1MB | ||
Given I have a bootstrapped fabric network | ||
When a user deploys chaincode | ||
Then the chaincode is deployed | ||
|
||
@skip | ||
#@doNotDecompose | ||
Scenario Outline: FAB-3937: Message Broadcast | ||
Given a bootstrapped orderer network of type <type> | ||
When a message is broadcasted | ||
Then we get a successful broadcast response | ||
Examples: | ||
| type | | ||
| solo | | ||
| kafka | | ||
|
||
@skip | ||
Scenario Outline: FAB-3938: Broadcasted message delivered. | ||
Given a bootstrapped orderer network of type <type> | ||
When 1 unique messages are broadcasted | ||
Then all 1 messages are delivered within 10 seconds | ||
Examples: | ||
| type | | ||
| solo | | ||
| kafka | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters