diff options
| author | Charles E. Rolke <chug@apache.org> | 2012-04-04 19:09:31 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2012-04-04 19:09:31 +0000 |
| commit | 1569fa1c6670fb2e23fe75206d5bb24a023bdc79 (patch) | |
| tree | 0bab4a24a6aeeac7d643b4ab2f27d78d174e7350 /qpid/tools | |
| parent | cd490267f429405a14e033089d244c9c52c48fe4 (diff) | |
| download | qpid-python-1569fa1c6670fb2e23fe75206d5bb24a023bdc79.tar.gz | |
QPID-3918 Add management queries to ACL module.
* Make queries available to self tests.
* Exercise query interface during acl self tests.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1309549 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/tools')
| -rw-r--r-- | qpid/tools/src/py/qpidtoollibs/broker.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qpid/tools/src/py/qpidtoollibs/broker.py b/qpid/tools/src/py/qpidtoollibs/broker.py index c2340de9dd..0bae786306 100644 --- a/qpid/tools/src/py/qpidtoollibs/broker.py +++ b/qpid/tools/src/py/qpidtoollibs/broker.py @@ -268,6 +268,20 @@ class BrokerAgent(object): def reloadAclFile(self): self._method('reloadACLFile', {}, "org.apache.qpid.acl:acl:org.apache.qpid.broker:broker:amqp-broker") + def acl_lookup(self, userName, action, aclObj, aclObjName, propMap): + args = {'userId': userName, + 'action': action, + 'object': aclObj, + 'objectName': aclObjName, + 'propertyMap': propMap} + return self._method('Lookup', args, "org.apache.qpid.acl:acl:org.apache.qpid.broker:broker:amqp-broker") + + def acl_lookupPublish(self, userName, exchange, key): + args = {'userId': userName, + 'exchangeName': exchange, + 'routingKey': key} + return self._method('LookupPublish', args, "org.apache.qpid.acl:acl:org.apache.qpid.broker:broker:amqp-broker") + def create(self, _type, name, properties, strict): """Create an object of the specified type""" pass |
