You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2018/01/23 22:23:54 UTC
qpid-dispatch git commit: DISPATCH-901: allow PLAIN as well as
SCRAM-SHA-1, for older platforms
Repository: qpid-dispatch
Updated Branches:
refs/heads/master 7d32b0e85 -> 84604e7fb
DISPATCH-901: allow PLAIN as well as SCRAM-SHA-1, for older platforms
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/84604e7f
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/84604e7f
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/84604e7f
Branch: refs/heads/master
Commit: 84604e7fb5c9987dff271783b968d30331968328
Parents: 7d32b0e
Author: Gordon Sim <gs...@redhat.com>
Authored: Tue Jan 23 22:23:31 2018 +0000
Committer: Gordon Sim <gs...@redhat.com>
Committed: Tue Jan 23 22:23:31 2018 +0000
----------------------------------------------------------------------
tests/system_tests_authz_service_plugin.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/84604e7f/tests/system_tests_authz_service_plugin.py
----------------------------------------------------------------------
diff --git a/tests/system_tests_authz_service_plugin.py b/tests/system_tests_authz_service_plugin.py
index af84bc0..d6f0534 100644
--- a/tests/system_tests_authz_service_plugin.py
+++ b/tests/system_tests_authz_service_plugin.py
@@ -41,14 +41,14 @@ class AuthServicePluginAuthzTest(TestCase):
# Create a SASL configuration file.
with open('tests-mech-SCRAM.conf', 'w') as sasl_conf:
sasl_conf.write("""
-mech_list: SCRAM-SHA-1
+mech_list: SCRAM-SHA-1 PLAIN
""")
with open('proton-server.conf', 'w') as sasl_conf:
sasl_conf.write("""
pwcheck_method: auxprop
auxprop_plugin: sasldb
sasldb_path: users.sasldb
-mech_list: SCRAM-SHA-1
+mech_list: SCRAM-SHA-1 PLAIN
""")
@@ -65,12 +65,13 @@ mech_list: SCRAM-SHA-1
cls.createSaslFiles()
cls.auth_service_port = cls.tester.get_port()
- cls.tester.popen(['/usr/bin/env', 'python', os.path.join(os.path.dirname(os.path.abspath(__file__)), 'authservice.py'), '-a', '127.0.0.1:%d' % cls.auth_service_port, '-c', os.getcwd()], expect=Process.RUNNING)
+ cls.tester.popen(['/usr/bin/env', 'python', os.path.join(os.path.dirname(os.path.abspath(__file__)), 'authservice.py'), '-a', 'amqps://127.0.0.1:%d' % cls.auth_service_port, '-c', os.getcwd()], expect=Process.RUNNING)
cls.router_port = cls.tester.get_port()
cls.tester.qdrouterd('router', Qdrouterd.Config([
- ('authServicePlugin', {'name':'myauth', 'authService': '127.0.0.1:%d' % cls.auth_service_port}),
- ('listener', {'host': '0.0.0.0', 'port': cls.router_port, 'role': 'normal', 'saslPlugin':'myauth', 'saslMechanisms':'SCRAM-SHA-1'}),
+ ('sslProfile', {'name':'myssl'}),
+ ('authServicePlugin', {'name':'myauth', 'authSslProfile':'myssl', 'authService': '127.0.0.1:%d' % cls.auth_service_port}),
+ ('listener', {'host': '0.0.0.0', 'port': cls.router_port, 'role': 'normal', 'saslPlugin':'myauth', 'saslMechanisms':'SCRAM-SHA-1 PLAIN'}),
('router', {'mode': 'standalone', 'id': 'router',
'saslConfigName': 'tests-mech-SCRAM',
'saslConfigPath': os.getcwd()})
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org