aboutsummaryrefslogtreecommitdiffstats
path: root/tests/etc_config.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/etc_config.json')
-rw-r--r--tests/etc_config.json47
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/etc_config.json b/tests/etc_config.json
new file mode 100644
index 0000000..d7715b2
--- /dev/null
+++ b/tests/etc_config.json
@@ -0,0 +1,47 @@
+{
+ "wservice_port" : 25577,
+ "consul_url" : "http://unit-test-consul:850000",
+ "consul_timeout_in_secs" : 60,
+ "pdp_api_version" : null,
+ "policy_handler" : {
+ "system" : "policy_handler",
+ "tls" : {
+ "cert_directory" : "etc/tls/certs/",
+ "cacert" : "att_internal_root.crt",
+ "private_key" : "key.pem",
+ "server_cert" : "cert.pem",
+ "server_ca_chain" : "ca_chain.pem"
+ }
+ },
+ "logging" : {
+ "version": 1,
+ "disable_existing_loggers": false,
+ "formatters": {
+ "local": {
+ "format": "%(asctime)s.%(msecs)03d %(levelname)+8s %(threadName)s %(name)s.%(funcName)s: %(message)s",
+ "datefmt": "%Y%m%d_%H%M%S"
+ }
+ },
+ "handlers": {
+ "file": {
+ "class": "logging.handlers.TimedRotatingFileHandler",
+ "formatter": "local",
+ "filename" : "logs/policy_handler.log",
+ "level": "DEBUG",
+ "when": "midnight",
+ "interval": 1,
+ "backupCount": 10,
+ "delay": true
+ }
+ },
+ "loggers": {
+ "policy_handler" : {
+ "handlers": ["file"],
+ "propagate":false
+ }
+ },
+ "root": {
+ "handlers": ["file"]
+ }
+ }
+} \ No newline at end of file