Skip to content

Commit

Permalink
Annotations rework
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Dulger <[email protected]>
  • Loading branch information
Dmitriy Dulger committed Oct 16, 2024
1 parent 021cbf6 commit afef320
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ class InstructionsTest : IrohaTest<Iroha2Client>() {
}

@Test
@Feature("Accounts")
@Story("Account sets key value pair")
@Permission("CanSetKeyValueInDomain")
@SdkTestId("set_key_value_pair_for_another_account_domain_defenition")
@WithIroha([DefaultGenesis::class])
fun `domain metadata set key value with permissions`(): Unit = runBlocking {
val domainId = DomainId(randomAlphabetic(10).asName())
Expand Down Expand Up @@ -920,6 +924,10 @@ class InstructionsTest : IrohaTest<Iroha2Client>() {
}

@Test
@Permission("no_permission_required")
@Feature("Query")
@Story("Query find all accounts in genesis and apply it")
@SdkTestId("query_all_accounts_in_genesis")
@WithIroha([FatGenesis::class])
fun `fat genesis apply`(): Unit = runBlocking {
QueryBuilder.findAllAccounts()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -826,10 +826,9 @@ class QueriesTest : IrohaTest<Iroha2Client>() {
}

@WithIroha([WithManyDomains::class])
@Story(
"Iroha2 returns 10 results per request. This test checks new internal implementation of cursor mechanism" +
"that is also implemented in Iroha2. Without it this test would fail with only 10 results returned",
)
@Feature("Domains")
@Query("FindAllDomains")
@Story("Account queries all domains using cursor pagination")
@SdkTestId("querying_multiple_domains_with_cursor_test")
fun `find multiple domains with cursor test`(): Unit = runBlocking {
val domains = QueryBuilder.findAllDomains()
Expand Down

0 comments on commit afef320

Please sign in to comment.