From 91ef5880965a98cbeeeefcb37414cb476af356a3 Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Fri, 15 Apr 2016 09:39:54 +0300 Subject: [PATCH] Validate scenario arguments We have a lot of validators for scenarios, but we do not check input arguments. There are two cases: 1) user forget specify some argument; 2) user specify redundant argument In both cases, we will get "TypeError" for each iteration. This validator is not implemented like others, since it doesn't need constructed clients and it looks like more syntax check. Also, this patch fixes one of our samples: samples/tasks/scenarios/dummy/dummy-random-action.[json/yaml] Change-Id: Id3aad571dfc93f8074c724595440979cfd435e2c --- samples/tasks/scenarios/dummy/dummy-random-action.json | 2 +- samples/tasks/scenarios/dummy/dummy-random-action.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/tasks/scenarios/dummy/dummy-random-action.json b/samples/tasks/scenarios/dummy/dummy-random-action.json index 098749d3..8f5e67ca 100644 --- a/samples/tasks/scenarios/dummy/dummy-random-action.json +++ b/samples/tasks/scenarios/dummy/dummy-random-action.json @@ -2,7 +2,7 @@ "Dummy.dummy_random_action": [ { "args": { - "atomics_num": 5, + "actions_num": 5, "sleep_min": 0, "sleep_max": 2 }, diff --git a/samples/tasks/scenarios/dummy/dummy-random-action.yaml b/samples/tasks/scenarios/dummy/dummy-random-action.yaml index 45e97a66..52a3261a 100644 --- a/samples/tasks/scenarios/dummy/dummy-random-action.yaml +++ b/samples/tasks/scenarios/dummy/dummy-random-action.yaml @@ -2,7 +2,7 @@ Dummy.dummy_random_action: - args: - atomics_num: 5 + actions_num: 5 sleep_min: 0 sleep_max: 2 runner: