swift/test
Alistair Coles a4d77d918d Fix KeyError when auditor finds an expired object
Since the related change [1] the auditor checks deleted objects in
case their tombstone is ready to be reclaimed. However, the auditor
mistakes an expired object for a deleted object because
DiskFileExpired is a subclass of DiskFileDeleted. This causes a
KeyError to be raised and logged because the expired object has no
tombstone info in the ondisk_info data structure.

This patch makes the auditor catch and ignore DiskFileExpired
exceptions before handling DiskFileDeleted exceptions.

[1] Related-Change: I3e99dc702d55a7424c6482969e03cb4afac854a4

Change-Id: I9872b6997d09dcfd8a868c4b91b9379407283b8e
Closes-Bug: #1638016
2016-11-03 15:19:25 +00:00
..
functional Remove executable flag from some test modules 2016-10-31 21:22:10 +00:00
probe Use more specific asserts in test/probe tests 2016-11-02 18:13:22 +00:00
unit Fix KeyError when auditor finds an expired object 2016-11-03 15:19:25 +00:00
__init__.py test/(functional/probe):Replace python print operator with print function (pep H233, py33) 2015-08-20 11:42:58 +09:00
sample.conf Merge "Add a note for functional tests with Keystone." 2016-03-18 05:08:10 +00:00