def test_get_fqdn_from_backup_index_blob(self):
    blob_name = 'index/backup_index/2019051307/manifest_node1.whatever.com.json'
    self.assertEqual('node1.whatever.com', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'index/backup_index/2019051307/schema_node2.whatever.com.cql'
    self.assertEqual('node2.whatever.com', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'index/backup_index/2019051307/schema_node3.whatever.com.txt'
    self.assertEqual('node3.whatever.com', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'index/backup_index/2019051307/schema_node_with_underscores.whatever.com.txt'
    self.assertEqual('node_with_underscores.whatever.com', self.storage.get_fqdn_from_any_index_blob(blob_name))
def test_get_fqdn_from_backup_index_blob(self):
    blob_name = 'index/backup_index/2019051307/manifest_node1.whatever.com.json'
    self.assertEqual('node1.whatever.com', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'index/backup_index/2019051307/schema_node2.whatever.com.cql'
    self.assertEqual('node2.whatever.com', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'index/backup_index/2019051307/schema_node3.whatever.com.txt'
    self.assertEqual('node3.whatever.com', self.storage.get_fqdn_from_any_index_blob(blob_name))
    blob_name = 'index/backup_index/2019051307/schema_node_with_underscores.whatever.com.txt'
    self.assertEqual('node_with_underscores.whatever.com', self.storage.get_fqdn_from_any_index_blob(blob_name))