Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
f5dcc807
Commit
f5dcc807
authored
May 21, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_payzen_secure_payment: Update test.
parent
30e1d053
Pipeline
#34749
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
32 deletions
+25
-32
bt5/erp5_payzen_secure_payment/TestTemplateItem/portal_components/test.erp5.testERP5PayzenSecurePayment.py
...ortal_components/test.erp5.testERP5PayzenSecurePayment.py
+7
-3
bt5/erp5_payzen_secure_payment/TestTemplateItem/portal_components/test.erp5.testERP5PayzenSecurePayment.xml
...rtal_components/test.erp5.testERP5PayzenSecurePayment.xml
+18
-29
No files found.
bt5/erp5_payzen_secure_payment/TestTemplateItem/portal_components/test.erp5.testERP5PayzenSecurePayment.py
View file @
f5dcc807
...
...
@@ -61,10 +61,13 @@ class TestERP5PayzenSecurePaymenConstraint(TestERP5PayzenSecurePaymentMixin):
self
.
assertNotIn
(
message
,
getMessageList
(
self
.
service
))
def
test_service_username
(
self
):
self
.
_test
(
'
vads_site_id
have to be set'
,
'service_username'
)
self
.
_test
(
'
service_username
have to be set'
,
'service_username'
)
def
test_service_password
(
self
):
self
.
_test
(
'Certificate has to be set.'
,
'service_password'
)
self
.
_test
(
'service_password has to be set.'
,
'service_password'
)
def
test_service_api_key
(
self
):
self
.
_test
(
'service_api_key has to be set.'
,
'service_api_key'
)
def
test_link_url_string
(
self
):
self
.
_test
(
'Payzen URL have to be set'
,
'link_url_string'
)
...
...
@@ -144,7 +147,8 @@ class TestERP5PayzenSecurePayment(TestERP5PayzenSecurePaymentMixin):
payzen_vads_ctx_mode
=
'TEST'
,
payzen_vads_page_action
=
'REGISTER'
,
payzen_vads_version
=
'V2'
,
service_username
=
'0123456'
service_username
=
'0123456'
,
service_api_key
=
'ABC123'
)
pt_id
=
str
(
random
.
random
())
self
.
portal
.
portal_skins
.
custom
.
manage_addProduct
[
'PageTemplates'
]
\
...
...
bt5/erp5_payzen_secure_payment/TestTemplateItem/portal_components/test.erp5.testERP5PayzenSecurePayment.xml
View file @
f5dcc807
...
...
@@ -10,6 +10,12 @@
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testERP5PayzenSecurePayment
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testERP5PayzenSecurePayment
</string>
</value>
...
...
@@ -24,6 +30,18 @@
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
...
...
@@ -74,35 +92,6 @@
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
ERP5TypeTestCase
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<tuple>
<float>
1377844605.76
</float>
<string>
GMT+9
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
...
...
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