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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
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
Changes
2
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
...
@@ -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
()
...
...
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudShadow.xml
View file @
bc49e7e3
...
@@ -117,6 +117,7 @@
...
@@ -117,6 +117,7 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
<none/>
</tuple>
</tuple>
</pickle>
</pickle>
</record>
</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