Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset transfer private data test case asset_transfer_test.go failing #770

Open
knarayan opened this issue Jun 19, 2022 · 2 comments
Open

Comments

@knarayan
Copy link
Contributor

No description provided.

@knarayan
Copy link
Contributor Author

=== 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)

@knarayan
Copy link
Contributor Author

PR #771 addresses the above test case issue.

@knarayan knarayan changed the title Asset transfer private data test case asset_transfer_test.go filing Asset transfer private data test case asset_transfer_test.go failing Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant