Exemplo n.º 1
0
 def test_cluster_list(self):
     return_list = deb_postgres.cluster_list()
     cmd = SALT_STUB['cmd.run_all']
     self.assertEqual('/usr/bin/pg_lsclusters --no-header',
                      cmd.call_args[0][0])
     self.assertIsInstance(return_list, list)
     return_dict = deb_postgres.cluster_list(verbose=True)
     self.assertIsInstance(return_dict, dict)
Exemplo n.º 2
0
 def test_cluster_list(self):
     return_list = deb_postgres.cluster_list()
     self.assertEqual("/usr/bin/pg_lsclusters --no-header",
                      self.cmd_run_all_mock.call_args[0][0])
     if six.PY2:
         # Python 3 returns iterable views (dict_keys in this case) on
         # dict.keys() calls instead of lists. We should only perform
         # this check in Python 2.
         self.assertIsInstance(return_list, list)
     return_dict = deb_postgres.cluster_list(verbose=True)
     self.assertIsInstance(return_dict, dict)
Exemplo n.º 3
0
 def test_cluster_list(self):
     return_list = deb_postgres.cluster_list()
     cmd = SALT_STUB["cmd.run_all"]
     self.assertEqual("/usr/bin/pg_lsclusters --no-header", cmd.call_args[0][0])
     if six.PY2:
         # Python 3 returns iterable views (dict_keys in this case) on
         # dict.keys() calls instead of lists. We should only perform
         # this check in Python 2.
         self.assertIsInstance(return_list, list)
     return_dict = deb_postgres.cluster_list(verbose=True)
     self.assertIsInstance(return_dict, dict)
Exemplo n.º 4
0
 def test_cluster_list(self):
     return_list = deb_postgres.cluster_list()
     self.assertEqual("/usr/bin/pg_lsclusters --no-header",
                      self.cmd_run_all_mock.call_args[0][0])
     return_dict = deb_postgres.cluster_list(verbose=True)
     self.assertIsInstance(return_dict, dict)