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

Construct a set of data types to test data-model from SDKs side #2020

Open
0x009922 opened this issue Mar 29, 2022 · 3 comments
Open

Construct a set of data types to test data-model from SDKs side #2020

0x009922 opened this issue Mar 29, 2022 · 3 comments
Assignees
Labels
Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST Tests

Comments

@0x009922
Copy link
Contributor

The Problem

There are a lot of data types in Iroha Data Model. Each SDK (Java, Swift, JS etc) has to generate the schema and test generated codecs with heavy e2e tests to cover ideally each data type.

The Solution

Core team could generate a set of data type samples with their encoded form, thus SDK developers can re-use it on their own to ensure the correctness of their SCALE infrastructure.

It could:

  • reduce tests duplication between SDKs
  • reduce amount of heavy e2e tests in SDKs
  • increase e2e tests "precision" due to moving of "data-model failure noise" into another scope
@0x009922 0x009922 added Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST Tests labels Mar 29, 2022
@0x009922
Copy link
Contributor Author

Created such samples for JS SDK: output.json.

@appetrosyan
Copy link
Contributor

Dead link

@0x009922
Copy link
Contributor Author

0x009922 commented May 6, 2022

@appetrosyan, here is a permalink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST Tests
Projects
None yet
Development

No branches or pull requests

4 participants