diff --git a/test/module/shared_model/validators/commands_validator_test.cpp b/test/module/shared_model/validators/commands_validator_test.cpp index 8d47033c00..20a60747ee 100644 --- a/test/module/shared_model/validators/commands_validator_test.cpp +++ b/test/module/shared_model/validators/commands_validator_test.cpp @@ -219,6 +219,7 @@ TEST(CommandsValidatorTest, StatelessValidTest) { std::string valid_role_name = "user"; std::string valid_account_name = "admin"; std::string valid_domain_id = "ru"; + uint8_t valid_precision = 42; std::vector valid_role_permissions; iroha::protocol::GrantablePermission valid_grantable_permission = iroha::protocol::GrantablePermission ::can_add_my_signatory; @@ -256,6 +257,10 @@ TEST(CommandsValidatorTest, StatelessValidTest) { generateCreateAccount( valid_account_name, valid_domain_id, valid_public_key)); + // Create Asset + payload->add_commands()->mutable_create_asset()->CopyFrom(generateCreateAsset( + valid_account_name, valid_domain_id, valid_precision)); + // Create Domain payload->add_commands()->mutable_create_domain()->CopyFrom( generateCreateDomain(valid_domain_id, valid_role_name)); @@ -313,6 +318,7 @@ TEST(CommandsValidatorTest, StatelessInvalidTest) { payload->add_commands()->mutable_add_signatory()->CopyFrom(AddSignatory()); payload->add_commands()->mutable_append_role()->CopyFrom(AppendRole()); payload->add_commands()->mutable_create_account()->CopyFrom(CreateAccount()); + payload->add_commands()->mutable_create_asset()->CopyFrom(CreateAsset()); payload->add_commands()->mutable_create_domain()->CopyFrom(CreateDomain()); payload->add_commands()->mutable_create_role()->CopyFrom(CreateRole()); payload->add_commands()->mutable_grant_permission()->CopyFrom( @@ -329,5 +335,5 @@ TEST(CommandsValidatorTest, StatelessInvalidTest) { // in total there should be 13 reasons of bad answer: 12 for each command + 1 // for transaction metadata - ASSERT_EQ(answer.getReasonsMap().size(), 13); + ASSERT_EQ(answer.getReasonsMap().size(), 14); }