mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 01:14:21 +01:00
disable unit tests for AD on travis
Setting up a test env with samba 4 as AD doesn't seem possible on travis. there is no other choice than disabling the AD unit tests if we are on travis
This commit is contained in:
parent
2e98e380df
commit
dcdc260f33
@ -56,20 +56,24 @@ default_groups = ['Domain Admins', 'Backup Operators']
|
|||||||
|
|
||||||
class TestError(object):
|
class TestError(object):
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testNominal(self):
|
def testNominal(self):
|
||||||
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testAuthSuccess(self):
|
def testAuthSuccess(self):
|
||||||
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
||||||
ret = inv.auth('Administrator', 'qwertyP455')
|
ret = inv.auth('Administrator', 'qwertyP455')
|
||||||
assert ret == True
|
assert ret == True
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testAuthFailure(self):
|
def testAuthFailure(self):
|
||||||
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
||||||
res = inv.auth('notauser', 'password') or inv.auth(u'☭default_user', 'notapassword')
|
res = inv.auth('notauser', 'password') or inv.auth(u'☭default_user', 'notapassword')
|
||||||
assert res == False
|
assert res == False
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testMissingParam(self):
|
def testMissingParam(self):
|
||||||
cfg2 = {}
|
cfg2 = {}
|
||||||
return True
|
return True
|
||||||
@ -80,6 +84,7 @@ class TestError(object):
|
|||||||
else:
|
else:
|
||||||
raise AssertionError("expected an exception")
|
raise AssertionError("expected an exception")
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testSetPassword(self):
|
def testSetPassword(self):
|
||||||
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
||||||
try:
|
try:
|
||||||
@ -92,6 +97,7 @@ class TestError(object):
|
|||||||
inv.del_user(u'☭default_user')
|
inv.del_user(u'☭default_user')
|
||||||
assert ret == True
|
assert ret == True
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testGetUser(self):
|
def testGetUser(self):
|
||||||
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
||||||
try:
|
try:
|
||||||
@ -106,6 +112,7 @@ class TestError(object):
|
|||||||
if i != 'unicodePwd':
|
if i != 'unicodePwd':
|
||||||
assert ret[i] == expected[i]
|
assert ret[i] == expected[i]
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testGetGroups(self):
|
def testGetGroups(self):
|
||||||
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
||||||
try:
|
try:
|
||||||
@ -118,6 +125,7 @@ class TestError(object):
|
|||||||
inv.del_user(u'☭default_user')
|
inv.del_user(u'☭default_user')
|
||||||
assert ret == expected
|
assert ret == expected
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testSearchUser(self):
|
def testSearchUser(self):
|
||||||
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
||||||
try:
|
try:
|
||||||
@ -131,6 +139,7 @@ class TestError(object):
|
|||||||
inv.del_user(u'☭default_user2')
|
inv.del_user(u'☭default_user2')
|
||||||
assert Set(ret.keys()) == Set(expected)
|
assert Set(ret.keys()) == Set(expected)
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testAddUser(self):
|
def testAddUser(self):
|
||||||
try:
|
try:
|
||||||
inv.del_user(u'test☭')
|
inv.del_user(u'test☭')
|
||||||
@ -149,6 +158,7 @@ class TestError(object):
|
|||||||
inv.add_user(user)
|
inv.add_user(user)
|
||||||
inv.del_user(u'test☭')
|
inv.del_user(u'test☭')
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testModifyUser(self):
|
def testModifyUser(self):
|
||||||
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
||||||
user = {
|
user = {
|
||||||
@ -164,6 +174,7 @@ class TestError(object):
|
|||||||
inv.set_attrs(u'test☭', {'gecos': 'test2', 'homeDirectory': '/home/test/'})
|
inv.set_attrs(u'test☭', {'gecos': 'test2', 'homeDirectory': '/home/test/'})
|
||||||
inv.del_user(u'test☭')
|
inv.del_user(u'test☭')
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testAddUserDuplicate(self):
|
def testAddUserDuplicate(self):
|
||||||
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
||||||
user = {
|
user = {
|
||||||
@ -185,6 +196,7 @@ class TestError(object):
|
|||||||
inv.del_user(u'test☭')
|
inv.del_user(u'test☭')
|
||||||
raise AssertionError("expected an exception")
|
raise AssertionError("expected an exception")
|
||||||
|
|
||||||
|
@travis_disabled
|
||||||
def testDelUserDontExists(self):
|
def testDelUserDontExists(self):
|
||||||
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
inv = Backend(cfg, cherrypy.log, u'test☭', attr, 'sAMAccountName')
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user