hyperledger / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
432 stars 276 forks source link

Develop Genesis test data Generators for SDKs Test Preparations #3414

Open AlexStroke opened 1 year ago

AlexStroke commented 1 year ago

We aim to streamline our testing process by introducing a genesis test data generator. This tool will encapsulate test preconditions within a custom Genesis block, allowing each test to focus solely on the assertion step.

alexstroke1 commented 1 month ago

Scenario to check and automation:

Register the domain "kingdom". Register the account "bob@kingdom". Register the trigger "trigger$kingdom" to mint the asset "rose#wonderland". Execute the trigger "trigger$kingdom" by the user "alice@wonderland". Grant the permission token "CanExecuteUserTrigger" to "bob@kingdom". Execute the trigger "trigger$kingdom" by the user "bob@kingdom". Revoke the permission token "CanExecuteUserTrigger" from "bob@kingdom". Attempt to execute the trigger "trigger$kingdom" again by the user "bob@kingdom".