Commit 73927855 authored by Mikaël Salson's avatar Mikaël Salson

tests/unit: Use password of length 6

As we changed the minimal length we need to have passwords of that length (even for the tests)
parent 8f7cecde
Pipeline #96892 passed with stages
in 6 minutes and 18 seconds
......@@ -22,7 +22,7 @@ class AdminController(unittest.TestCase):
session = Session()
request = Request([])
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
# rewrite info / error functions
# for some reasons we lost them between the testRunner and the testCase but we need them to avoid error so ...
......
......@@ -27,7 +27,7 @@ class ConfigController(unittest.TestCase):
session = Session()
request = Request({})
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
auth.add_permission(group_id, 'admin', db.patient, 0)
auth.add_permission(group_id, 'admin', db.config, 0)
......
......@@ -24,7 +24,7 @@ class DefaultController(unittest.TestCase):
session = Session()
request = Request({})
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
# rewrite info / error functions
# for some reasons we lost them between the testRunner and the testCase but we need them to avoid error so ...
......
......@@ -23,7 +23,7 @@ class FileController(unittest.TestCase):
session = Session()
request = Request({})
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
# rewrite info / error functions
# for some reasons we lost them between the testRunner and the testCase but we need them to avoid error so ...
......
......@@ -19,7 +19,7 @@ class GroupController(unittest.TestCase):
session = Session()
request = Request({})
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
auth.add_permission(group_id, 'admin', db.auth_group, 0)
......
......@@ -22,7 +22,7 @@ class NotificationController(unittest.TestCase):
session = Session()
request = Request({})
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
# rewrite info / error functions
# for some reasons we lost them between the testRunner and the testCase but we need them to avoid error so ...
......
......@@ -19,7 +19,7 @@ class PatientController(unittest.TestCase):
session = Session()
request = Request({})
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
# rewrite info / error functions
# for some reasons we lost them between the testRunner and the testCase but we need them to avoid error so ...
......
......@@ -19,7 +19,7 @@ class Results_fileController(unittest.TestCase):
session = Session()
request = Request({})
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
# rewrite info / error functions
# for some reasons we lost them between the testRunner and the testCase but we need them to avoid error so ...
......
......@@ -19,7 +19,7 @@ class Sample_setController(unittest.TestCase):
session = Session()
request = Request({})
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
# rewrite info / error functions
# for some reasons we lost them between the testRunner and the testCase but we need them to avoid error so ...
......
......@@ -19,7 +19,7 @@ class TagController(unittest.TestCase):
session = Session()
request = Request({})
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
# rewrite info / error functions
# for some reasons we lost them between the testRunner and the testCase but we need them to avoid error so ...
......
......@@ -19,7 +19,7 @@ class UserController(unittest.TestCase):
session = Session()
request = Request({})
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
# rewrite info / error functions
# for some reasons we lost them between the testRunner and the testCase but we need them to avoid error so ...
......
......@@ -13,7 +13,7 @@ class SamplesetlistModel(unittest.TestCase):
execfile("applications/vidjil/models/sample_set_list.py", globals())
global auth
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
def testInit(self):
slist = SampleSetList('patient')
......
......@@ -13,7 +13,7 @@ class SamplesetsModel(unittest.TestCase):
execfile("applications/vidjil/models/SampleSets.py", globals())
global auth
auth = VidjilAuth(globals(), db)
auth.login_bare("test@vidjil.org", "1234")
auth.login_bare("test@vidjil.org", "123456")
# We have the following sample sets
......
......@@ -38,31 +38,31 @@ class VidjilauthModel(unittest.TestCase):
first_name='First',
last_name='Group Tester',
email='group.tester%d@vidjil.org' % count,
password= db.auth_user.password.validate('1234')[0],
password= db.auth_user.password.validate('123456')[0],
)
user_id_sec = db.auth_user.insert(
first_name='Second',
last_name='Group Tester',
email='group.testertoo.%d@vidjil.org' % count,
password=db.auth_user.password.validate('1234')[0]
password=db.auth_user.password.validate('123456')[0]
)
parent_user_id = db.auth_user.insert(
first_name='Par',
last_name='ent',
email='par.end.%d@vidjil.org' % count,
password=db.auth_user.password.validate('1234')[0]
password=db.auth_user.password.validate('123456')[0]
)
admin_user_id = db.auth_user.insert(
first_name='Adm',
last_name='in',
email='adm.in.%d@vidjil.org' % count,
password=db.auth_user.password.validate('1234')[0]
password=db.auth_user.password.validate('123456')[0]
)
auth.login_bare("group.tester%d@vidjil.org" % count, "1234")
auth.login_bare("group.tester%d@vidjil.org" % count, "123456")
count = count + 1
......
......@@ -17,9 +17,9 @@ class User_groupModel(unittest.TestCase):
first_name='test',
last_name='user',
email='tester@vidjil.org',
password= db.auth_user.password.validate('1234')[0],
password= db.auth_user.password.validate('123456')[0],
)
auth.login_bare("tester@vidjil.org", "1234")
auth.login_bare("tester@vidjil.org", "123456")
user_group_id = db.auth_group.insert(
role='user_%d' % user_id
......
......@@ -87,7 +87,7 @@ user_id = db.auth_user.insert(
first_name='Testers',
last_name='Inc',
email='test@vidjil.org',
password= db.auth_user.password.validate('1234')[0],
password= db.auth_user.password.validate('123456')[0],
)
unique_group = db.auth_group.insert(role="user_"+str(user_id), description=" ")
db.auth_membership.insert(user_id=user_id, group_id=unique_group)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment