PROTON-1049: check sasl setup before running tests
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/ff13d769 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/ff13d769 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/ff13d769 Branch: refs/heads/go1 Commit: ff13d7699647b0453d324fe6431827a55fd8deb8 Parents: fefb81d Author: Gordon Sim <[email protected]> Authored: Wed Dec 16 09:27:54 2015 +0000 Committer: Gordon Sim <[email protected]> Committed: Wed Dec 16 09:27:54 2015 +0000 ---------------------------------------------------------------------- tests/python/proton_tests/reactor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/ff13d769/tests/python/proton_tests/reactor.py ---------------------------------------------------------------------- diff --git a/tests/python/proton_tests/reactor.py b/tests/python/proton_tests/reactor.py index e8446ca..beff329 100644 --- a/tests/python/proton_tests/reactor.py +++ b/tests/python/proton_tests/reactor.py @@ -19,7 +19,7 @@ from __future__ import absolute_import # import time -from .common import Test, SkipTest, TestServer, free_tcp_port +from .common import Test, SkipTest, TestServer, free_tcp_port, ensureCanTestExtendedSASL from proton.reactor import Container, Reactor, ApplicationEvent, EventInjector from proton.handlers import CHandshaker, MessagingHandler from proton import Handler @@ -508,12 +508,14 @@ class ContainerTest(Test): container.run() def test_authentication_via_url(self): + ensureCanTestExtendedSASL() test_handler = AuthenticationTestHandler() container = Container(test_handler) container.connect("%s:password@%s" % ("user%40proton", test_handler.url)) container.run() def test_authentication_via_container_attributes(self): + ensureCanTestExtendedSASL() test_handler = AuthenticationTestHandler() container = Container(test_handler) container.user = "user@proton" @@ -522,6 +524,7 @@ class ContainerTest(Test): container.run() def test_authentication_via_kwargs(self): + ensureCanTestExtendedSASL() test_handler = AuthenticationTestHandler() container = Container(test_handler) container.connect(test_handler.url, user="user@proton", password="password") --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
