diff tests/data/conf20.yml @ 105:1c2f8a96dec2

Unittests with some real-worl-examples of .yml and .ini configuration files
author Franz Glasner <f.glasner@feldmann-mg.com>
date Fri, 23 Mar 2018 17:43:36 +0100
parents
children 057d87d030f1
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/data/conf20.yml	Fri Mar 23 17:43:36 2018 +0100
@@ -0,0 +1,90 @@
+# -*- coding: utf-8; mode: yaml; indent-tabs-mode: nil; -*-
+#
+# For testing: merge with conf21.yml
+#
+%YAML 1.1
+---
+
+process:
+  umask: 0o0027
+
+intl:
+  domain:     test-configmix
+  localedir:  '{{appdir}}/locale'
+  fallback:   de
+  cache:
+    items: 10
+
+
+db:
+  user:
+    name: <My Username>
+    pwd: <My Password>
+
+  catalog: <MyDbName>
+
+  locinfo:
+    rw:
+      hostname: localhost
+      port: 5432
+
+    ro:
+      hostname: localhost
+      port: 5432
+
+  engines:
+    rw:
+      url: 'postgresql+psycopg2://{{db.user.name|urlquote}}:{{db.user.pwd|urlquote}}@{{db.locinfo.rw.hostname}}:{{db.locinfo.rw.port}}/{{db.catalog|urlquote}}'
+      encoding: utf-8
+      isolation_level: 'SERIALIZABLE'
+      echo: false
+      echo_pool: false
+
+    ro:
+      url: 'postgresql+psycopg2://{{db.user.name|urlquote}}:{{db.user.pwd|urlquote}}@{{db.locinfo.ro.hostname}}:{{db.locinfo.ro.port}}/{{db.catalog|urlquote}}'
+      encoding: utf-8
+      isolation_level: 'SERIALIZABLE'
+      echo: false
+      echo_pool: false
+      is_readonly: true
+
+    msg:
+      url: 'postgresql+psycopg2://{{db.user.name|urlquote}}:{{db.user.pwd|urlquote}}@{{db.locinfo.rw.hostname}}:{{db.locinfo.rw.port}}/{{db.catalog|urlquote}}'
+      encoding: utf-8
+      isolation_level: 'SERIALIZABLE'
+      echo: false
+      echo_pool: false
+
+    mandant:
+      url: 'postgresql+psycopg2://{{db.user.name|urlquote}}:{{db.user.pwd|urlquote}}@{{db.locinfo.ro.hostname}}:{{db.locinfo.ro.port}}/{{db.catalog|urlquote}}'
+      encoding: utf-8
+      isolation_level: 'REPEATABLE_READ'
+      echo: false
+      echo_pool: false
+      is_readonly: true
+
+    session:
+      url: 'postgresql+psycopg2://{{db.user.name|urlquote}}:{{db.user.pwd|urlquote}}@{{db.locinfo.rw.hostname}}:{{db.locinfo.rw.port}}/{{db.catalog|urlquote}}'
+      encoding: utf-8
+      isolation_level: 'REPEATABLE_READ'
+      echo: false
+      echo_pool: false
+
+
+wsgi:
+  debug: false
+
+  debugger:
+    type: werkzeug
+    params:
+      evalex: true
+
+  profile: false
+
+  profiler:
+    type: werkzeug
+    params:
+      #stream: sys:stderr
+      profile_dir: '{{tmpdir}}/profiler'
+      #sort_by: ['time', 'calls']
+      #restrictions=(),