
This commit adds the basic framework for validation code needed for the common cert API. Note that there is a slight change to the blueprint in that for the stored-key type, we expect to see a container_ref rather than a public_key_ref, so that certain validations (like access to the private key) can be done. We expect subsequent commits to fill in the missing logic in the functions and enable the relevant tests. Also, once this process is complete, it makes sense to refactor the Validator code along the lines of bp/split-validator-module. Implements: blueprint certificate-order-api Change-Id: Ieffd0c6f8b97b9bb5b1d0d4cf9e8eea0a6277ca0
29 lines
945 B
Python
29 lines
945 B
Python
"""
|
|
Copyright 2014 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.api.v1.models.base_models import BaseModel
|
|
|
|
|
|
class ConsumerModel(BaseModel):
|
|
|
|
def __init__(self, name=None, URL=None, created=None, updated=None,
|
|
status=None):
|
|
super(ConsumerModel, self).__init__()
|
|
self.name = name
|
|
self.URL = URL
|
|
self.created = created
|
|
self.updated = updated
|
|
self.status = status
|