c10c853d2b
* Added decorators for parameterized tests * Added models/clients for recordsets * Move v2 specific clients into DesignateV2Test base class * Added data generation for A, AAAA, CNAME, and MX recordsets * Added test cases that do CRUD on A, AAAA, CNAME, and MX recordsets Change-Id: I7755167b707ca66f8f2a3362579e3e976b4aa315
34 lines
975 B
Python
34 lines
975 B
Python
"""
|
|
Copyright 2015 Rackspace
|
|
|
|
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 functionaltests.common.models import BaseModel
|
|
from functionaltests.common.models import CollectionModel
|
|
from functionaltests.common.models import EntityModel
|
|
|
|
|
|
class RecordsetData(BaseModel):
|
|
pass
|
|
|
|
|
|
class RecordsetModel(EntityModel):
|
|
ENTITY_NAME = 'recordset'
|
|
MODEL_TYPE = RecordsetData
|
|
|
|
|
|
class RecordsetListModel(CollectionModel):
|
|
COLLECTION_NAME = 'recordsets'
|
|
MODEL_TYPE = RecordsetData
|