Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
ccc651a1
Commit
ccc651a1
authored
Jun 28, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test credential update in vifib environment.
parent
841eaf3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
1 deletion
+48
-1
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+48
-1
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
ccc651a1
...
...
@@ -7595,7 +7595,7 @@ class TestVifibSlapWebService(testVifibMixin):
########################################
def
stepRequestCredentialFromWebSite
(
self
,
sequence
,
**
kw
):
sequence
[
'web_user'
]
=
'
vifib_web_user'
sequence
[
'web_user'
]
=
'
%s.%s'
%
(
self
.
id
(),
random
())
result
=
self
.
portal
.
ERP5Site_newCredentialRequest
(
\
first_name
=
'Homer'
,
last_name
=
'Simpson'
,
...
...
@@ -7660,6 +7660,53 @@ class TestVifibSlapWebService(testVifibMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
stepPersonRequestCredentialUpdate
(
self
,
sequence
,
**
kw
):
sequence
[
'updated_last_name'
]
=
'Another'
result
=
self
.
portal
.
ERP5Site_newPersonCredentialUpdate
(
first_name
=
'Homer'
,
last_name
=
sequence
[
'updated_last_name'
],
reference
=
sequence
[
'web_user'
],
password
=
'secret'
,
default_email_text
=
'homer.simpson@fox.com'
,
)
self
.
assertTrue
(
'Credential Update Created'
in
result
)
def
stepCheckPersonUpdatedCredential
(
self
,
sequence
,
**
kw
):
person
=
self
.
portal
.
ERP5Site_getAuthenticatedMemberPersonValue
(
sequence
[
'web_user'
])
self
.
assertEqual
(
sequence
[
'updated_last_name'
],
person
.
getLastName
())
def
test_person_credential_update
(
self
):
"""Checks that Credential Update works in vifib environment."""
sequence_list
=
SequenceList
()
sequence_string
=
"""
Logout
RequestCredentialFromWebSite
Tic
LoginDefaultUser
SubmitCredentialRequest
Tic
AcceptSubmittedCredentialsActiveSense
Tic
Logout
LoginWebUser
PersonRequestCredentialUpdate
Tic
Logout
LoginDefaultUser
AcceptSubmittedCredentialsActiveSense
Tic
CheckPersonUpdatedCredential
Logout
LoginWebUser
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
# class IComputerPartition
# def started():
# def stopped():
...
...
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