freezer/tests/unit
Domhnall Walsh 98c93e68a5 Fix checksum generation so that it handles binary data
At the moment, if freezer attempts to perform a backup with
the consistency check option enabled, it will fail if the
files being backed up contain anything other than plain
ASCII (or at least some flavour of same, ISO-8859-x
etc.). This is because the hashlib module fails as it
expects a string to digest rather than a binary blob.

This should fix matters by escaping everything that might
cause an issue and works for Python 2 and 3. Because it
escapes strings in a different way to before, the
checksums it computes may be different to previously
in some cases, but at least now it should always produce
one.

Change-Id: Idf62dc9e398c396c9de19cbff5622e79d4c7a198
Closes-Bug: #1595732
2016-07-13 10:06:57 +01:00
..
apiclient Switch to keystoneauth 2016-05-31 15:29:55 -03:00
engines Fix openssl decryption command 2016-03-10 16:45:39 +00:00
openstack Refactor Freezer authentication with keystone 2016-05-10 15:53:58 +00:00
scheduler Refactoring of code: 2016-03-08 14:20:23 +00:00
snapshot Fix LVM mountpoint issues. 2016-06-30 12:10:43 +01:00
storages Merge "Refactor Freezer authentication with keystone" 2016-05-17 10:49:16 +00:00
utils Fix checksum generation so that it handles binary data 2016-07-13 10:06:57 +01:00
__init__.py Fix freezer for py3 compatibility 2016-02-12 01:39:34 +00:00
test_job.py Freezer metadata 2016-05-16 11:30:50 +01:00