diff options
| author | Gordon Sim <gsim@apache.org> | 2011-06-09 15:35:35 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2011-06-09 15:35:35 +0000 |
| commit | de1653af9bb0405b46d4317bc2e89c8f6c81276a (patch) | |
| tree | 8b8d43f86cdee88255a18e42e23756076481a878 /cpp/src/tests | |
| parent | c8c7bcaa46eb47a249c6e05546253e462e705cab (diff) | |
| download | qpid-python-de1653af9bb0405b46d4317bc2e89c8f6c81276a.tar.gz | |
QPID-3298: don't include the internal federation related args in the biding for headers exchange
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1133942 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests')
| -rwxr-xr-x | cpp/src/tests/federation.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cpp/src/tests/federation.py b/cpp/src/tests/federation.py index 201b06a4a2..49bdecdd95 100755 --- a/cpp/src/tests/federation.py +++ b/cpp/src/tests/federation.py @@ -649,10 +649,17 @@ class FederationTests(TestBase010): self.verify_cleanup() - def test_dynamic_headers(self): + def test_dynamic_headers_any(self): + self.do_test_dynamic_headers('any') + + def test_dynamic_headers_all(self): + self.do_test_dynamic_headers('all') + + + def do_test_dynamic_headers(self, match_mode): session = self.session r_conn = self.connect(host=self.remote_host(), port=self.remote_port()) - r_session = r_conn.session("test_dynamic_headers") + r_session = r_conn.session("test_dynamic_headers_%s" % match_mode) session.exchange_declare(exchange="fed.headers", type="headers") r_session.exchange_declare(exchange="fed.headers", type="headers") @@ -671,7 +678,7 @@ class FederationTests(TestBase010): sleep(5) session.queue_declare(queue="fed1", exclusive=True, auto_delete=True) - session.exchange_bind(queue="fed1", exchange="fed.headers", binding_key="key1", arguments={'x-match':'any', 'class':'first'}) + session.exchange_bind(queue="fed1", exchange="fed.headers", binding_key="key1", arguments={'x-match':match_mode, 'class':'first'}) self.subscribe(queue="fed1", destination="f1") queue = session.incoming("f1") |
