Beispiel #1
0
    def test_recover_missing_old_fullpath_and_content_path(self):
        for c in self.chunks:
            convert_to_old_chunk(
                self._chunk_path(c), self.account, self.container, self.path,
                self.version, self.content_id)

        victim = random.choice(self.chunks)
        path = self._chunk_path(victim)
        remove_xattr(path, chunk_xattr_keys['content_path'])
        self._test_converter_single_chunk(victim)
Beispiel #2
0
    def test_recover_missing_content_path(self):
        for c in self.chunks:
            convert_to_old_chunk(self._chunk_path(c),
                                 self.account,
                                 self.container,
                                 self.path,
                                 self.version,
                                 self.content_id,
                                 add_old_fullpath=True)

        victim = random.choice(self.chunks)
        path = self._chunk_path(victim)
        remove_xattr(path, CHUNK_XATTR_KEYS['content_path'])
        self._test_converter_single_chunk(victim)