From 63d357f62ba972f986a447930c3185da835df377 Mon Sep 17 00:00:00 2001 From: Viktor Kolomeyko Date: Thu, 31 May 2018 11:14:59 +0100 Subject: [PATCH] ENT-1986: Extend node HA test scenario to support LinearState. (#893) * ENT-1986: Introduce new parameter `scenarioType` * ENT-1986: Introduce `AbstractScenarioRunner` and refactor all the reusable bit of functionality into this class. * ENT-1986: Create `LinearStateScenarioRunner` to use `perftestcordapp` flows. * ENT-1986: More improvements to make Linear scenario runner work. --- .idea/runConfigurations/HA_Testing.xml | 2 +- experimental/ha-testing/README.md | 1 + experimental/ha-testing/build.gradle | 1 + .../corda/haTesting/AbstractScenarioRunner.kt | 73 ++++++++++ .../net/corda/haTesting/CashScenarioRunner.kt | 91 ++++++++++++ .../haTesting/LinearStateScenarioRunner.kt | 49 +++++++ .../main/kotlin/net/corda/haTesting/Main.kt | 16 ++- .../kotlin/net/corda/haTesting/RpcHelper.kt | 18 +++ .../net/corda/haTesting/ScenarioRunner.kt | 131 ------------------ 9 files changed, 249 insertions(+), 133 deletions(-) create mode 100644 experimental/ha-testing/src/main/kotlin/net/corda/haTesting/AbstractScenarioRunner.kt create mode 100644 experimental/ha-testing/src/main/kotlin/net/corda/haTesting/CashScenarioRunner.kt create mode 100644 experimental/ha-testing/src/main/kotlin/net/corda/haTesting/LinearStateScenarioRunner.kt delete mode 100644 experimental/ha-testing/src/main/kotlin/net/corda/haTesting/ScenarioRunner.kt diff --git a/.idea/runConfigurations/HA_Testing.xml b/.idea/runConfigurations/HA_Testing.xml index 516adb20e2..fabfd24d7d 100644 --- a/.idea/runConfigurations/HA_Testing.xml +++ b/.idea/runConfigurations/HA_Testing.xml @@ -2,7 +2,7 @@