Example #1
0
    def _poll_cluster(self, cluster_id):
        """Routine to be executed for polling cluster status.

        :param cluster_id: The UUID of the cluster to be checked.
        :returns: Nothing.
        """
        req = vorc.ClusterCheckRequest(identity=cluster_id)
        self.rpc_client.call2(self.ctx, 'cluster_check2', req)
Example #2
0
 def test_init_partial(self):
     sot = clusters.ClusterCheckRequest(identity='cluster')
     self.assertEqual('cluster', sot.identity)
     self.assertFalse(sot.obj_attr_is_set('params'))
Example #3
0
 def test_init(self):
     sot = clusters.ClusterCheckRequest(identity='cluster',
                                        params={'foo': 'bar'})
     self.assertEqual('cluster', sot.identity)
     self.assertEqual({'foo': 'bar'}, sot.params)