Merge "Fix definition of the fip_pf_description api extension"
This commit is contained in:
@@ -21,20 +21,24 @@ IS_STANDARD_ATTR_EXTENSION = False
|
||||
NAME = 'Floating IP Port Forwarding new attribute description'
|
||||
DESCRIPTION = 'Add a description field to Port Forwarding rules'
|
||||
UPDATED_TIMESTAMP = '2019-11-01T10:00:00-00:00'
|
||||
RESOURCE_ATTRIBUTE_MAP = {
|
||||
RESOURCE_ATTRIBUTE_MAP = {}
|
||||
SUB_RESOURCE_ATTRIBUTE_MAP = {
|
||||
pfw.COLLECTION_NAME: {
|
||||
DESCRIPTION_FIELD: {'allow_post': True,
|
||||
'allow_put': True,
|
||||
'validate': {
|
||||
'type:string':
|
||||
db_const.LONG_DESCRIPTION_FIELD_SIZE},
|
||||
'is_visible': True,
|
||||
'is_sort_key': False,
|
||||
'is_filter': True,
|
||||
'default': ''}
|
||||
'parameters': {
|
||||
DESCRIPTION_FIELD: {
|
||||
'allow_post': True,
|
||||
'allow_put': True,
|
||||
'validate': {
|
||||
'type:string':
|
||||
db_const.LONG_DESCRIPTION_FIELD_SIZE},
|
||||
'is_visible': True,
|
||||
'is_sort_key': False,
|
||||
'is_filter': True,
|
||||
'default': ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
SUB_RESOURCE_ATTRIBUTE_MAP = {}
|
||||
ACTION_MAP = {}
|
||||
REQUIRED_EXTENSIONS = [pfw.ALIAS]
|
||||
OPTIONAL_EXTENSIONS = []
|
||||
|
||||
@@ -17,5 +17,5 @@ from neutron_lib.tests.unit.api.definitions import base
|
||||
|
||||
class FipPortForwardingNameAndDescriptionTestCase(base.DefinitionBaseTestCase):
|
||||
extension_module = pf_description
|
||||
extension_resources = (fip_pf.COLLECTION_NAME,)
|
||||
extension_subresources = (fip_pf.COLLECTION_NAME,)
|
||||
extension_attributes = (pf_description.DESCRIPTION_FIELD,)
|
||||
|
||||
Reference in New Issue
Block a user