mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-14 03:51:49 -05:00
Added rbac tests and migrations for Organization
This commit is contained in:
committed by
Akita Noek
parent
932b6a4c82
commit
896ecab031
18
awx/main/tests/functional/conftest.py
Normal file
18
awx/main/tests/functional/conftest.py
Normal 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,},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user