Merge "Allow using forward slashes in metadata" into stable/rocky
This commit is contained in:
commit
c118e8f92c
|
@ -147,7 +147,7 @@ uuid = {
|
|||
extra_specs = {
|
||||
'type': 'object',
|
||||
'patternProperties': {
|
||||
'^[a-zA-Z0-9-_:. ]{1,255}$': {
|
||||
'^[a-zA-Z0-9-_:. /]{1,255}$': {
|
||||
'type': 'string', 'maxLength': 255
|
||||
}
|
||||
},
|
||||
|
@ -173,7 +173,7 @@ group_snapshot_status = {
|
|||
|
||||
extra_specs_with_null = copy.deepcopy(extra_specs)
|
||||
extra_specs_with_null['patternProperties'][
|
||||
'^[a-zA-Z0-9-_:. ]{1,255}$']['type'] = ['string', 'null']
|
||||
'^[a-zA-Z0-9-_:. /]{1,255}$']['type'] = ['string', 'null']
|
||||
|
||||
|
||||
name_allow_zero_min_length = {
|
||||
|
|
|
@ -82,7 +82,8 @@ class VolumesTest(functional_helpers._FunctionalTestBase):
|
|||
|
||||
# Create volume
|
||||
metadata = {'key1': 'value1',
|
||||
'key2': 'value2'}
|
||||
'key2': 'value2',
|
||||
'volume/created/by': 'cinder'}
|
||||
created_volume = self.api.post_volume(
|
||||
{'volume': {'size': 1,
|
||||
'metadata': metadata}})
|
||||
|
|
Loading…
Reference in New Issue