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])
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])
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])
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], )