Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
19
Merge Requests
19
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
bc49e7e3
Commit
bc49e7e3
authored
Jun 02, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: (Test) Generate stronger password to comply with the enabled policy
parent
089d31a7
Pipeline
#9722
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudShadow.py
...Item/portal_components/test.erp5.testSlapOSCloudShadow.py
+1
-1
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudShadow.xml
...tem/portal_components/test.erp5.testSlapOSCloudShadow.xml
+1
-0
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudShadow.py
View file @
bc49e7e3
...
...
@@ -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
()
...
...
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudShadow.xml
View file @
bc49e7e3
...
...
@@ -117,6 +117,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment