missing test resources
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Thu, 08 Jan 2009 09:59:12 +0100
changeset 364 226cbb207859
parent 363 9da036d0cced
child 365 5d8336b70aa7
missing test resources
server/test/data/extern_mapping.py
server/test/data/sources
server/test/data/sources_extern
server/test/data/sources_multi
server/test/data/sourcesldap
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/test/data/extern_mapping.py	Thu Jan 08 09:59:12 2009 +0100
@@ -0,0 +1,2 @@
+support_entities = {'Card': True, 'Affaire': True, 'State': True}
+support_relations = {'in_state': True, 'documented_by': True, 'multisource_inlined_rel': True}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/test/data/sources	Thu Jan 08 09:59:12 2009 +0100
@@ -0,0 +1,14 @@
+[system]
+
+db-driver   = sqlite
+db-host     = 
+adapter     = native
+db-name     = tmpdb
+db-encoding = UTF-8
+db-user     = admin
+db-password = gingkow
+
+[admin]
+login = admin
+password = gingkow
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/test/data/sources_extern	Thu Jan 08 09:59:12 2009 +0100
@@ -0,0 +1,13 @@
+[system]
+
+db-driver   = sqlite
+db-host     = 
+adapter     = native
+db-name     = tmpdb-extern
+db-encoding = UTF-8
+db-user     = admin
+db-password = gingkow
+
+[admin]
+login = admin
+password = gingkow
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/test/data/sources_multi	Thu Jan 08 09:59:12 2009 +0100
@@ -0,0 +1,20 @@
+[system]
+
+db-driver   = sqlite
+db-host     = 
+adapter     = native
+db-name     = tmpdb
+db-encoding = UTF-8
+db-user     = admin
+db-password = gingkow
+
+[extern]
+adapter = pyrorql
+pyro-ns-id = extern
+cubicweb-user = admin
+cubicweb-password = gingkow
+mapping-file = extern_mapping.py
+
+[admin]
+login = admin
+password = gingkow
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/test/data/sourcesldap	Thu Jan 08 09:59:12 2009 +0100
@@ -0,0 +1,35 @@
+[system]
+adapter=native
+# database driver (postgres or sqlite)
+db-driver=sqlite
+# database host
+db-host=
+# database name
+db-name=tmpdb
+# database user
+db-user=admin
+# database password
+db-password=gingkow
+# database encoding
+db-encoding=utf8
+
+[admin]
+login = admin
+password = gingkow
+
+[ldapuser]
+adapter=ldapuser
+# ldap host
+host=ldap
+# base DN to lookup for usres
+user-base-dn=ou=People,dc=logilab,dc=fr
+# user search scope
+user-scope=ONELEVEL
+# classes of user
+user-classes=top,posixAccount
+# attribute used as login on authentication
+user-login-attr=uid
+# name of a group in which ldap users will be by default
+user-default-group=users
+# map from ldap user attributes to cubicweb attributes
+user-attrs-map=gecos:email,uid:login