Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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})
Ejemplo n.º 3
0
 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})
Ejemplo n.º 4
0
 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)