From 2bc4942f3a3707a3a136ba671bebc82d93e8fbaa Mon Sep 17 00:00:00 2001 From: FrancescoFioraEst Date: Wed, 26 Jun 2024 14:18:30 +0100 Subject: Add fail scenarios in csit Add fail scenarios (prime, deploy, undeploy, delete and deprime) in csit using participant simulator. Issue-ID: POLICY-5064 Change-Id: I39de4633b7465f857bb00937a0365820c3535bfe Signed-off-by: FrancescoFioraEst --- csit/resources/tests/data/RunningCommand.json | 5 ----- .../tests/data/SettingSimPropertiesFail.json | 20 ++++++++++++++++++++ .../tests/data/SettingSimPropertiesSuccess.json | 20 ++++++++++++++++++++ 3 files changed, 40 insertions(+), 5 deletions(-) delete mode 100644 csit/resources/tests/data/RunningCommand.json create mode 100644 csit/resources/tests/data/SettingSimPropertiesFail.json create mode 100644 csit/resources/tests/data/SettingSimPropertiesSuccess.json (limited to 'csit/resources/tests/data') diff --git a/csit/resources/tests/data/RunningCommand.json b/csit/resources/tests/data/RunningCommand.json deleted file mode 100644 index 56980e64..00000000 --- a/csit/resources/tests/data/RunningCommand.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "instantiationCommand": { - "orderedState": "RUNNING" - } -} diff --git a/csit/resources/tests/data/SettingSimPropertiesFail.json b/csit/resources/tests/data/SettingSimPropertiesFail.json new file mode 100644 index 00000000..0c6402bd --- /dev/null +++ b/csit/resources/tests/data/SettingSimPropertiesFail.json @@ -0,0 +1,20 @@ +{ + "deploySuccess": false, + "undeploySuccess": false, + "lockSuccess": false, + "unlockSuccess": false, + "deleteSuccess": false, + "updateSuccess": false, + "migrateSuccess": false, + "primeSuccess": false, + "deprimeSuccess": false, + "deployTimerMs": 100, + "undeployTimerMs": 100, + "lockTimerMs": 100, + "unlockTimerMs": 100, + "updateTimerMs": 100, + "migrateTimerMs": 100, + "deleteTimerMs": 100, + "primeTimerMs": 100, + "deprimeTimerMs": 100 +} diff --git a/csit/resources/tests/data/SettingSimPropertiesSuccess.json b/csit/resources/tests/data/SettingSimPropertiesSuccess.json new file mode 100644 index 00000000..e0673322 --- /dev/null +++ b/csit/resources/tests/data/SettingSimPropertiesSuccess.json @@ -0,0 +1,20 @@ +{ + "deploySuccess": true, + "undeploySuccess": true, + "lockSuccess": true, + "unlockSuccess": true, + "deleteSuccess": true, + "updateSuccess": true, + "migrateSuccess": true, + "primeSuccess": true, + "deprimeSuccess": true, + "deployTimerMs": 100, + "undeployTimerMs": 100, + "lockTimerMs": 100, + "unlockTimerMs": 100, + "updateTimerMs": 100, + "migrateTimerMs": 100, + "deleteTimerMs": 100, + "primeTimerMs": 100, + "deprimeTimerMs": 100 +} -- cgit 1.2.3-korg