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
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
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
Changes
2
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):
...
@@ -61,10 +61,13 @@ class TestERP5PayzenSecurePaymenConstraint(TestERP5PayzenSecurePaymentMixin):
self
.
assertNotIn
(
message
,
getMessageList
(
self
.
service
))
self
.
assertNotIn
(
message
,
getMessageList
(
self
.
service
))
def
test_service_username
(
self
):
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
):
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
):
def
test_link_url_string
(
self
):
self
.
_test
(
'Payzen URL have to be set'
,
'link_url_string'
)
self
.
_test
(
'Payzen URL have to be set'
,
'link_url_string'
)
...
@@ -144,7 +147,8 @@ class TestERP5PayzenSecurePayment(TestERP5PayzenSecurePaymentMixin):
...
@@ -144,7 +147,8 @@ class TestERP5PayzenSecurePayment(TestERP5PayzenSecurePaymentMixin):
payzen_vads_ctx_mode
=
'TEST'
,
payzen_vads_ctx_mode
=
'TEST'
,
payzen_vads_page_action
=
'REGISTER'
,
payzen_vads_page_action
=
'REGISTER'
,
payzen_vads_version
=
'V2'
,
payzen_vads_version
=
'V2'
,
service_username
=
'0123456'
service_username
=
'0123456'
,
service_api_key
=
'ABC123'
)
)
pt_id
=
str
(
random
.
random
())
pt_id
=
str
(
random
.
random
())
self
.
portal
.
portal_skins
.
custom
.
manage_addProduct
[
'PageTemplates'
]
\
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 @@
...
@@ -10,6 +10,12 @@
<key>
<string>
default_reference
</string>
</key>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
testERP5PayzenSecurePayment
</string>
</value>
<value>
<string>
testERP5PayzenSecurePayment
</string>
</value>
</item>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.testERP5PayzenSecurePayment
</string>
</value>
<value>
<string>
test.erp5.testERP5PayzenSecurePayment
</string>
</value>
...
@@ -24,6 +30,18 @@
...
@@ -24,6 +30,18 @@
<none/>
<none/>
</value>
</value>
</item>
</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>
<item>
<key>
<string>
version
</string>
</key>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
<value>
<string>
erp5
</string>
</value>
...
@@ -74,35 +92,6 @@
...
@@ -74,35 +92,6 @@
<key>
<string>
action
</string>
</key>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
<value>
<string>
validate
</string>
</value>
</item>
</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>
<item>
<key>
<string>
validation_state
</string>
</key>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
<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