Merge "Add "required" to RPSScenarioRunner plugin"
This commit is contained in:
commit
6d0f2b5bc2
@ -151,6 +151,7 @@ class RPSScenarioRunner(runner.ScenarioRunner):
|
||||
"minimum": 1
|
||||
}
|
||||
},
|
||||
"required": ["type", "times", "rps"],
|
||||
"additionalProperties": False
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,8 @@ class RPSScenarioRunnerTestCase(test.TestCase):
|
||||
def test_rps_parameter_validate(self):
|
||||
config = {
|
||||
"type": "rps",
|
||||
"rps": 0.0000001
|
||||
"rps": 0.0000001,
|
||||
"times": 1
|
||||
}
|
||||
rps.RPSScenarioRunner.validate(config)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user