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
Eric Zheng
slapos.core
Commits
ef3f94ae
Commit
ef3f94ae
authored
Dec 06, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add site configuration dump test.
parent
fb2ed293
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
2 deletions
+41
-2
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5SiteDump.py
...t5/slapos_erp5/TestTemplateItem/testSlapOSERP5SiteDump.py
+38
-0
master/bt5/slapos_erp5/bt/revision
master/bt5/slapos_erp5/bt/revision
+1
-1
master/bt5/slapos_erp5/bt/template_test_id_list
master/bt5/slapos_erp5/bt/template_test_id_list
+2
-1
No files found.
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5SiteDump.py
0 → 100644
View file @
ef3f94ae
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2012 Nexedi SA and Contributors. All Rights Reserved.
#
##############################################################################
from
Products.SlapOS.tests.testSlapOSMixin
import
\
testSlapOSMixin
import
os
from
Testing
import
ZopeTestCase
class
TestSlapOSDump
(
testSlapOSMixin
):
def
write
(
self
,
name
,
output
):
path
=
os
.
path
.
join
(
os
.
environ
[
'INSTANCE_HOME'
],
name
)
with
open
(
path
,
'w'
)
as
f
:
f
.
write
(
output
)
return
path
def
test
(
self
):
for
dump
in
[
'ERP5Site_dumpAlarmToolConfiguration'
,
'ERP5Site_dumpBuilderList'
,
'ERP5Site_dumpPortalTypeActionList'
,
'ERP5Site_dumpPortalTypeList'
,
'ERP5Site_dumpPortalTypeRoleList'
,
'ERP5Site_dumpPropertySheetList'
,
'ERP5Site_dumpRuleTesterList'
,
'ERP5Site_dumpSkinProperty'
,
'ERP5Site_dumpWorkflowChain'
]:
ZopeTestCase
.
_print
(
'
\
n
'
)
try
:
location
=
self
.
write
(
'%s.txt'
%
dump
,
getattr
(
self
.
portal
,
dump
)())
except
Exception
:
ZopeTestCase
.
_print
(
'Problem with %s
\
n
'
%
dump
)
else
:
ZopeTestCase
.
_print
(
'Stored dump %s in %s
\
n
'
%
(
dump
,
location
))
master/bt5/slapos_erp5/bt/revision
View file @
ef3f94ae
123
\ No newline at end of file
124
\ No newline at end of file
master/bt5/slapos_erp5/bt/template_test_id_list
View file @
ef3f94ae
testSlapOSERP5Alarm
testSlapOSERP5DefaultScenario
testSlapOSERP5GroupRoleSecurity
testSlapOSERP5LocalPermissionSlapOSInteractionWorkflow
testSlapOSERP5SiteDump
testSlapOSERP5SkinSelection
testSlapOSERP5Alarm
\ 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