qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject [3/4] qpid-dispatch git commit: Rename Policy to PolicyLocal
Date Mon, 04 Jan 2016 22:30:45 GMT
Rename Policy to PolicyLocal


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/f9e76138
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/f9e76138
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/f9e76138

Branch: refs/heads/foo-pol-01
Commit: f9e76138ab96dcaf5eb4cb0400ef0eaa838af600
Parents: 5f89f0f
Author: Chuck Rolke <crolke@redhat.com>
Authored: Tue Dec 22 14:34:40 2015 -0500
Committer: Chuck Rolke <crolke@redhat.com>
Committed: Tue Dec 22 14:34:40 2015 -0500

----------------------------------------------------------------------
 python/qpid_dispatch_internal/management/policy.py | 6 +++---
 tests/system_tests_policy.py                       | 5 ++---
 2 files changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/f9e76138/python/qpid_dispatch_internal/management/policy.py
----------------------------------------------------------------------
diff --git a/python/qpid_dispatch_internal/management/policy.py b/python/qpid_dispatch_internal/management/policy.py
index 185b60c..af5bb6a 100644
--- a/python/qpid_dispatch_internal/management/policy.py
+++ b/python/qpid_dispatch_internal/management/policy.py
@@ -353,7 +353,7 @@ class PolicyCompiler():
                     return False
         return True
 
-class Policy():
+class PolicyLocal():
     """
     The policy database.
     """
@@ -725,7 +725,7 @@ def main_except(argv):
 
     (options, args) = parser.parse_args()
 
-    policy = Policy(options.folder)
+    policy = PolicyLocal(options.folder)
 
     print("policy names: %s" % policy.policy_db_get_names())
 
@@ -734,7 +734,7 @@ def main_except(argv):
 
     # Exercise a few functions
     # Empty policy
-    policy2 = Policy()
+    policy2 = PolicyLocal()
 
     print("Policy details:")
     for pname in policy.policy_db_get_names():

http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/f9e76138/tests/system_tests_policy.py
----------------------------------------------------------------------
diff --git a/tests/system_tests_policy.py b/tests/system_tests_policy.py
index 0ef7356..46a20d2 100644
--- a/tests/system_tests_policy.py
+++ b/tests/system_tests_policy.py
@@ -32,8 +32,7 @@ from system_test import TIMEOUT
 
 from qpid_dispatch_internal.management.policy_util import \
     HostAddr, PolicyError, HostStruct, PolicyAppConnectionMgr
-from qpid_dispatch_internal.management.policy import \
-    Policy
+from qpid_dispatch_internal.management.policy import PolicyLocal
 
 class AbsoluteConnectionCountLimit(TestCase):
     """
@@ -163,7 +162,7 @@ class PolicyHostAddrTest(TestCase):
 
 class PolicyFile(TestCase):
 
-    policy = Policy("../../../tests/policy-1")
+    policy = PolicyLocal("../../../tests/policy-1")
 
     def dict_compare(self, d1, d2):
         d1_keys = set(d1.keys())


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message