Get TestDarkDataQuarantining passing when policy-0 is erasure-coded
Change-Id: I6459eb69e81fddf99249e650f4778ccf7a4f1169
This commit is contained in:
parent
b3def185c6
commit
1ba17f6354
@ -173,9 +173,10 @@ class TestDarkDataQuarantining(TestDarkDataDeletion):
|
||||
self.assertPathDoesNotExist(file_path)
|
||||
# Got quarantined
|
||||
parts = file_path.split(os.path.sep)
|
||||
quarantine_dir = parts[:parts.index('objects')] + ['quarantined']
|
||||
policy_dir = get_policy_string('objects', self.policy)
|
||||
quarantine_dir = parts[:parts.index(policy_dir)] + ['quarantined']
|
||||
quarantine_path = os.path.sep.join(
|
||||
quarantine_dir + ['objects'] + parts[-2:])
|
||||
quarantine_dir + [policy_dir] + parts[-2:])
|
||||
self.assertPathExists(quarantine_path)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user