github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/bddtests/utxo.feature (about)

     1  #
     2  # Test openchain Peers
     3  #
     4  # Tags that can be used and will affect test internals:
     5  #
     6  #  @doNotDecompose will NOT decompose the named compose_yaml after scenario ends.  Useful for setting up environment and reviewing after scenario.
     7  #
     8  #  @chaincodeImagesUpToDate use this if all scenarios chaincode images are up to date, and do NOT require building.  BE SURE!!!
     9  
    10  #@chaincodeImagesUpToDate
    11  @preV1
    12  Feature: utxo
    13      As an openchain developer
    14      I want to be able to launch a 3 peers
    15  
    16    #@doNotDecompose
    17    @wip
    18    @issueUtxo
    19    Scenario: UTXO chaincode test
    20      Given we compose "docker-compose-1.yml"
    21        And I wait "1" seconds
    22        When requesting "/chain" from "vp0"
    23        Then I should get a JSON response with "height" = "1"
    24        When I deploy chaincode "github.com/openblockchain/obc-peer/examples/chaincode/go/utxo" with ctor "init" to "vp0"
    25        ||
    26        ||
    27  
    28        Then I should have received a chaincode name
    29        Then I wait up to "60" seconds for transaction to be committed to all peers
    30  
    31        When requesting "/chain" from "vp0"
    32        Then I should get a JSON response with "height" = "2"
    33  
    34        When I invoke chaincode "map" function name "execute" on "vp0"
    35          | arg1 |
    36          | AQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////9NBP//AB0BBEVUaGUgVGltZXMgMDMvSmFuLzIwMDkgQ2hhbmNlbGxvciBvbiBicmluayBvZiBzZWNvbmQgYmFpbG91dCBmb3IgYmFua3P/////AQDyBSoBAAAAQ0EEZ4r9sP5VSCcZZ/GmcTC3EFzWqCjgOQmmeWLg6h9h3rZJ9rw/TO84xPNVBOUewRLeXDhN97oLjVeKTHAra/EdX6wAAAAA |
    37        Then I should have received a transactionID
    38        Then I wait up to "25" seconds for transaction to be committed to all peers
    39  
    40        When requesting "/chain" from "vp0"
    41        Then I should get a JSON response with "height" = "3"
    42  
    43      #  When I query chaincode "map" function name "get" on "vp0":
    44      #    | arg1|
    45      #    | key1 |
    46      #  Then I should get a JSON response with "OK" = "value1"