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
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
Titouan Soulard
slapos.core
Commits
99a968f7
Commit
99a968f7
authored
Jun 01, 2013
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include test for Slapos Configuration
parent
fe7622fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
144 additions
and
1 deletion
+144
-1
master/bt5/slapos_configurator/TestTemplateItem/testSlapOSConfigurator.py
...s_configurator/TestTemplateItem/testSlapOSConfigurator.py
+142
-0
master/bt5/slapos_configurator/bt/revision
master/bt5/slapos_configurator/bt/revision
+1
-1
master/bt5/slapos_configurator/bt/template_test_id_list
master/bt5/slapos_configurator/bt/template_test_id_list
+1
-0
No files found.
master/bt5/slapos_configurator/TestTemplateItem/testSlapOSConfigurator.py
0 → 100644
View file @
99a968f7
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2012 Nexedi SA and Contributors. All Rights Reserved.
#
##############################################################################
from
Products.SlapOS.tests.testSlapOSMixin
import
\
testSlapOSMixin
,
withAbort
from
zExceptions
import
Unauthorized
from
DateTime
import
DateTime
import
os
import
time
class
TestSlapOSConfigurator
(
testSlapOSMixin
):
def
testConfiguredVolatileCache
(
self
):
"""
Make sure Memcached is configured
"""
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
\
_getVolatileMemcachedServerDict
memcached_tool
=
self
.
getPortal
().
portal_memcached
connection_dict
=
_getVolatileMemcachedServerDict
()
url_string
=
'%(hostname)s:%(port)s'
%
connection_dict
self
.
assertEquals
(
memcached_tool
.
default_memcached_plugin
.
getUrlString
(),
url_string
)
def
testConfiguredPersistentCache
(
self
):
"""
Make sure Kumofs is configured
"""
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
\
_getPersistentMemcachedServerDict
memcached_tool
=
self
.
getPortal
().
portal_memcached
connection_dict
=
_getPersistentMemcachedServerDict
()
url_string
=
'%(hostname)s:%(port)s'
%
connection_dict
self
.
assertEquals
(
memcached_tool
.
persistent_memcached_plugin
.
getUrlString
(),
url_string
)
def
testConfiguredConversionServer
(
self
):
"""
Make sure Conversion Server (Cloudooo) is
well configured
"""
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
\
_getConversionServerDict
# set preference
preference_tool
=
self
.
portal
.
portal_preferences
conversion_dict
=
_getConversionServerDict
()
self
.
assertEquals
(
preference_tool
.
getPreferredOoodocServerAddress
(),
conversion_dict
[
'hostname'
])
self
.
assertEquals
(
preference_tool
.
getPreferredOoodocServerPortNumber
(),
conversion_dict
[
'port'
])
def
testConfiguredCertificateAuthoring
(
self
):
"""
Make sure Certificate Authoting is
well configured.
"""
self
.
assertTrue
(
self
.
portal
.
hasObject
(
'portal_certificate_authority'
))
self
.
assertEquals
(
os
.
environ
[
'TEST_CA_PATH'
],
self
.
portal
.
portal_certificate_authority
.
certificate_authority_path
)
def
testConfiguredBusinessTemplateList
(
self
):
"""
Make sure Installed business Templates are
what it is expected.
"""
expected_business_template_list
=
[
'erp5_core'
,
'erp5_xhtml_style'
,
'erp5_property_sheets'
,
'erp5_mysql_innodb_catalog'
,
'erp5_promise'
,
'erp5_upgrader'
,
'slapos_upgrader'
,
'erp5_full_text_myisam_catalog'
,
'erp5_core_proxy_field_legacy'
,
'erp5_base'
,
'erp5_administration'
,
'erp5_workflow'
,
'erp5_configurator'
,
'slapos_configurator'
,
'erp5_simulation'
,
'erp5_pdm'
,
'erp5_trade'
,
'erp5_tiosafe_core'
,
'erp5_item'
,
'erp5_forge'
,
'erp5_ingestion_mysql_innodb_catalog'
,
'erp5_ingestion'
,
'erp5_crm'
,
'erp5_system_event'
,
'erp5_secure_payment'
,
'erp5_payzen_secure_payment'
,
'erp5_ooo_import'
,
'erp5_odt_style'
,
'erp5_ods_style'
,
'erp5_jquery'
,
'erp5_jquery_ui'
,
'erp5_dhtml_style'
,
'erp5_knowledge_pad'
,
'erp5_web'
,
'erp5_rss_style'
,
'erp5_dms'
,
'erp5_content_translation'
,
'erp5_software_pdm'
,
'erp5_computer_immobilisation'
,
'erp5_open_trade'
,
'erp5_accounting'
,
'erp5_commerce'
,
'erp5_xhtml_jquery_style'
,
'erp5_credential'
,
'erp5_km'
,
'erp5_web_download_theme'
,
'erp5_web_shacache'
,
'erp5_data_set'
,
'erp5_web_shadir'
,
'erp5_accounting'
,
'erp5_invoicing'
,
'erp5_simplified_invoicing'
,
'erp5_credential_oauth2'
,
'erp5_accounting_l10n_fr'
,
'erp5_bearer_token'
,
'erp5_access_token'
,
'erp5_project'
,
'slapos_cache'
,
'slapos_cloud'
,
'slapos_slap_tool'
,
'slapos_category'
,
'slapos_rest_api_tool_portal_type'
,
'slapos_rest_api'
,
'slapos_hypermedia'
,
'slapos_pdm'
,
'slapos_crm'
,
'slapos_accounting'
,
'slapos_payzen'
,
'slapos_web'
,
'slapos_erp5'
,
]
self
.
assertSameSet
(
expected_business_template_list
,
self
.
portal
.
portal_templates
.
getInstalledBusinessTemplateTitleList
())
master/bt5/slapos_configurator/bt/revision
View file @
99a968f7
6
\ No newline at end of file
7
\ No newline at end of file
master/bt5/slapos_configurator/bt/template_test_id_list
0 → 100644
View file @
99a968f7
testSlapOSConfigurator
\ 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