Ade Lee 00f6f14bbf Fix some ca_id related bugs, add more functional test code
Fix some bugs introduced in ca_id code that prevent cert issuance.
Added missing policy for ca_id calls.  Also added functional test code
to retrieve ca_id for cert functional tests.

Implements: blueprint identify-cas
Change-Id: If36ab7d17abf82a3614e96fc0ff80f9c0346a7a1
2015-03-25 10:17:24 -04:00

35 lines
1.1 KiB
Python

"""
Copyright 2015 Red Hat Inc.
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 CAModel(BaseModel):
def __init__(self, expiration=None, ca_id=None, status=None,
updated=None, created=None, plugin_name=None,
plugin_ca_id=None, meta=None):
super(CAModel, self).__init__()
self.expiration = expiration
self.ca_id = ca_id
self.status = status
self.updated = updated
self.created = created
self.plugin_name = plugin_name
self.plugin_ca_id = plugin_ca_id
self.meta = meta