aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock_config.json
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2018-08-24 13:15:04 -0400
committerAlex Shatov <alexs@att.com>2018-08-24 13:15:04 -0400
commit1d693376205c66af93283d04e8e9740c947a7d02 (patch)
tree9188af307614661c1afbe50cdaa2fa8a2cdc691c /tests/mock_config.json
parent1cddbc70e4799970dc606014ef79e025d6a8e722 (diff)
4.2.0 policy-handler - periodic reconfigure
- reconfigure == periodically retrieve the policy-handler config from consul-kv and compare to previous config and subconfigs. If changed, reconfigure the subunits - selectively change one or any settings for the following = catch_up timer interval = reconfigure timer interval = deployment-handler url and params (thread-safe) = policy-engine url and params (thread-safe) = web-socket url to policy-engine (through a callback) - each subunit has its own Settings that keep track of changes - try-catch and metrics around discovery - consul API - hidden the secrets from logs - froze the web-socket version to 0.49.0 because 0.50.0 and 0.51.0 are broken - looking around for stable alternatives - fixed-adapted the callbacks passed to the web-socket lib that changed its API in 0.49.0 and later - log the stack on the exception occurring in the web-socket lib - unit test refactoring Change-Id: Id53bad59660a197f59d9aeb7c05ab761d1060cd0 Signed-off-by: Alex Shatov <alexs@att.com> Issue-ID: DCAEGEN2-470
Diffstat (limited to 'tests/mock_config.json')
-rw-r--r--tests/mock_config.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/mock_config.json b/tests/mock_config.json
new file mode 100644
index 0000000..98b0d19
--- /dev/null
+++ b/tests/mock_config.json
@@ -0,0 +1,36 @@
+{
+ "policy_handler" : {
+ "system" : "policy_handler",
+ "thread_pool_size" : 4,
+ "pool_connections" : 20,
+ "policy_retry_count" : 5,
+ "policy_retry_sleep" : 5,
+ "catch_up" : {
+ "interval" : 10
+ },
+ "reconfigure" : {
+ "interval" : 10
+ },
+ "policy_engine" : {
+ "url" : "https://pdp-server:8081",
+ "path_pdp" : "/pdp/",
+ "path_api" : "/pdp/api/",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json",
+ "ClientAuth" : "Basic user",
+ "Authorization" : "Basic auth",
+ "Environment" : "TEST"
+ },
+ "target_entity" : "policy_engine"
+ },
+ "deploy_handler" : {
+ "target_entity" : "deployment_handler",
+ "url" : "http://deployment_handler:8188",
+ "max_msg_length_mb" : 5,
+ "query" : {
+ "cfy_tenant_name" : "default_tenant"
+ }
+ }
+ }
+}