Dave McCowan 7bbf9e48ac Add RBAC Functional Test for ACL Opeations
Adding functional tests that verify that only roles who should have
access to operate on ACLs can operate on ACLs.

Operations Covered: Set, Get, Update, and Delete of ACLs
User Roles Covered: Admin, Creator, Observer, Auditor of Project under
                    test.  And Admin and Observer with token scoped
                    to a different project.

Change-Id: I0431de273062ee774ab70986c7e066a742215d3a
Relates-to: blueprint multi-user-functional-tests
2015-07-16 15:39:28 -05:00

25 lines
802 B
Python

"""
Copyright 2015 Cisco Systems
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 AclModel(BaseModel):
def __init__(self, acl_ref=None, read=None):
super(AclModel, self).__init__()
self.acl_ref = acl_ref
self.read = read