func tests: plumb tolerate_missing through to listing_empty
We started tolerating deleted containers still showing up in account listings recently, but we've still seen the occassional gate failure. Change-Id: I2f0c82981e4323e5e210119f917b4645670b44d3 Related-Change: I9217ba49d65cc29496b1532644bbef6b736074b8
This commit is contained in:
parent
660e8386dd
commit
2a806296ff
@ -682,13 +682,15 @@ class Container(Base):
|
||||
parms=parms) in allowed_codes
|
||||
|
||||
def delete_files(self, tolerate_missing=False):
|
||||
for f in listing_items(functools.partial(
|
||||
self.files, tolerate_missing=tolerate_missing)):
|
||||
partialed_files = functools.partial(
|
||||
self.files, tolerate_missing=tolerate_missing)
|
||||
|
||||
for f in listing_items(partialed_files):
|
||||
file_item = self.file(f)
|
||||
if not file_item.delete(tolerate_missing=True):
|
||||
return False
|
||||
|
||||
return listing_empty(self.files)
|
||||
return listing_empty(partialed_files)
|
||||
|
||||
def delete_recursive(self):
|
||||
return self.delete_files(tolerate_missing=True) and \
|
||||
|
Loading…
Reference in New Issue
Block a user