Commit bc49e7e3 authored by Rafael Monnerat's avatar Rafael Monnerat

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

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