Test cases: TestChainQueries, TestChainCodeInvoke
error exception as below:
`
GOROOT=/usr/local/go
GOPATH=/home/crazybit/study/go/workspace
/usr/local/go/bin/go test -c -o "/tmp/TestChainQueries in chain_queries_test.gogo" github.com/hyperledger/fabric-sdk-go/test/integration
"/tmp/TestChainQueries in chain_queries_test.gogo" -test.v -test.run ^TestChainQueries$
2017/04/01 18:31:55 Using config file: ../fixtures/config/config_test.yaml
2017/04/01 18:31:55 fabric_sdk_go Logging level: debug
18:31:55.405 [SW_BCCSP] DEBU : KeyStore opened at [/tmp/keystore]...done
18:31:55.405 [BCCSP_FACTORY] DEBU : Initialize BCCSP [SW]
18:31:55.405 [fabric_sdk_go] INFO : KeyStore path [/tmp/enroll_user] missing [false]: [%!s()]
18:31:55.405 [SW_BCCSP] DEBU : Loading private key [6434de17974a1e251255979ebd2ea24e800b8736c769a5c475bb8ec56105450f] at [/tmp/keystore/6434de17974a1e251255979ebd2ea24e800b8736c769a5c475bb8ec56105450f_sk]...
18:31:55.418 [fabric_sdk_go] INFO : Constructed Chain instance: &{mychannel true map[] 200 map[] 0xc4202541c0 }
18:31:55.419 [fabric_sdk_go] INFO : Using config file: ../fixtures/config/config_test.yaml
18:31:55.419 [fabric_sdk_go] INFO : fabric_sdk_go Logging level: debug
18:31:55.587 [fabric_sdk_go] INFO : KeyStore path [/tmp/enroll_user] missing [false]: [%!s()]
18:31:55.588 [SW_BCCSP] DEBU : Loading private key [6434de17974a1e251255979ebd2ea24e800b8736c769a5c475bb8ec56105450f] at [/tmp/keystore/6434de17974a1e251255979ebd2ea24e800b8736c769a5c475bb8ec56105450f_sk]...
18:31:55.588 [fabric_sdk_go] INFO : Constructed Chain instance: &{mychannel true map[] 200 map[] 0xc420460000 }
18:31:55.588 [fabric_sdk_go] DEBU : packager: chaincodePath: github.com/example_cc, chaincodeType:
18:31:55.588 [fabric_sdk_go] DEBU : packager: type golang
18:31:55.588 [fabric_sdk_go] DEBU : GOPATH environment variable=/home/crazybit/study/go/workspace/src/github.com/hyperledger/fabric-sdk-go/test/fixtures
18:31:55.588 [fabric_sdk_go] DEBU : projDir variable=/home/crazybit/study/go/workspace/src/github.com/hyperledger/fabric-sdk-go/test/fixtures/src/github.com/example_cc
18:31:55.588 [fabric_sdk_go] DEBU : generateTarGz for /home/crazybit/study/go/workspace/src/github.com/hyperledger/fabric-sdk-go/test/fixtures/src/github.com/example_cc/example_cc.go
18:31:55.589 [fabric_sdk_go] DEBU : Send ProposalRequest to peer :localhost:7056
18:31:55.589 [fabric_sdk_go] DEBU : Send ProposalRequest to peer :localhost:7051
18:31:55.594 [fabric_sdk_go] DEBU : localhost:7056 ProposalResponsePayload Extension ChaincodeAction Results
18:31:55.594 [fabric_sdk_go] DEBU : Receive Proposal ChaincodeActionResponse :&{localhost:7056 200 0xc42036fa00 0xc4204616c0}
SendInstallProposal Endorser 'localhost:7056' return ProposalResponse status:200
SendInstallProposal Endorser 'localhost:7051' return ProposalResponse status:200
chain_queries_test.go:46: instantiateCC return error: SendInstantiateProposal Endorser localhost:7051 return error: Error calling endorser 'localhost:7051': rpc error: code = 2 desc = Failed to deserialize creator identity, err MSP Org1MSP is unknown
18:31:55.598 [fabric_sdk_go] DEBU : localhost:7051 ProposalResponsePayload Extension ChaincodeAction Results
18:31:55.598 [fabric_sdk_go] DEBU : Receive Proposal ChaincodeActionResponse :&{localhost:7051 200 0xc42036fa00 0xc420255300}
18:31:55.598 [fabric_sdk_go] DEBU : Send ProposalRequest to peer :localhost:7051
18:31:55.599 [fabric_sdk_go] DEBU : Receive Error Response :
`
The SDK still doesn't support joining the channel, this has to be done using some other SDK, e.g. Node.JS. We recently added create channel, but our end to end test still doesn't do it. From our README:
Run create-channel.js and join-channel.js in fabric-sdk-node test.
Customized settings in the integration_test/test_resources/config/config_test.yaml
Where is this file? Is it /test/fixtures/config/config_test.yaml?