Merge "Fix schema definition admin_flavor_create"
This commit is contained in:
@@ -40,14 +40,19 @@ common_admin_flavor_create = {
|
||||
"json-schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {"type": "string"},
|
||||
"ram": {"type": "integer", "minimum": 1},
|
||||
"vcpus": {"type": "integer", "minimum": 1},
|
||||
"disk": {"type": "integer"},
|
||||
"id": {"type": "integer"},
|
||||
"swap": {"type": "integer"},
|
||||
"rxtx_factor": {"type": "integer"},
|
||||
"OS-FLV-EXT-DATA:ephemeral": {"type": "integer"}
|
||||
"flavor": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {"type": "string",
|
||||
"exclude_tests": ["gen_str_min_length"]},
|
||||
"ram": {"type": "integer", "minimum": 1},
|
||||
"vcpus": {"type": "integer", "minimum": 1},
|
||||
"disk": {"type": "integer"},
|
||||
"id": {"type": "integer",
|
||||
"exclude_tests": ["gen_none", "gen_string"]
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,6 +144,9 @@ class BasicGeneratorSet(object):
|
||||
continue
|
||||
|
||||
name = generator.__name__
|
||||
if ("exclude_tests" in schema and
|
||||
name in schema["exclude_tests"]):
|
||||
continue
|
||||
if path is not None:
|
||||
name = "%s_%s" % ("_".join(path), name)
|
||||
scenarios.append({
|
||||
|
||||
Reference in New Issue
Block a user