Skip to content

Commit

Permalink
Get TestDarkDataQuarantining passing when policy-0 is erasure-coded
Browse files Browse the repository at this point in the history
Change-Id: I6459eb69e81fddf99249e650f4778ccf7a4f1169
  • Loading branch information
tipabu committed May 25, 2021
1 parent b3def18 commit 1ba17f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/probe/test_dark_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ def check_on_disk_files(self, files):
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)


Expand Down

0 comments on commit 1ba17f6

Please sign in to comment.