mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-25 18:54:29 +01:00
fix on unit tests for roles
This commit is contained in:
parent
2d1fdfe1da
commit
89e8e2aac0
@ -7,7 +7,6 @@ users2:
|
|||||||
- backend_name: ad
|
- backend_name: ad
|
||||||
groups:
|
groups:
|
||||||
- Domain Users
|
- Domain Users
|
||||||
|
|
||||||
users:
|
users:
|
||||||
diplay_name: Simple Users
|
diplay_name: Simple Users
|
||||||
LC_admins: True
|
LC_admins: True
|
||||||
|
@ -13,7 +13,6 @@ admin-lv3:
|
|||||||
- Domain Users
|
- Domain Users
|
||||||
- Administrators
|
- Administrators
|
||||||
- Domain Controllers
|
- Domain Controllers
|
||||||
|
|
||||||
admin-lv2:
|
admin-lv2:
|
||||||
display_name: Administrators Level 2
|
display_name: Administrators Level 2
|
||||||
backends:
|
backends:
|
||||||
@ -24,7 +23,6 @@ admin-lv2:
|
|||||||
- backend_name: ad
|
- backend_name: ad
|
||||||
groups:
|
groups:
|
||||||
- Domain Users
|
- Domain Users
|
||||||
|
|
||||||
developpers:
|
developpers:
|
||||||
backends:
|
backends:
|
||||||
- backend_name: ldap
|
- backend_name: ldap
|
||||||
@ -35,7 +33,6 @@ developpers:
|
|||||||
- backend_name: ad
|
- backend_name: ad
|
||||||
groups:
|
groups:
|
||||||
- Domain Users
|
- Domain Users
|
||||||
|
|
||||||
users:
|
users:
|
||||||
diplay_name: Simple Users
|
diplay_name: Simple Users
|
||||||
backends:
|
backends:
|
||||||
|
@ -7,6 +7,7 @@ from __future__ import unicode_literals
|
|||||||
import pytest
|
import pytest
|
||||||
import sys
|
import sys
|
||||||
from ldapcherry.roles import Roles
|
from ldapcherry.roles import Roles
|
||||||
|
from ldapcherry.exceptions import DumplicateRoleKey, MissingKey, DumplicateRoleContent
|
||||||
from ldapcherry.pyyamlwrapper import DumplicatedKey, RelationError
|
from ldapcherry.pyyamlwrapper import DumplicatedKey, RelationError
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +20,7 @@ class TestError(object):
|
|||||||
|
|
||||||
def testMissingDisplayName(self):
|
def testMissingDisplayName(self):
|
||||||
try:
|
try:
|
||||||
inv = Roles('./cfg/roles_missing_diplay_name.yml')
|
inv = Roles('./tests/cfg/roles_missing_diplay_name.yml')
|
||||||
except MissingKey:
|
except MissingKey:
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user