summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/interlink_tests.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-08-15 20:10:48 +0000
committerGordon Sim <gsim@apache.org>2013-08-15 20:10:48 +0000
commitccb4bc1e6fc19bb7275164820d2f4a072aea96ee (patch)
tree1adc69ad56291c806966a33405661e758a3f2422 /qpid/cpp/src/tests/interlink_tests.py
parent7057688d9214cffd217781db3c51abef5e227c93 (diff)
downloadqpid-python-ccb4bc1e6fc19bb7275164820d2f4a072aea96ee.tar.gz
QPID-5077: improvement to SASL logic to handle entirely asynchronous dialogue
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1514465 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/interlink_tests.py')
-rwxr-xr-xqpid/cpp/src/tests/interlink_tests.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/interlink_tests.py b/qpid/cpp/src/tests/interlink_tests.py
index 129283ac24..0d2b757152 100755
--- a/qpid/cpp/src/tests/interlink_tests.py
+++ b/qpid/cpp/src/tests/interlink_tests.py
@@ -218,16 +218,22 @@ class AmqpBrokerTest(BrokerTest):
assert len(domains) == 1
assert domains[0].name == "BrokerB"
- def test_incoming_link(self):
+ def incoming_link(self, mechanism):
brokerB = self.amqp_broker()
agentB = BrokerAgent(brokerB.connect())
self.agent.create("queue", "q")
agentB.create("queue", "q")
- self.agent.create("domain", "BrokerB", {"url":brokerB.host_port(), "sasl_mechanisms":"NONE"})
+ self.agent.create("domain", "BrokerB", {"url":brokerB.host_port(), "sasl_mechanisms":mechanism})
self.agent.create("incoming", "Link1", {"domain":"BrokerB","source":"q","target":"q"})
#send to brokerB, receive from brokerA
self.send_and_receive(send_config=Config(brokerB))
+ def test_incoming_link_anonymous(self):
+ self.incoming_link("ANONYMOUS")
+
+ def test_incoming_link_nosasl(self):
+ self.incoming_link("NONE")
+
def test_outgoing_link(self):
brokerB = self.amqp_broker()
agentB = BrokerAgent(brokerB.connect())