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 2015/12/10 19:04:02 UTC
qpid-dispatch git commit: Add policy aggregation test
Repository: qpid-dispatch
Updated Branches:
refs/heads/crolke-DISPATCH-188-1 8f7deddf4 -> 5a9a4a8dc
Add policy aggregation test
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/5a9a4a8d
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/5a9a4a8d
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/5a9a4a8d
Branch: refs/heads/crolke-DISPATCH-188-1
Commit: 5a9a4a8dc6fac258b9168d4d8dd5d044fa2b4824
Parents: 8f7dedd
Author: Chuck Rolke <cr...@redhat.com>
Authored: Thu Dec 10 13:03:55 2015 -0500
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Thu Dec 10 13:03:55 2015 -0500
----------------------------------------------------------------------
tests/system_tests_policy.py | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/5a9a4a8d/tests/system_tests_policy.py
----------------------------------------------------------------------
diff --git a/tests/system_tests_policy.py b/tests/system_tests_policy.py
index e61e380..4cd880a 100644
--- a/tests/system_tests_policy.py
+++ b/tests/system_tests_policy.py
@@ -216,5 +216,26 @@ class PolicyFile(TestCase):
PolicyFile.policy.policy_lookup('ynot', '10.48.255.254', 'photoserver', ypolicy) )
self.assertTrue( self.dict_compare(zpolicy, ypolicy) )
+ def test_policy1_superuser_aggregation(self):
+ upolicy = {}
+ self.assertTrue(
+ PolicyFile.policy.policy_lookup('ellen', '72.135.2.9', 'photoserver', upolicy) )
+ self.assertTrue(upolicy['policyVersion'] == '1')
+ self.assertTrue(upolicy['maximumConnections'] == '10')
+ self.assertTrue(upolicy['maximumConnectionsPerUser'] == '5')
+ self.assertTrue(upolicy['maximumConnectionsPerHost'] == '5')
+ self.assertTrue(upolicy['max_frame_size'] == 666666)
+ self.assertTrue(upolicy['max_message_size'] == 666666)
+ self.assertTrue(upolicy['max_session_window'] == 666666)
+ self.assertTrue(upolicy['max_sessions'] == 6)
+ self.assertTrue(upolicy['max_senders'] == 66)
+ self.assertTrue(upolicy['max_receivers'] == 66)
+ self.assertTrue(upolicy['allow_anonymous_sender'])
+ self.assertTrue(upolicy['allow_dynamic_src'])
+ addrs = ['public', 'private','management', 'root']
+ print "targets = %s" % upolicy['targets']
+ for s in addrs: self.assertTrue(s in upolicy['targets'])
+ for s in addrs: self.assertTrue(s in upolicy['sources'])
+
if __name__ == '__main__':
unittest.main(main_module())
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org