Added sample base scenario for shaiker_controller

Also changed type of controllers in config for cloud_nodes_context
This commit is contained in:
Sergey Belous
2015-03-16 16:00:27 +00:00
parent 9bcda7d581
commit ccc3325acc
2 changed files with 13 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ class CloudNodesContext(base.Context):
"additionalProperties": False,
"properties": {
"controllers": {
"type": "list",
"type": "array",
"default": []
}
}

View File

@@ -1 +1,12 @@
## initial version
from rally.benchmark.scenarios import base
class shaiker_controller(base.Scenario):
"""Sample plugin for shaiker."""
@base.scenario()
def sample_print(self):
print "its work"
print "controllers: ", self.context["controllers"]
self.context["nodes"] = ["10", "11", "12"]
print "nodes: ", self.context["nodes"]