Pythons cryptography changed, need to import scrypt differently soledad
Looks like pythons cryptomodules changed: https://github.com/pyca/cryptography/commit/a4668c6593005822ff6d655b7034e1c5eebfa1fd
Jul 12 08:09:08 FAIL: Webapp > Can sync Soledad? [webapp.rb:49]:
Jul 12 08:09:08 Error running `/srv/leap/tests/server-tests/helpers/soledad_sync.py 020310c9125a508ab66a8909691f41d5 rAudGAaNREYXeZIk2FwKaZIxl97mqA9MKLym-MCyUek https://citest14546.example.org:2323/user-020310c9125a508ab66a8909691f41d5 /usr/local/share/ca-certificates/leap_ca.crt password_bgOw7RiBK8HpzQ`:
Jul 12 08:09:08 Traceback (most recent call last):
Jul 12 08:09:08 File "/srv/leap/tests/server-tests/helpers/soledad_sync.py", line 81, in <module>
Jul 12 08:09:08 uuid, passphrase, tempdir, server, cert_file, token)
Jul 12 08:09:08 File "/srv/leap/tests/server-tests/helpers/client_side_db.py", line 58, in get_soledad_instance
Jul 12 08:09:08 auth_token=token)
Jul 12 08:09:08 File "/usr/lib/python2.7/dist-packages/leap/soledad/client/api.py", line 173, in __init__
Jul 12 08:09:08 self._secrets = Secrets(self)
Jul 12 08:09:08 File "/usr/lib/python2.7/dist-packages/leap/soledad/client/_secrets/__init__.py", line 44, in __init__
Jul 12 08:09:08 self._bootstrap()
Jul 12 08:09:08 File "/usr/lib/python2.7/dist-packages/leap/soledad/client/_secrets/__init__.py", line 73, in _bootstrap
Jul 12 08:09:08 self.store_secrets()
Jul 12 08:09:08 File "/usr/lib/python2.7/dist-packages/leap/soledad/client/_secrets/__init__.py", line 100, in store_secrets
Jul 12 08:09:08 encrypted = self.crypto.encrypt(self._secrets)
Jul 12 08:09:08 File "/usr/lib/python2.7/dist-packages/leap/soledad/client/_secrets/crypto.py", line 55, in encrypt
Jul 12 08:09:08 key = self._get_key(salt)
Jul 12 08:09:08 File "/usr/lib/python2.7/dist-packages/leap/soledad/client/_secrets/crypto.py", line 42, in _get_key
Jul 12 08:09:08 key = _scrypt.hash(passphrase, salt, buflen=32)
Jul 12 08:09:08 File "/usr/lib/python2.7/dist-packages/leap/soledad/client/_scrypt.py", line 28, in hash
Jul 12 08:09:08 return Scrypt(salt, buflen, 16384, 8, 1, backend).derive(secret)
Jul 12 08:09:08 File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/primitives/kdf/scrypt.py", line 53, in derive
Jul 12 08:09:08 key_material, self._salt, self._length, self._n, self._r, self._p
Jul 12 08:09:08 File "/usr/lib/python2.7/dist-packages/cryptography/hazmat/backends/multibackend.py", line 505, in derive_scrypt
Jul 12 08:09:08 raise UnsupportedAlgorithm("This backend does not support scrypt.")
Jul 12 08:09:08 cryptography.exceptions.UnsupportedAlgorithm: This backend does not support scrypt.
Jul 12 08:09:08 Tests halted on failure (because of --no-continue).
Jul 12 08:09:08 stderr: Nothing written
Jul 12 08:09:08
ERROR: Job failed: exit code 1