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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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):
...
@@ -28,19 +28,11 @@ def getRelativeUrlFromUrn(urn):
class
TestSlapOSHypermediaPersonScenario
(
testSlapOSMixin
):
class
TestSlapOSHypermediaPersonScenario
(
testSlapOSMixin
):
def
_makeUser
(
self
):
def
_makeUser
(
self
):
new_id
=
self
.
generateNewId
()
person_user
=
self
.
makePerson
()
person_user
=
self
.
portal
.
person_module
.
template_member
.
\
login
=
person_user
.
objectValues
(
"ERP5 Login"
)[
0
]
Base_createCloneDocument
(
batch_mode
=
1
)
login
.
edit
(
person_user
.
edit
(
reference
=
person_user
.
getReference
(),
title
=
"live_test_%s"
%
new_id
,
password
=
person_user
.
getReference
())
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
()
self
.
tic
()
self
.
tic
()
return
person_user
return
person_user
...
@@ -291,7 +283,7 @@ class TestSlapOSHypermediaPersonScenario(testSlapOSMixin):
...
@@ -291,7 +283,7 @@ class TestSlapOSHypermediaPersonScenario(testSlapOSMixin):
# We are going to check computer and software
# We are going to check computer and software
# First create a computer and a software. We could alternatively later
# First create a computer and a software. We could alternatively later
# create them through hypermedia links
# create them through hypermedia links
self
.
login
(
erp5_person
.
get
Reference
())
self
.
login
(
erp5_person
.
get
UserId
())
self
.
portal
.
portal_slap
.
requestComputer
(
self
.
portal
.
portal_slap
.
requestComputer
(
"computer %s"
%
erp5_person
.
getReference
())
"computer %s"
%
erp5_person
.
getReference
())
self
.
tic
()
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