From c5f6e0949d9571d41a9753b2dbbeff006d6e7fe3 Mon Sep 17 00:00:00 2001 From: reidspencer Date: Fri, 15 Sep 2023 10:15:27 -0400 Subject: [PATCH] Finish cleanup for riddlc 0.24.0 --- src/main/riddl/test/handler.riddl | 11 ++++------- src/main/riddl/test/messages.riddl | 10 +++++----- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/main/riddl/test/handler.riddl b/src/main/riddl/test/handler.riddl index 50a32edfc..8dfdbd62e 100644 --- a/src/main/riddl/test/handler.riddl +++ b/src/main/riddl/test/handler.riddl @@ -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" } } } diff --git a/src/main/riddl/test/messages.riddl b/src/main/riddl/test/messages.riddl index fb3e083c2..6ba51e5ca 100644 --- a/src/main/riddl/test/messages.riddl +++ b/src/main/riddl/test/messages.riddl @@ -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