Merge "Add "required" to RPSScenarioRunner plugin"

This commit is contained in:
Jenkins 2016-05-12 18:15:31 +00:00 committed by Gerrit Code Review
commit 6d0f2b5bc2
2 changed files with 3 additions and 1 deletions

View File

@ -151,6 +151,7 @@ class RPSScenarioRunner(runner.ScenarioRunner):
"minimum": 1
}
},
"required": ["type", "times", "rps"],
"additionalProperties": False
}

View File

@ -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)