'Test basic cluster destroy.'

def test_cluster_destroy(self):

    cluster = utils.create_cluster(self.ctxt)
    self.assertEqual(0, cluster.race_preventer)
    db.cluster_destroy(self.ctxt, cluster.id)
    db_cluster = db.cluster_get(self.ctxt, cluster.id, read_deleted='yes')
    self.assertTrue(db_cluster.deleted)
    self.assertIsNotNone(db_cluster.deleted_at)
    self.assertEqual(cluster.id, db_cluster.race_preventer)
