Upgrade jsonschema upper version
In [1], requirements.upper-constraints.txt, jsonschema library upper version was bumped to 3.0.1. To avoid CI problems like [2], we should remove the version limitation in this project. [1]https://review.opendev.org/#/c/649789/ [2]https://d4b9765f6ab6e1413c28-81a8be848ef91b58aa974b4cb791a408.ssl.cf5.rackcdn.com/680427/2/check/neutron-rally-task/01b2c1c/controller/logs/devstacklog.txt.gz Closes-Bug: #1843282 Change-Id: I0ac00de6987de8835d9cac8f73fdae00d2f212d6
This commit is contained in:
parent
17d9b3e3c0
commit
60d39f3a37
|
@ -24,7 +24,7 @@ for each enum. (e.g. TaskStatus)
|
||||||
from rally.common import utils
|
from rally.common import utils
|
||||||
|
|
||||||
|
|
||||||
JSON_SCHEMA = "http://json-schema.org/draft-04/schema"
|
JSON_SCHEMA = "http://json-schema.org/draft-07/schema"
|
||||||
|
|
||||||
|
|
||||||
class _TaskStatus(utils.ImmutableMixin, utils.EnumMixin):
|
class _TaskStatus(utils.ImmutableMixin, utils.EnumMixin):
|
||||||
|
|
|
@ -160,7 +160,7 @@ class RPSScenarioRunner(runner.ScenarioRunner):
|
||||||
"description": "Generate constant requests per second "
|
"description": "Generate constant requests per second "
|
||||||
"during the whole workload.",
|
"during the whole workload.",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"exclusiveMinimum": True,
|
"exclusiveMinimum": 0,
|
||||||
"minimum": 0
|
"minimum": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,7 +26,7 @@ from rally.task import sla
|
||||||
class IterationTime(sla.SLA):
|
class IterationTime(sla.SLA):
|
||||||
"""Maximum time for one iteration in seconds."""
|
"""Maximum time for one iteration in seconds."""
|
||||||
CONFIG_SCHEMA = {"type": "number", "minimum": 0.0,
|
CONFIG_SCHEMA = {"type": "number", "minimum": 0.0,
|
||||||
"exclusiveMinimum": True}
|
"exclusiveMinimum": 0.0}
|
||||||
|
|
||||||
def __init__(self, criterion_value):
|
def __init__(self, criterion_value):
|
||||||
super(IterationTime, self).__init__(criterion_value)
|
super(IterationTime, self).__init__(criterion_value)
|
||||||
|
|
|
@ -27,7 +27,7 @@ from rally.task import sla
|
||||||
class MaxAverageDuration(sla.SLA):
|
class MaxAverageDuration(sla.SLA):
|
||||||
"""Maximum average duration of one iteration in seconds."""
|
"""Maximum average duration of one iteration in seconds."""
|
||||||
CONFIG_SCHEMA = {"type": "number", "minimum": 0.0,
|
CONFIG_SCHEMA = {"type": "number", "minimum": 0.0,
|
||||||
"exclusiveMinimum": True}
|
"exclusiveMinimum": 0.0}
|
||||||
|
|
||||||
def __init__(self, criterion_value):
|
def __init__(self, criterion_value):
|
||||||
super(MaxAverageDuration, self).__init__(criterion_value)
|
super(MaxAverageDuration, self).__init__(criterion_value)
|
||||||
|
|
|
@ -38,7 +38,7 @@ class Outliers(sla.SLA):
|
||||||
"max": {"type": "integer", "minimum": 0},
|
"max": {"type": "integer", "minimum": 0},
|
||||||
"min_iterations": {"type": "integer", "minimum": 3},
|
"min_iterations": {"type": "integer", "minimum": 3},
|
||||||
"sigmas": {"type": "number", "minimum": 0.0,
|
"sigmas": {"type": "number", "minimum": 0.0,
|
||||||
"exclusiveMinimum": True}
|
"exclusiveMinimum": 0.0}
|
||||||
},
|
},
|
||||||
"additionalProperties": False,
|
"additionalProperties": False,
|
||||||
}
|
}
|
||||||
|
|
|
@ -326,7 +326,7 @@ class ActionBuilder(object):
|
||||||
ITEM_TEMPLATE = {
|
ITEM_TEMPLATE = {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"minimum": 0,
|
"minimum": 0,
|
||||||
"exclusiveMinimum": True,
|
"exclusiveMinimum": 0.0,
|
||||||
"optional": True
|
"optional": True
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
alembic # MIT
|
alembic # MIT
|
||||||
decorator # new BSD License
|
decorator # new BSD License
|
||||||
Jinja2 # BSD
|
Jinja2 # BSD
|
||||||
jsonschema<3.0.0 # MIT
|
jsonschema # MIT
|
||||||
netaddr # BSD
|
netaddr # BSD
|
||||||
oslo.config!=4.3.0,!=4.4.0 # Apache Software License
|
oslo.config!=4.3.0,!=4.4.0 # Apache Software License
|
||||||
# do not forget to remove `testresources` from test-requirements. it is a
|
# do not forget to remove `testresources` from test-requirements. it is a
|
||||||
|
|
|
@ -17,7 +17,7 @@ idna==2.6
|
||||||
ipaddress==1.0.19
|
ipaddress==1.0.19
|
||||||
iso8601==0.1.12
|
iso8601==0.1.12
|
||||||
Jinja2==2.10
|
Jinja2==2.10
|
||||||
jsonschema==2.6.0
|
jsonschema==3.0.1
|
||||||
linecache2==1.0.0
|
linecache2==1.0.0
|
||||||
Mako==1.0.7
|
Mako==1.0.7
|
||||||
MarkupSafe==1.0
|
MarkupSafe==1.0
|
||||||
|
|
Loading…
Reference in New Issue