Skip to content

Commit

Permalink
Finish cleanup for riddlc 0.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
reid-spencer committed Sep 15, 2023
1 parent f9725a4 commit c5f6e09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
11 changes: 4 additions & 7 deletions src/main/riddl/test/handler.riddl
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
handler TestGateway is {
on command TestGateway.CreateScenario {
scenario clean is {
given "no scenario is currently running"
then "create all the entities as defined in the CreateScenario command"
if "no scenario is currently running" then {
"create all the entities as defined in the CreateScenario command"
}
}

on command TestGateway.RunScenario {
scenario WhileScenarioRunning is {
given "CreateScenario has been called"
and "each of the TenantInfo values provided in CreateTenants"
then "create a tenant with matching content, 0 members, and 0 organizations"
if "CreateScenario has been called and each of the TenantInfo values provided in CreateTenants" then {
"create a tenant with matching content, 0 members, and 0 organizations"
}
}
}
10 changes: 5 additions & 5 deletions src/main/riddl/test/messages.riddl
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ type Percentage is range(0,100)

// value
record EntityParameters is {
tenants: Integer(1),
organizations: Integer(1),
members: Integer(2),
orders: Integer(2),
events: Integer(10)
tenants: Integer, // 1
organizations: Integer, // (1),
members: Integer, // (2),
orders: Integer, // (2),
events: Integer // (10)
} described as {
| These are the parameters for the CreateScenario command. They specify how
| many of the various entities to create as an upper bound of a random number
Expand Down

0 comments on commit c5f6e09

Please sign in to comment.