Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-17791

Error: No discovery targets found when replacing v1.4 sdk-node modules with v2.1 equivalents in fabric-chaincode-integration

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Low
    • Resolution: Won't Do
    • v2.1.0
    • None
    • None
    • (Please add steps to reproduce)

    Description

      The fabric-chaincode-integration tool is published in the fabric-test repository and it's purpose is to be ran against some chaincode, which is runs a set of cucumber tests against to verify it behaves as expected. It makes use of sdk-node modules to register users in the network, for example.
      I started down this rabbit by attempting to update these modules from previous versions to v2.1, in doing so changing some of the functionality that's been removed under v2.1

      When replacing (https://github.com/hyperledger/fabric-test/tree/master/tools/chaincode-integration/src/step-definitions/identity) functionality with equivalent v2.1 functionality (as instructed by fabcar sample), I see:

      2020-04-23T12:06:35.653Z error [cc-integration:./src/step-definitions/hooks.ts No discovery targets found
      2020-04-23T12:06:35.653Z error [cc-integration:./src/step-definitions/hooks.ts Error: No discovery targets found
      at NetworkImpl._initializeInternalChannel (/Users/heatherp/fabric-contract-api-go/node_modules/fabric-network/lib/network.js:89:27)

      This is the line complaining: https://github.com/hyperledger/fabric-sdk-node/blob/fe2d00bb78faa85c4ad012b144814c648a70537d/fabric-network/src/network.ts#L119

      So I think the problem starts with: https://github.com/hyperledger/fabric-sdk-node/blob/fe2d00bb78faa85c4ad012b144814c648a70537d/fabric-network/src/network.ts#L108
      I checked that the mpsid from gateway.getIdentity().mspid matches org.mspid. - see pushed branch below

       

      Thoughts / Questions:

      • when "single-org" and "three-org" network tests run together, only "single-org" fails? but "three-org" fails when ran on it's own too..
      • often see Parsed peers for Orderer [], not sure Orderer [] is the correct organisation name?

      Links:
      chaincode-integration: https://github.com/hyperledger/fabric-test/tree/master/tools/chaincode-integration

      changes I couldn't make work to pushed branch: https://github.com/heatherlp/fabric-test/commit/fff7089a1e32487c2601499298f7583f5d34fcee

      Attachments

        Activity

          People

            Unassigned Unassigned
            heatherp Heather Pollard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: