File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change 13
13
import copy
14
14
import ddt
15
15
import fixtures
16
- import importlib .metadata
17
16
import microversion_parse
18
17
import os
19
18
from unittest import mock
20
19
21
20
from oslo_utils .fixture import uuidsentinel
22
21
from oslotest import base
23
- from packaging import version
24
22
25
23
from nova .compute import provider_config
26
24
from nova import exception as nova_exc
@@ -119,17 +117,6 @@ class SchemaValidationTestCasesV1(SchemaValidationMixin):
119
117
@ddt .unpack
120
118
@ddt .file_data ('provider_config_data/v1/validation_error_test_data.yaml' )
121
119
def test_validation_errors (self , config , expected_messages ):
122
- # TODO(stephenfin): Drop this once we no longer support jsonschema 3.x
123
- jsonschema_version = importlib .metadata .version ('jsonschema' )
124
- if version .parse (jsonschema_version ) < version .parse ('4.0.0' ):
125
- if expected_messages == [
126
- "should not be valid under {}" ,
127
- "validating 'not' in schema['properties']['__source_file']" ,
128
- ]:
129
- expected_messages = [
130
- "{} is not allowed for" ,
131
- "validating 'not' in schema['properties']['__source_file']" , # noqa: E501
132
- ]
133
120
self .run_test_validation_errors (config , expected_messages )
134
121
135
122
@ddt .unpack
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ netaddr>=0.7.18 # BSD
21
21
netifaces >= 0.10.4 # MIT
22
22
paramiko >= 2.7.1 # LGPLv2.1+
23
23
iso8601 >= 0.1.11 # MIT
24
- jsonschema >= 3.2 .0 # MIT
24
+ jsonschema >= 4.0 .0 # MIT
25
25
python-cinderclient != 4.0.0 ,>= 3.3.0 # Apache-2.0
26
26
keystoneauth1 >= 3.16.0 # Apache-2.0
27
27
python-neutronclient >= 7.1.0 # Apache-2.0
@@ -64,4 +64,3 @@ python-dateutil>=2.7.0 # BSD
64
64
futurist >= 1.8.0 # Apache-2.0
65
65
openstacksdk >= 0.35.0 # Apache-2.0
66
66
PyYAML >= 5.1 # MIT
67
- packaging >= 21.0 # Apache-2.0
You can’t perform that action at this time.
0 commit comments