def test_cluster_update(self): with mock.patch('sahara.service.quotas.check_cluster'): cluster = api.create_cluster(api_base.SAMPLE_CLUSTER) updated_cluster = api.update_cluster( cluster.id, {'description': 'Cluster'}) self.assertEqual('Cluster', updated_cluster.description)
def test_cluster_keypair_update(self): with mock.patch('sahara.service.quotas.check_cluster'): cluster = api.create_cluster(api_base.SAMPLE_CLUSTER) api.update_cluster(cluster.id, {'update_keypair': True})
def test_cluster_keypair_update(self): with mock.patch('sahara.service.quotas.check_cluster'): cluster = api.create_cluster(api_base.SAMPLE_CLUSTER) api.update_cluster(cluster.id, {'update_keypair': True})
def test_cluster_update(self): with mock.patch('sahara.service.quotas.check_cluster'): cluster = api.create_cluster(api_base.SAMPLE_CLUSTER) updated_cluster = api.update_cluster( cluster.id, {'description': 'Cluster'}) self.assertEqual('Cluster', updated_cluster.description)