github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/bddtests/peer_cli.feature (about) 1 # 2 # Test Command Line Features of a Peer 3 # 4 @preV1 5 Feature: Peer Command Line Interface 6 As a User of the Fabric 7 I want the command line interface to work correctly 8 9 Scenario: List Peers when none are up 10 Given we compose "docker-compose-1-empty.yml" 11 When I execute "peer network list" in container empty 12 Then the command should not complete successfully 13 14 Scenario: List Peers when one is up 15 Given we compose "docker-compose-1.yml" 16 When I execute "peer network list" in container vp0 17 Then the command should complete successfully 18 And stdout should contain JSON 19 And I should get result with "{"Peers":[]}" 20 21 Scenario: List Peers when two are up 22 Given we compose "docker-compose-2.yml" 23 When I execute "peer network list" in container vp0 24 Then the command should complete successfully 25 And stdout should contain JSON with "Peers" array of length 1