Commit bc49e7e3 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: (Test) Generate stronger password to comply with the enabled policy

parent 089d31a7
......@@ -33,7 +33,6 @@ from erp5.component.test.testSlapOSCloudSecurityGroup import TestSlapOSSecurityM
class TestSlapOSShadowPerson(TestSlapOSSecurityMixin):
def test_active(self):
password = str(random.random())
reference = self._generateRandomUniqueReference('Person')
user_id = self._generateRandomUniqueUserId('Person')
shadow_user_id = 'SHADOW-%s' % user_id
......@@ -43,6 +42,7 @@ class TestSlapOSShadowPerson(TestSlapOSSecurityMixin):
person.setUserId(user_id)
person.newContent(portal_type='Assignment').open()
password = person.Person_generatePassword()
person.newContent(portal_type='ERP5 Login',
reference=reference, password=password).validate()
self.tic()
......
......@@ -117,6 +117,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
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