コード例 #1
0
 def test_cluster_delete(self):
     deb_postgres.cluster_remove('9.3', 'main')
     self.assertEqual('/usr/bin/pg_dropcluster 9.3 main',
                      self.cmd_run_all_mock.call_args[0][0])
     deb_postgres.cluster_remove('9.3', 'main', stop=True)
     self.assertEqual('/usr/bin/pg_dropcluster --stop 9.3 main',
                      self.cmd_run_all_mock.call_args[0][0])
コード例 #2
0
ファイル: deb_postgres_test.py プロジェクト: bryson/salt
 def test_cluster_delete(self):
     deb_postgres.cluster_remove("9.3", "main")
     cmd = SALT_STUB["cmd.run_all"]
     self.assertEqual("/usr/bin/pg_dropcluster 9.3 main", cmd.call_args[0][0])
     deb_postgres.cluster_remove("9.3", "main", stop=True)
     cmd = SALT_STUB["cmd.run_all"]
     self.assertEqual("/usr/bin/pg_dropcluster --stop 9.3 main", cmd.call_args[0][0])
コード例 #3
0
 def test_cluster_delete(self):
     deb_postgres.cluster_remove('9.3', 'main')
     cmd = SALT_STUB['cmd.run_all']
     self.assertEqual('/usr/bin/pg_dropcluster 9.3 main',
                      cmd.call_args[0][0])
     deb_postgres.cluster_remove('9.3', 'main', stop=True)
     cmd = SALT_STUB['cmd.run_all']
     self.assertEqual('/usr/bin/pg_dropcluster --stop 9.3 main',
                      cmd.call_args[0][0])
コード例 #4
0
 def test_cluster_delete(self):
     deb_postgres.cluster_remove("9.3", "main")
     self.assertEqual("/usr/bin/pg_dropcluster 9.3 main",
                      self.cmd_run_all_mock.call_args[0][0])
     deb_postgres.cluster_remove("9.3", "main", stop=True)
     self.assertEqual(
         "/usr/bin/pg_dropcluster --stop 9.3 main",
         self.cmd_run_all_mock.call_args[0][0],
     )