Browse Source

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
tags/2.0.0
Rodolfo Alonso Hernandez 1 week ago
parent
commit
60d39f3a37

+ 1
- 1
rally/consts.py View File

@@ -24,7 +24,7 @@ for each enum. (e.g. TaskStatus)
24 24
 from rally.common import utils
25 25
 
26 26
 
27
-JSON_SCHEMA = "http://json-schema.org/draft-04/schema"
27
+JSON_SCHEMA = "http://json-schema.org/draft-07/schema"
28 28
 
29 29
 
30 30
 class _TaskStatus(utils.ImmutableMixin, utils.EnumMixin):

+ 1
- 1
rally/plugins/common/runners/rps.py View File

@@ -160,7 +160,7 @@ class RPSScenarioRunner(runner.ScenarioRunner):
160 160
                         "description": "Generate constant requests per second "
161 161
                                        "during the whole workload.",
162 162
                         "type": "number",
163
-                        "exclusiveMinimum": True,
163
+                        "exclusiveMinimum": 0,
164 164
                         "minimum": 0
165 165
                     },
166 166
                     {

+ 1
- 1
rally/plugins/common/sla/iteration_time.py View File

@@ -26,7 +26,7 @@ from rally.task import sla
26 26
 class IterationTime(sla.SLA):
27 27
     """Maximum time for one iteration in seconds."""
28 28
     CONFIG_SCHEMA = {"type": "number", "minimum": 0.0,
29
-                     "exclusiveMinimum": True}
29
+                     "exclusiveMinimum": 0.0}
30 30
 
31 31
     def __init__(self, criterion_value):
32 32
         super(IterationTime, self).__init__(criterion_value)

+ 1
- 1
rally/plugins/common/sla/max_average_duration.py View File

@@ -27,7 +27,7 @@ from rally.task import sla
27 27
 class MaxAverageDuration(sla.SLA):
28 28
     """Maximum average duration of one iteration in seconds."""
29 29
     CONFIG_SCHEMA = {"type": "number", "minimum": 0.0,
30
-                     "exclusiveMinimum": True}
30
+                     "exclusiveMinimum": 0.0}
31 31
 
32 32
     def __init__(self, criterion_value):
33 33
         super(MaxAverageDuration, self).__init__(criterion_value)

+ 1
- 1
rally/plugins/common/sla/outliers.py View File

@@ -38,7 +38,7 @@ class Outliers(sla.SLA):
38 38
             "max": {"type": "integer", "minimum": 0},
39 39
             "min_iterations": {"type": "integer", "minimum": 3},
40 40
             "sigmas": {"type": "number", "minimum": 0.0,
41
-                       "exclusiveMinimum": True}
41
+                       "exclusiveMinimum": 0.0}
42 42
         },
43 43
         "additionalProperties": False,
44 44
     }

+ 1
- 1
rally/task/utils.py View File

@@ -326,7 +326,7 @@ class ActionBuilder(object):
326 326
     ITEM_TEMPLATE = {
327 327
         "type": "integer",
328 328
         "minimum": 0,
329
-        "exclusiveMinimum": True,
329
+        "exclusiveMinimum": 0.0,
330 330
         "optional": True
331 331
     }
332 332
 

+ 1
- 1
requirements.txt View File

@@ -6,7 +6,7 @@
6 6
 alembic                                                # MIT
7 7
 decorator                                              # new BSD License
8 8
 Jinja2                                                 # BSD
9
-jsonschema<3.0.0                                       # MIT
9
+jsonschema                                             # MIT
10 10
 netaddr                                                # BSD
11 11
 oslo.config!=4.3.0,!=4.4.0                             # Apache Software License
12 12
 # do not forget to remove `testresources` from test-requirements. it is a

+ 1
- 1
upper-constraints.txt View File

@@ -17,7 +17,7 @@ idna==2.6
17 17
 ipaddress==1.0.19
18 18
 iso8601==0.1.12
19 19
 Jinja2==2.10
20
-jsonschema==2.6.0
20
+jsonschema==3.0.1
21 21
 linecache2==1.0.0
22 22
 Mako==1.0.7
23 23
 MarkupSafe==1.0

Loading…
Cancel
Save