def test_get_fqdn_from_any_index_blob(self):
    blob_name = 'tokenmap_hostname-with-dashes-and-3-numbers.json'
    self.assertEqual('hostname-with-dashes-and-3-numbers', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'tokenmap_hostname-with-dashes.and-dots.json'
    self.assertEqual('hostname-with-dashes.and-dots', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'tokenmap_hostname_with-underscores.and-dots-and.dashes.json'
    self.assertEqual('hostname_with-underscores.and-dots-and.dashes', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'index/bi/third_backup/finished_localhost_1574343029.timestamp'
    self.assertEqual('localhost', self.storage.get_fqdn_from_any_index_blob(blob_name))
def test_get_fqdn_from_any_index_blob(self):
    blob_name = 'tokenmap_hostname-with-dashes-and-3-numbers.json'
    self.assertEqual('hostname-with-dashes-and-3-numbers', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'tokenmap_hostname-with-dashes.and-dots.json'
    self.assertEqual('hostname-with-dashes.and-dots', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'tokenmap_hostname_with-underscores.and-dots-and.dashes.json'
    self.assertEqual('hostname_with-underscores.and-dots-and.dashes', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'index/bi/third_backup/finished_localhost_1574343029.timestamp'
    self.assertEqual('localhost', self.storage.get_fqdn_from_any_index_blob(blob_name))