Files
neutron-lib/neutron_lib/tests/unit/api/definitions/test_trunk_details.py
Armando Migliaccio 90809fd299 Add dummy API definitions for extension subresources
This change introduces the dummy definitions for extension
subresources, and its related testing coverage. It was
observed in a few definition proposals (e.g. [1]) that this
was a missing element in the description of a neutron extension.

The enhancement got reflected in the existing definitions, such
as trunk and trunk_details, and thus amends were made to these
to show how to use the dummy suggestions in practice.

[1] https://review.openstack.org/#/c/413182

Change-Id: I5eb36cdf99039f2e74c93735fcddd5953c7fe086
2017-01-11 15:11:31 -08:00

21 lines
905 B
Python

# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from neutron_lib.api.definitions import trunk_details
from neutron_lib.tests.unit.api.definitions import base
class TrunkDetailsDefinitionTestCase(base.DefinitionBaseTestCase):
extension_module = trunk_details
extension_resource = (trunk_details.COLLECTION_NAME,)
extension_attributes = (trunk_details.TRUNK_DETAILS,)