source: main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/ftesting.zcml @ 10222

Last change on this file since 10222 was 8852, checked in by uli, 12 years ago

Add basic testing machinery for kofacustom.nigeria. The only contained test can be removed after being studied.

File size: 1.8 KB
RevLine 
[8852]1<configure
2   xmlns="http://namespaces.zope.org/zope"
3   xmlns:kofa="http://namespaces.waeup.org/kofa"
4   i18n_domain="kofacustom.nigeria"
5   package="kofacustom.nigeria"
6   >
7
8  <include package="grok" />
9  <includeOverrides package="kofacustom.nigeria" />
10  <include package="kofacustom.nigeria" file="mail.zcml" />
11
12  <!-- Where should the datacenter reside by default?
13
14       The path is relative to the `package` defined in top
15       `configure` directive.
16  -->
17  <kofa:datacenter
18      path="../../../parts/test/datacenter" />
19
20
21  <!-- Typical functional testing security setup -->
22  <securityPolicy
23      component="zope.securitypolicy.zopepolicy.ZopeSecurityPolicy"
24      />
25
26
27  <unauthenticatedPrincipal
28      id="zope.anybody"
29      title="Unauthenticated User"
30      />
31  <unauthenticatedGroup
32      id="zope.Anybody"
33      title="Unauthenticated Users"
34      />
35  <authenticatedGroup
36      id="zope.Authenticated"
37      title="Authenticated Users"
38      />
39  <everybodyGroup
40      id="zope.Everybody"
41      title="All Users"
42      />
43
44
45  <!-- grant
46      permission="zope.View"
47      principal="zope.Anybody"
48      / -->
49
50  <grant
51      permission="zope.app.dublincore.view"
52      principal="zope.Anybody" />
53  <grant
54      permission="zope.View"
55      principal="zope.Authenticated"
56      />
57  <grant
58      permission="zope.app.dublincore.view"
59      principal="zope.Authenticated"
60      />
61  <grant
62      permission="waeup.Public"
63      principal="zope.Everybody"
64      />
65  <grant
66      permission="waeup.Anonymous"
67      principal="zope.Anybody"
68      />
69
70  <principal
71      id="zope.mgr"
72      title="Manager"
73      login="mgr"
74      password="mgrpw"
75      />
76
77  <role
78      id="zope.Manager"
79      title="Site Manager"
80      />
81
82  <grantAll
83      role="zope.Manager"
84      />
85
86  <grant
87      role="zope.Manager"
88      principal="zope.mgr"
89      />
90
91</configure>
Note: See TracBrowser for help on using the repository browser.