fabric-samples
fabric-samples copied to clipboard
Asset transfer private data test case asset_transfer_test.go failing
=== RUN TestAgreeToTransferSuccessful 2022/06/19 13:18:22 ReadAsset: collection assetCollection, ID id1 2022/06/19 13:18:22 AgreeToTransfer Put: collection Org1TestmspPrivateCollection, ID id1 2022/06/19 13:18:22 AgreeToTransfer Put: collection assetCollection, ID id1, Key transferAgreementid1 asset_transfer_test.go:215: Error Trace: asset_transfer_test.go:215 Error: Not equal: expected: []byte{0x6d, 0x79, 0x4f, 0x72, 0x67, 0x31, 0x55, 0x73, 0x65, 0x72, 0x69, 0x64} actual : []byte{0x9b, 0x23, 0xab, 0x83, 0x55, 0x2c, 0x7a, 0xb8, 0x9d} Diff: --- Expected +++ Actual @@ -1,3 +1,3 @@ -([]uint8) (len=12) { - 00000000 6d 79 4f 72 67 31 55 73 65 72 69 64 |myOrg1Userid| +([]uint8) (len=9) { + 00000000 9b 23 ab 83 55 2c 7a b8 9d |.#..U,z..| } Test: TestAgreeToTransferSuccessful --- FAIL: TestAgreeToTransferSuccessful (0.00s) === RUN TestTransferAssetSuccessful 2022/06/19 13:18:22 TransferAsset: verify asset exists ID id1 2022/06/19 13:18:22 ReadAsset: collection assetCollection, ID id1 asset_transfer_test.go:264: Error Trace: asset_transfer_test.go:264 Error: Received unexpected error: failed transfer verification: error: submitting client identity does not own asset Test: TestTransferAssetSuccessful --- FAIL: TestTransferAssetSuccessful (0.00s) === RUN TestTransferAssetWithoutAnAgreement 2022/06/19 13:18:22 TransferAsset: verify asset exists ID id1 2022/06/19 13:18:22 ReadAsset: collection assetCollection, ID id1 asset_transfer_test.go:328: Error Trace: asset_transfer_test.go:328 Error: Error message not equal: expected: "BuyerID not found in TransferAgreement for id1" actual : "failed transfer verification: error: submitting client identity does not own asset" Test: TestTransferAssetWithoutAnAgreement --- FAIL: TestTransferAssetWithoutAnAgreement (0.00s) === RUN TestTransferAssetNonMatchingAppraisalValue 2022/06/19 13:18:22 TransferAsset: verify asset exists ID id1 2022/06/19 13:18:22 ReadAsset: collection assetCollection, ID id1 asset_transfer_test.go:355: Error Trace: asset_transfer_test.go:355 Error: "failed transfer verification: error: submitting client identity does not own asset" does not contain "failed transfer verification: hash for appraised value" Test: TestTransferAssetNonMatchingAppraisalValue --- FAIL: TestTransferAssetNonMatchingAppraisalValue (0.00s)
PR https://github.com/hyperledger/fabric-samples/pull/771 addresses the above test case issue.