diff options
| author | Gordon Sim <gsim@apache.org> | 2011-02-25 20:54:02 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2011-02-25 20:54:02 +0000 |
| commit | ef3413c65d1df25f96b46c20495627489ff508b6 (patch) | |
| tree | 239742b3d08b37749f4bb337eabd42ba2e2ab9a4 /qpid/cpp/src/tests/cli_tests.py | |
| parent | 45a44737a2323ec1fa722305eb2c9e04ed2b0850 (diff) | |
| download | qpid-python-ef3413c65d1df25f96b46c20495627489ff508b6.tar.gz | |
QPID-3087: add extra test for qpid-config and handling string values in arguments
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1074698 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/cli_tests.py')
| -rwxr-xr-x | qpid/cpp/src/tests/cli_tests.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/cli_tests.py b/qpid/cpp/src/tests/cli_tests.py index deef03279d..53c64e055c 100755 --- a/qpid/cpp/src/tests/cli_tests.py +++ b/qpid/cpp/src/tests/cli_tests.py @@ -365,6 +365,26 @@ class CliTests(TestBase010): self.assertEqual(queue._altExchange_.name, altName) self.assertEqual(found, True) + def test_qpid_config_list_queues_arguments(self): + """ + Test to verify that when the type of a policy limit is + actually a string (though still a valid value), it does not + upset qpid-config + """ + self.startQmf(); + qmf = self.qmf + + names = ["queue_capacity%s" % (i) for i in range(1, 6)] + for name in names: + self.session.queue_declare(queue=name, exclusive=True, + arguments={'qpid.max_count' : str(i), 'qpid.max_size': '100'}) + + output = os.popen(self.qpid_config_command(" queues")).readlines() + queues = [line.split()[0] for line in output[2:len(output)]] #ignore first two lines (header) + + for name in names: + assert name in queues, "%s not in %s" % (name, queues) + def test_qpid_route(self): self.startQmf(); qmf = self.qmf |
