Ejemplo n.º 1
0
 def test_output_members(self):
     scheduled_at = datetime.now(tzutc) + timedelta(seconds=600)
     cluster = get_cluster_initialized_with_leader(Failover(1, 'foo', 'bar', scheduled_at))
     self.assertIsNone(output_members(cluster, name='abc', fmt='pretty'))
     self.assertIsNone(output_members(cluster, name='abc', fmt='json'))
     self.assertIsNone(output_members(cluster, name='abc', fmt='yaml'))
     self.assertIsNone(output_members(cluster, name='abc', fmt='tsv'))
Ejemplo n.º 2
0
 def test_output_members(self):
     scheduled_at = datetime.now(tzutc) + timedelta(seconds=600)
     cluster = get_cluster_initialized_with_leader(Failover(1, 'foo', 'bar', scheduled_at))
     self.assertIsNone(output_members(cluster, name='abc', fmt='pretty'))
     self.assertIsNone(output_members(cluster, name='abc', fmt='json'))
     self.assertIsNone(output_members(cluster, name='abc', fmt='yaml'))
     self.assertIsNone(output_members(cluster, name='abc', fmt='tsv'))
Ejemplo n.º 3
0
 def test_output_members(self):
     scheduled_at = datetime.now(tzutc) + timedelta(seconds=600)
     cluster = get_cluster_initialized_with_leader(
         Failover(1, 'foo', 'bar', scheduled_at))
     del cluster.members[1].data['conn_url']
     for fmt in ('pretty', 'json', 'yaml', 'tsv', 'topology'):
         self.assertIsNone(output_members(cluster, name='abc', fmt=fmt))
Ejemplo n.º 4
0
 def test_output_members(self):
     cluster = get_cluster_initialized_with_leader()
     output_members(cluster, name='abc', format='pretty')
     output_members(cluster, name='abc', format='json')
     output_members(cluster, name='abc', format='tsv')
Ejemplo n.º 5
0
 def test_output_members(self):
     cluster = get_cluster_initialized_with_leader()
     self.assertIsNone(output_members(cluster, name='abc', fmt='pretty'))
     self.assertIsNone(output_members(cluster, name='abc', fmt='json'))
     self.assertIsNone(output_members(cluster, name='abc', fmt='tsv'))
 def test_output_members(self):
     cluster = get_cluster_initialized_with_leader()
     self.assertIsNone(output_members(cluster, name='abc', fmt='pretty'))
     self.assertIsNone(output_members(cluster, name='abc', fmt='json'))
     self.assertIsNone(output_members(cluster, name='abc', fmt='tsv'))
Ejemplo n.º 7
0
 def test_output_members(self):
     cluster = get_cluster_initialized_with_leader()
     output_members(cluster, name="abc", format="pretty")
     output_members(cluster, name="abc", format="json")
     output_members(cluster, name="abc", format="tsv")