Added rbac tests and migrations for Organization

This commit is contained in:
Wayne Witzel III
2016-02-02 14:47:46 -05:00
committed by Akita Noek
parent 932b6a4c82
commit 896ecab031
6 changed files with 56 additions and 16 deletions

View File

@@ -0,0 +1,18 @@
import pytest
from awx.main.models.organization import Organization
@pytest.fixture
def organization():
return Organization.objects.create(name="test-org", description="test-org-desc")
@pytest.fixture
def permissions():
return {
'admin':{'create':True, 'read':True, 'write':True,
'update':True, 'delete':True, 'scm_update':True, 'execute':True, 'use':True,},
'auditor':{'read':True, 'create':False, 'write':False,
'update':False, 'delete':False, 'scm_update':False, 'execute':False, 'use':False,},
}