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 16:45:33 UTC

qpid-dispatch git commit: DISPATCH-901: some extra debugging to help diagnose CI issue

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 502538b4f -> 2e34afd3a


DISPATCH-901: some extra debugging to help diagnose CI issue


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/2e34afd3
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/2e34afd3
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/2e34afd3

Branch: refs/heads/master
Commit: 2e34afd3a46a141b3dd8451daaca96d11e471637
Parents: 502538b
Author: Gordon Sim <gs...@redhat.com>
Authored: Tue Jan 23 16:44:53 2018 +0000
Committer: Gordon Sim <gs...@redhat.com>
Committed: Tue Jan 23 16:44:58 2018 +0000

----------------------------------------------------------------------
 tests/authservice.py                       | 1 +
 tests/system_tests_authz_service_plugin.py | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/2e34afd3/tests/authservice.py
----------------------------------------------------------------------
diff --git a/tests/authservice.py b/tests/authservice.py
index c46a9ae..2beea44 100755
--- a/tests/authservice.py
+++ b/tests/authservice.py
@@ -47,6 +47,7 @@ class AuthService(MessagingHandler):
             self.listener.close()
 
     def on_connection_opening(self, event):
+        print('connection opening for %s' % event.transport.user)
         if self.permissions.get(event.transport.user):
             event.connection.properties = {
                 symbol('authenticated-identity'): "%s" % event.transport.user,

http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/2e34afd3/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..626109b 100644
--- a/tests/system_tests_authz_service_plugin.py
+++ b/tests/system_tests_authz_service_plugin.py
@@ -62,10 +62,16 @@ mech_list: SCRAM-SHA-1
         if not SASL.extended():
             return
 
+        authservice = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'authservice.py')
+        if not os.path.isfile(authservice):
+            print('authservice script does NOT exist: %s' % authservice)
+        else:
+            print('authservice script DOES exist: %s' % authservice)
+
         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', authservice, '-a', '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([


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org