ozten/sasl-browserid — Issue #3: Integration tests fail to run in CI`
Author: ozten
Created: 2011-10-25 23:18:04+00:00
State: open

https://jenkins.mozilla.org/job/sasl-browserid/

We now have unit tests running, but integration tests fail.

Repro Steps:
ssh into slave01
edit /home/hudson-slave/workspace/sasl-browserid/test/run.sh and un-comment functional_test.py
sudo /usr/sbin/chroot /home/hudson-slave/workspace/sasl-browserid /test/run.sh

Output:
sudo -u hudson-slave sudo /usr/sbin/chroot /home/hudson-slave/workspace/sasl-browserid /test/run.sh

Message from syslogd@dm-hudson01-slave01 at Oct 25 16:10:40 ...
browserid-client: browserid_client_plug_init_plugin initialized
.
----------------------------------------------------------------------
Ran 1 test in 0.445s

OK
Resetting slapd
killed
starting
slapd -h ldap://127.0.0.1:1389/ -f /test/slapd/slapd.conf
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
EResetting slapd
killed
starting
slapd -h ldap://127.0.0.1:1389/ -f /test/slapd/slapd.conf
ldap_bind: Can't contact LDAP server (-1)
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
EResetting slapd
killed
starting
slapd -h ldap://127.0.0.1:1389/ -f /test/slapd/slapd.conf
adding new entry "dc=example,dc=com"
ldap_result: Can't contact LDAP server (-1)

connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
EResetting slapd
adding new entry "dc=example,dc=com"
killed
starting
slapd -h ldap://127.0.0.1:1389/ -f /test/slapd/slapd.conf
connecting ldap://127.0.0.1:1389/
still starting up
ldap_result: Can't contact LDAP server (-1)

connecting ldap://127.0.0.1:1389/
EResetting slapd
adding new entry "dc=example,dc=com"
killed
starting
slapd -h ldap://127.0.0.1:1389/ -f /test/slapd/slapd.conf
ldap_result: Can't contact LDAP server (-1)

connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still loading
still loading
still loading
still loading
still loading
adding new entry "dc=example,dc=com"

adding new entry "uid=jane@doe.com,dc=example,dc=com"
EResetting slapd
killed
starting
slapd -h ldap://127.0.0.1:1389/ -f /test/slapd/slapd.conf
ldap_result: Can't contact LDAP server (-1)

connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still loading
still loading
still loading
adding new entry "dc=example,dc=com"
still loading

adding new entry "uid=jane@doe.com,dc=example,dc=com"
EResetting slapd
killed
starting
slapd -h ldap://127.0.0.1:1389/ -f /test/slapd/slapd.conf
ldap_result: Can't contact LDAP server (-1)

connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
adding new entry "dc=example,dc=com"

adding new entry "uid=jane@doe.com,dc=example,dc=com"

slapd -h ldap://127.0.0.1:1389/ -f /test/slapd/slapd.conf
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
still starting up
connecting ldap://127.0.0.1:1389/
E
======================================================================
ERROR: test_bad_assertion_buffer_overflow_assertion (__main__.NormalUsageTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/test/functional_test.py", line 127, in test_bad_assertion_buffer_overflow_assertion
self.assertRaises(ldap.LOCAL_ERROR, lambda:\
File "/usr/lib/python2.4/unittest.py", line 320, in failUnlessRaises
callableObj(*args, **kwargs)
File "/test/functional_test.py", line 127, in
self.assertRaises(ldap.LOCAL_ERROR, lambda:\
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 196, in sasl_interactive_bind_s
return self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls),sasl_flags)
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 94, in _ldap_call
result = func(*args,**kwargs)
AUTH_UNKNOWN: {'info': 'SASL(-4): no mechanism available: No worthy mechs found', 'desc': 'Unknown authentication method'}

======================================================================
ERROR: test_bad_assertion_buffer_overflow_audience (__main__.NormalUsageTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/test/functional_test.py", line 144, in test_bad_assertion_buffer_overflow_audience
self.assertRaises(ldap.LOCAL_ERROR, lambda:\
File "/usr/lib/python2.4/unittest.py", line 320, in failUnlessRaises
callableObj(*args, **kwargs)
File "/test/functional_test.py", line 144, in
self.assertRaises(ldap.LOCAL_ERROR, lambda:\
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 196, in sasl_interactive_bind_s
return self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls),sasl_flags)
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 94, in _ldap_call
result = func(*args,**kwargs)
AUTH_UNKNOWN: {'info': 'SASL(-4): no mechanism available: No worthy mechs found', 'desc': 'Unknown authentication method'}

======================================================================
ERROR: test_bad_assertion_empty_string (__main__.NormalUsageTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/test/functional_test.py", line 119, in test_bad_assertion_empty_string
self.assertRaises(ldap.LOCAL_ERROR, lambda:\
File "/usr/lib/python2.4/unittest.py", line 320, in failUnlessRaises
callableObj(*args, **kwargs)
File "/test/functional_test.py", line 119, in
self.assertRaises(ldap.LOCAL_ERROR, lambda:\
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 196, in sasl_interactive_bind_s
return self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls),sasl_flags)
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 94, in _ldap_call
result = func(*args,**kwargs)
AUTH_UNKNOWN: {'info': 'SASL(-4): no mechanism available: No worthy mechs found', 'desc': 'Unknown authentication method'}

======================================================================
ERROR: test_bad_assertion_no_auth (__main__.NormalUsageTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/test/functional_test.py", line 111, in test_bad_assertion_no_auth
self.assertRaises(ldap.INVALID_CREDENTIALS, lambda:\
File "/usr/lib/python2.4/unittest.py", line 320, in failUnlessRaises
callableObj(*args, **kwargs)
File "/test/functional_test.py", line 111, in
self.assertRaises(ldap.INVALID_CREDENTIALS, lambda:\
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 196, in sasl_interactive_bind_s
return self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls),sasl_flags)
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 94, in _ldap_call
result = func(*args,**kwargs)
AUTH_UNKNOWN: {'info': 'SASL(-4): no mechanism available: No worthy mechs found', 'desc': 'Unknown authentication method'}

======================================================================
ERROR: test_cached_assertion (__main__.NormalUsageTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/test/functional_test.py", line 83, in test_cached_assertion
self.ldap_conn.sasl_interactive_bind_s("", sasl_creds)
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 196, in sasl_interactive_bind_s
return self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls),sasl_flags)
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 94, in _ldap_call
result = func(*args,**kwargs)
AUTH_UNKNOWN: {'info': 'SASL(-4): no mechanism available: No worthy mechs found', 'desc': 'Unknown authentication method'}

======================================================================
ERROR: test_cached_assertion_unknown_user (__main__.NormalUsageTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/test/functional_test.py", line 101, in test_cached_assertion_unknown_user
self.ldap_conn.sasl_interactive_bind_s("", sasl_creds)
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 196, in sasl_interactive_bind_s
return self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls),sasl_flags)
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 94, in _ldap_call
result = func(*args,**kwargs)
AUTH_UNKNOWN: {'info': 'SASL(-4): no mechanism available: No worthy mechs found', 'desc': 'Unknown authentication method'}

======================================================================
ERROR: test_no_browserid_auth_mech (__main__.NormalUsageTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/test/functional_test.py", line 177, in test_no_browserid_auth_mech
self.assertRaises(ldap.STRONG_AUTH_NOT_SUPPORTED, lambda:\
File "/usr/lib/python2.4/unittest.py", line 320, in failUnlessRaises
callableObj(*args, **kwargs)
File "/test/functional_test.py", line 177, in
self.assertRaises(ldap.STRONG_AUTH_NOT_SUPPORTED, lambda:\
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 196, in sasl_interactive_bind_s
return self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls),sasl_flags)
File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 94, in _ldap_call
result = func(*args,**kwargs)
AUTH_UNKNOWN: {'info': 'SASL(-4): no mechanism available: No worthy mechs found', 'desc': 'Unknown authentication method'}

----------------------------------------------------------------------
Ran 7 tests in 8.397s

FAILED (errors=7)

Inside the chroot, looking at /var/log/messages

Oct 17 23:40:39 dm-hudson01-slave01 python: unable to dlopen /usr/lib/sasl2/libbrowserid.so.0: /usr/lib/sasl2/libbrowserid.so.0: undefined symbol: _plug_get_simple
Oct 17 23:40:39 dm-hudson01-slave01 python: No worthy mechs found
Oct 17 23:40:47 dm-hudson01-slave01 last message repeated 6 times