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
6786d79f
Commit
6786d79f
authored
Aug 30, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check system event related to payment.
parent
5e42950f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py
master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py
+17
-0
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
No files found.
master/bt5/vifib_erp5/TestTemplateItem/testVifibPayZen.py
View file @
6786d79f
...
@@ -14,6 +14,22 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
...
@@ -14,6 +14,22 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
def
unfakeSlapAuth
(
self
):
def
unfakeSlapAuth
(
self
):
pass
pass
def
stepCheckRelatedSystemEvent
(
self
,
sequence
):
# use catalog to select exactly interesting events
# as there might be more because of running alarms
event
=
self
.
portal
.
portal_catalog
(
portal_type
=
'Payzen Event'
,
title
=
'User navigation script for %s'
%
sequence
[
'payment'
].
getTitle
(),
limit
=
2
)
self
.
assertEqual
(
1
,
len
(
event
))
event
=
event
[
0
]
self
.
assertEqual
(
event
.
getValidationState
(),
'acknowledged'
)
message
=
event
.
objectValues
()
self
.
assertEqual
(
1
,
len
(
message
))
message
=
message
[
0
]
self
.
assertEqual
(
message
.
getTitle
(),
'Shown Page'
)
self
.
assertEqual
(
message
.
getTextContent
(),
sequence
[
'payment_page'
])
def
stepCheckPaymentPage
(
self
,
sequence
):
def
stepCheckPaymentPage
(
self
,
sequence
):
callback
=
self
.
portal
.
web_site_module
.
hosting
.
payzen_callback
callback
=
self
.
portal
.
web_site_module
.
hosting
.
payzen_callback
query
=
make_query
(
dict
(
transaction
=
sequence
[
'payment'
].
getRelativeUrl
()))
query
=
make_query
(
dict
(
transaction
=
sequence
[
'payment'
].
getRelativeUrl
()))
...
@@ -104,6 +120,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
...
@@ -104,6 +120,7 @@ class TestVifibPayZen(TestVifibSlapWebServiceMixin):
LoginERP5TypeTestCase
\
LoginERP5TypeTestCase
\
CheckPaymentPage
\
CheckPaymentPage
\
Tic
\
Tic
\
CheckRelatedSystemEvent
\
'
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
sequence_list
.
play
(
self
)
...
...
master/bt5/vifib_erp5/bt/revision
View file @
6786d79f
449
450
\ No newline at end of file
\ No newline at end of file
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