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
Léo-Paul Géneau
slapos.core
Commits
6ca6a6ba
Commit
6ca6a6ba
authored
Oct 07, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Use user id and adjust users.
parent
c4d478fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
master/bt5/slapos_jio/TestTemplateItem/portal_components/test.erp5.testSlapOSHypermediaScenario.py
...rtal_components/test.erp5.testSlapOSHypermediaScenario.py
+6
-14
No files found.
master/bt5/slapos_jio/TestTemplateItem/portal_components/test.erp5.testSlapOSHypermediaScenario.py
View file @
6ca6a6ba
...
...
@@ -28,19 +28,11 @@ def getRelativeUrlFromUrn(urn):
class
TestSlapOSHypermediaPersonScenario
(
testSlapOSMixin
):
def
_makeUser
(
self
):
new_id
=
self
.
generateNewId
()
person_user
=
self
.
portal
.
person_module
.
template_member
.
\
Base_createCloneDocument
(
batch_mode
=
1
)
person_user
.
edit
(
title
=
"live_test_%s"
%
new_id
,
reference
=
"live_test_%s"
%
new_id
,
password
=
"live_test_%s"
%
new_id
,
default_email_text
=
"live_test_%s@example.org"
%
new_id
,
)
person_user
.
validate
()
for
assignment
in
person_user
.
contentValues
(
portal_type
=
"Assignment"
):
assignment
.
open
()
person_user
=
self
.
makePerson
()
login
=
person_user
.
objectValues
(
"ERP5 Login"
)[
0
]
login
.
edit
(
reference
=
person_user
.
getReference
(),
password
=
person_user
.
getReference
())
self
.
tic
()
return
person_user
...
...
@@ -291,7 +283,7 @@ class TestSlapOSHypermediaPersonScenario(testSlapOSMixin):
# We are going to check computer and software
# First create a computer and a software. We could alternatively later
# create them through hypermedia links
self
.
login
(
erp5_person
.
get
Reference
())
self
.
login
(
erp5_person
.
get
UserId
())
self
.
portal
.
portal_slap
.
requestComputer
(
"computer %s"
%
erp5_person
.
getReference
())
self
.
tic
()
...
...
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