You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2016/01/21 03:21:47 UTC
qpid-dispatch git commit: Add maps to config file.
Repository: qpid-dispatch
Updated Branches:
refs/heads/crolke-DISPATCH-188-1 b85fc9e5e -> af0744ab4
Add maps to config file.
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/af0744ab
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/af0744ab
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/af0744ab
Branch: refs/heads/crolke-DISPATCH-188-1
Commit: af0744ab4e71eed22b96a0826cd53f51c997d8d7
Parents: b85fc9e
Author: Chuck Rolke <cr...@redhat.com>
Authored: Wed Jan 20 21:21:01 2016 -0500
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Wed Jan 20 21:21:01 2016 -0500
----------------------------------------------------------------------
tests/policy-1/test-router-with-policy.json | 361 ++++++++++++++++++-----
1 file changed, 293 insertions(+), 68 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/af0744ab/tests/policy-1/test-router-with-policy.json
----------------------------------------------------------------------
diff --git a/tests/policy-1/test-router-with-policy.json b/tests/policy-1/test-router-with-policy.json
index 643de2f..3d82ddd 100644
--- a/tests/policy-1/test-router-with-policy.json
+++ b/tests/policy-1/test-router-with-policy.json
@@ -1,70 +1,295 @@
[
- ["container", {
- "containerName": "QdstatSslTest",
- "saslConfigName": "tests-mech-EXTERNAL",
- "saslConfigPath": "/home/chug/Research/qdr/standaloneSsl/sasl_configs",
- "debugDump": "qddebug.txt"
- }],
- ["sslProfile", {
- "certFile": "/home/chug/Research/qdr/standaloneSsl/ssl_certs/server-certificate.pem",
- "keyFile": "/home/chug/Research/qdr/standaloneSsl/ssl_certs/server-private-key.pem",
- "password": "server-password",
- "name": "server-ssl",
- "certDb": "/home/chug/Research/qdr/standaloneSsl/ssl_certs/ca-certificate.pem"
- }],
- ["listener", {
- "saslMechanisms": "ANONYMOUS",
- "authenticatePeer": "no",
- "idleTimeoutSeconds": "120",
- "port": 21000,
- "addr": "0.0.0.0"
- }],
- ["listener", {
- "addr": "0.0.0.0",
- "requireSsl": "yes",
- "idleTimeoutSeconds": "120",
- "saslMechanisms": "ANONYMOUS",
- "sslProfile": "server-ssl",
- "authenticatePeer": "no",
- "port": 21001
- }],
- ["listener", {
- "addr": "0.0.0.0",
- "requireSsl": "no",
- "idleTimeoutSeconds": "120",
- "saslMechanisms": "ANONYMOUS",
- "sslProfile": "server-ssl",
- "authenticatePeer": "no",
- "port": 21002
- }],
- ["listener", {
- "addr": "0.0.0.0",
- "requireSsl": "yes",
- "idleTimeoutSeconds": "120",
- "saslMechanisms": "EXTERNAL",
- "sslProfile": "server-ssl",
- "authenticatePeer": "yes",
- "port": 21003
- }],
- ["log", {
- "source": "true",
- "enable": "info+",
- "module": "DEFAULT"
- }],
- ["policy", {
- "maximumConnections": 2
- }],
- ["policyAccessRuleset", {
- "applicationName": "photoserver"
- }],
- ["policyAppSettings", {
- "applicationName": "photoserver",
- "userGroupName": "admin",
- "maxFrameSize": 20000
- }],
- ["policyAppSettings", {
- "applicationName": "photoserver",
- "userGroupName": "users",
- "maxFrameSize": 10000
- }]
+ [
+ "container",
+ {
+ "containerName": "QdstatSslTest",
+ "saslConfigName": "tests-mech-EXTERNAL",
+ "saslConfigPath": "/home/chug/Research/qdr/standaloneSsl/sasl_configs",
+ "debugDump": "qddebug.txt"
+ }
+ ],
+ [
+ "sslProfile",
+ {
+ "certFile": "/home/chug/Research/qdr/standaloneSsl/ssl_certs/server-certificate.pem",
+ "keyFile": "/home/chug/Research/qdr/standaloneSsl/ssl_certs/server-private-key.pem",
+ "password": "server-password",
+ "name": "server-ssl",
+ "certDb": "/home/chug/Research/qdr/standaloneSsl/ssl_certs/ca-certificate.pem"
+ }
+ ],
+ [
+ "listener",
+ {
+ "saslMechanisms": "ANONYMOUS",
+ "authenticatePeer": "no",
+ "idleTimeoutSeconds": "120",
+ "port": 21000,
+ "addr": "0.0.0.0"
+ }
+ ],
+ [
+ "listener",
+ {
+ "addr": "0.0.0.0",
+ "requireSsl": "yes",
+ "idleTimeoutSeconds": "120",
+ "saslMechanisms": "ANONYMOUS",
+ "sslProfile": "server-ssl",
+ "authenticatePeer": "no",
+ "port": 21001
+ }
+ ],
+ [
+ "listener",
+ {
+ "addr": "0.0.0.0",
+ "requireSsl": "no",
+ "idleTimeoutSeconds": "120",
+ "saslMechanisms": "ANONYMOUS",
+ "sslProfile": "server-ssl",
+ "authenticatePeer": "no",
+ "port": 21002
+ }
+ ],
+ [
+ "listener",
+ {
+ "addr": "0.0.0.0",
+ "requireSsl": "yes",
+ "idleTimeoutSeconds": "120",
+ "saslMechanisms": "EXTERNAL",
+ "sslProfile": "server-ssl",
+ "authenticatePeer": "yes",
+ "port": 21003
+ }
+ ],
+ [
+ "log",
+ {
+ "source": "true",
+ "enable": "info+",
+ "module": "DEFAULT"
+ }
+ ],
+ [
+ "policy",
+ {
+ "maximumConnections": 2
+ }
+ ],
+ [
+ "policyAccessRuleset",
+ {
+ "applicationName": "photoserver",
+ "maxConnections": 50,
+ "maxConnPerUser": 5,
+ "maxConnPerHost": 20,
+ "userGroups": {
+ "anonymous": [
+ "anonymous"
+ ],
+ "users": [
+ "u1",
+ "u2"
+ ],
+ "paidsubscribers": [
+ "p1",
+ "p2"
+ ],
+ "test": [
+ "test",
+ "ynot"
+ ],
+ "admin": [
+ "alice",
+ "bob",
+ "ellen"
+ ],
+ "superuser": [
+ "ellen"
+ ]
+ },
+ "connectionGroups": {
+ "Ten18": [
+ "10.18.0.0,10.18.255.255"
+ ],
+ "EllensWS": [
+ "72.135.2.9"
+ ],
+ "TheLabs": [
+ "10.48.0.0,10.48.255.255",
+ "192.168.100.0,192.168.100.255"
+ ],
+ "localhost": [
+ "127.0.0.1",
+ "::1"
+ ],
+ "TheWorld": [
+ "*"
+ ]
+ },
+ "connectionIngressPolicies": {
+ "anonymous": [
+ "TheWorld"
+ ],
+ "users": [
+ "TheWorld"
+ ],
+ "paidsubscribers": [
+ "TheWorld"
+ ],
+ "test": [
+ "TheLabs"
+ ],
+ "admin": [
+ "Ten18",
+ "TheLabs",
+ "localhost"
+ ],
+ "superuser": [
+ "EllensSW",
+ "localhost"
+ ]
+ },
+ "connectionAllowDefault": true
+ }
+ ],
+ [
+ "policyAppSettings",
+ {
+ "applicationName": "photoserver",
+ "userGroupName": "anonymous",
+ "maxFrameSize": 111111,
+ "maxMessageSize": 111111,
+ "maxSessionWindow": 111111,
+ "maxSessions": 1,
+ "maxSenders": 11,
+ "maxReceivers": 11,
+ "allowDynamicSrc": false,
+ "allowAnonymousSender": false,
+ "sources": [
+ "public"
+ ],
+ "targets": []
+ }
+ ],
+ [
+ "policyAppSettings",
+ {
+ "applicationName": "photoserver",
+ "userGroupName": "users",
+ "maxFrameSize": 222222,
+ "maxMessageSize": 222222,
+ "maxSessionWindow": 222222,
+ "maxSessions": 2,
+ "maxSenders": 22,
+ "maxReceivers": 22,
+ "allowDynamicSrc": false,
+ "allowAnonymousSender": false,
+ "sources": [
+ "public",
+ "private"
+ ],
+ "targets": [
+ "public"
+ ]
+ }
+ ],
+ [
+ "policyAppSettings",
+ {
+ "applicationName": "photoserver",
+ "userGroupName": "paidsubscribers",
+ "maxFrameSize": 333333,
+ "maxMessageSize": 333333,
+ "maxSessionWindow": 333333,
+ "maxSessions": 3,
+ "maxSenders": 33,
+ "maxReceivers": 33,
+ "allowDynamicSrc": true,
+ "allowAnonymousSender": false,
+ "sources": [
+ "public",
+ "private"
+ ],
+ "targets": [
+ "public",
+ "private"
+ ]
+ }
+ ],
+ [
+ "policyAppSettings",
+ {
+ "applicationName": "photoserver",
+ "userGroupName": "test",
+ "maxFrameSize": 444444,
+ "maxMessageSize": 444444,
+ "maxSessionWindow": 444444,
+ "maxSessions": 4,
+ "maxSenders": 44,
+ "maxReceivers": 44,
+ "allowDynamicSrc": true,
+ "allowAnonymousSender": true,
+ "sources": [
+ "private"
+ ],
+ "targets": [
+ "private"
+ ]
+ }
+ ],
+ [
+ "policyAppSettings",
+ {
+ "applicationName": "photoserver",
+ "userGroupName": "admin",
+ "maxFrameSize": 555555,
+ "maxMessageSize": 555555,
+ "maxSessionWindow": 555555,
+ "maxSessions": 5,
+ "maxSenders": 55,
+ "maxReceivers": 55,
+ "allowDynamicSrc": true,
+ "allowAnonymousSender": true,
+ "sources": [
+ "public",
+ "private",
+ "management"
+ ],
+ "targets": [
+ "public",
+ "private",
+ "management"
+ ]
+ }
+ ],
+ [
+ "policyAppSettings",
+ {
+ "applicationName": "photoserver",
+ "userGroupName": "superuser",
+ "maxFrameSize": 666666,
+ "maxMessageSize": 666666,
+ "maxSessionWindow": 666666,
+ "maxSessions": 6,
+ "maxSenders": 66,
+ "maxReceivers": 66,
+ "allowDynamicSrc": false,
+ "allowAnonymousSender": false,
+ "sources": [
+ "public",
+ "private",
+ "management",
+ "root"
+ ],
+ "targets": [
+ "public",
+ "private",
+ "management",
+ "root"
+ ]
+ }
+ ]
]
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org