Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs-appstore
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
Romain Courteaud
officejs-appstore
Commits
10ae8480
Commit
10ae8480
authored
Jan 23, 2019
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[officejs_appstore_configurator] Use right mixin
parent
f591f171
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
44 deletions
+8
-44
bt5/officejs_appstore_configurator/TestTemplateItem/portal_components/test.erp5.testOfficeJSAppstoreConfigurator.py
..._components/test.erp5.testOfficeJSAppstoreConfigurator.py
+5
-43
bt5/officejs_appstore_configurator/TestTemplateItem/portal_components/test.erp5.testOfficeJSAppstoreConfigurator.xml
...components/test.erp5.testOfficeJSAppstoreConfigurator.xml
+3
-1
No files found.
bt5/officejs_appstore_configurator/TestTemplateItem/portal_components/test.erp5.testOfficeJSAppstoreConfigurator.py
View file @
10ae8480
...
...
@@ -5,15 +5,15 @@
#
##############################################################################
from
erp5.component.test.
SlapOSTestCas
eMixin
import
\
SlapOSTestCas
eMixin
from
erp5.component.test.
testOfficeJSAppstor
eMixin
import
\
testOfficeJSAppstor
eMixin
import
os
class
TestSlapOSConfigurator
(
SlapOSTestCas
eMixin
):
class
TestSlapOSConfigurator
(
testOfficeJSAppstor
eMixin
):
def
bootstrapSite
(
self
):
SlapOSTestCas
eMixin
.
bootstrapSite
(
self
)
self
.
getBusinessConfiguration
().
BusinessConfiguration_invoke
SlapOSMaster
PromiseAlarmList
()
testOfficeJSAppstor
eMixin
.
bootstrapSite
(
self
)
self
.
getBusinessConfiguration
().
BusinessConfiguration_invoke
OfficeJSAppstore
PromiseAlarmList
()
self
.
tic
()
def
testConfiguredModuleGeneratorIDViaConstraint
(
self
):
...
...
@@ -43,13 +43,6 @@ class TestSlapOSConfigurator(SlapOSTestCaseMixin):
invoking checkConsistency """
self
.
assertEqual
(
self
.
portal
.
portal_preferences
.
checkConsistency
(),
[])
def
testConfiguredCertificateAuthoringConstraint
(
self
):
"""Make sure Certificate Authoring was configured well,
invoking checkConsistency.
Make sure PAS is well configured."""
self
.
assertEqual
(
self
.
portal
.
portal_certificate_authority
.
checkConsistency
(),
[])
def
testConfiguredTemplateToolViaConstraint
(
self
):
""" Make sure Template Tool Repositories was configured well,
invoking checkConsistency """
...
...
@@ -61,11 +54,6 @@ class TestSlapOSConfigurator(SlapOSTestCaseMixin):
def
testConfiguredVolatileCache
(
self
):
""" Make sure Memcached is configured
"""
if
self
.
isLiveTest
():
# This test is redundant with testConfiguredVolatileCacheViaPromise
# and it is only aims to verify if test environment is behaving as
# expected, nothing else, and if alamrs were invoked.
return
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
\
_getVolatileMemcachedServerDict
...
...
@@ -78,12 +66,6 @@ class TestSlapOSConfigurator(SlapOSTestCaseMixin):
def
testConfiguredPersistentCache
(
self
):
""" Make sure Kumofs is configured
"""
if
self
.
isLiveTest
():
# This test is redundant with testConfiguredVolatileCacheViaPromise
# and it is only aims to verify if test environment is behaving as
# expected, nothing else, and if alamrs were invoked.
return
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
\
_getPersistentMemcachedServerDict
memcached_tool
=
self
.
getPortal
().
portal_memcached
...
...
@@ -95,31 +77,11 @@ class TestSlapOSConfigurator(SlapOSTestCaseMixin):
def
testConfiguredConversionServer
(
self
):
""" Make sure Conversion Server (Cloudooo) is
well configured """
if
self
.
isLiveTest
():
# This test is redundant with testConfiguredConversionServerViaConstraint
# and it is only aims to verify if test environment is behaving as
# expected, nothing else, and if alamrs were invoked.
return
# set preference
preference_tool
=
self
.
portal
.
portal_preferences
conversion_url
=
"https://cloudooo.erp5.net"
self
.
assertEqual
(
preference_tool
.
getPreferredDocumentConversionServerUrl
(),
conversion_url
)
def
testConfiguredCertificateAuthoring
(
self
):
""" Make sure Certificate Authoting is
well configured. """
if
self
.
isLiveTest
():
# This test is redundant with testConfiguredVolatileCacheViaPromise
# and it is only aims to verify if test environment is behaving as
# expected, nothing else, and if alamrs were invoked.
return
self
.
assertTrue
(
self
.
portal
.
hasObject
(
'portal_certificate_authority'
))
self
.
assertEqual
(
os
.
environ
[
'TEST_CA_PATH'
],
self
.
portal
.
portal_certificate_authority
.
certificate_authority_path
)
def
testModuleHasIdGeneratorByDay
(
self
):
""" Ensure the Constraint sets appropriate id generator on all modules.
"""
...
...
bt5/officejs_appstore_configurator/TestTemplateItem/portal_components/test.erp5.testOfficeJSAppstoreConfigurator.xml
View file @
10ae8480
...
...
@@ -45,7 +45,9 @@
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
<tuple>
<string>
W: 10, 0: Unused import os (unused-import)
</string>
</tuple>
</value>
</item>
<item>
...
...
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