From 06810a15971a58b172d8eeabe4dcf39585a2472c Mon Sep 17 00:00:00 2001 From: Mike Place Date: Fri, 20 Dec 2013 17:24:56 -0700 Subject: [PATCH] Update unit test to match PG fix. --- tests/unit/modules/postgres_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/modules/postgres_test.py b/tests/unit/modules/postgres_test.py index 74267adcc4..a725cff47a 100644 --- a/tests/unit/modules/postgres_test.py +++ b/tests/unit/modules/postgres_test.py @@ -148,7 +148,7 @@ class PostgresTestCase(TestCase): ) postgres._run_psql.assert_called_once_with( '/usr/bin/pgsql --no-align --no-readline --username testuser --host testhost --port testport --dbname maint_db -c \'CREATE ROLE "testgroup" WITH PASSWORD \'"\'"\'testrolepass\'"\'"\' IN GROUP testgroup\'', - host='testhost', password='foo', runas='foo', run_cmd='cmd.run') + host='testhost', password='foo', runas='foo') @patch('salt.modules.postgres._run_psql', Mock(return_value={'retcode': None})) @patch('salt.modules.postgres.user_exists', Mock(return_value=True)) @@ -210,7 +210,7 @@ class PostgresTestCase(TestCase): ) postgres._run_psql.assert_called_once_with( '/usr/bin/pgsql --no-align --no-readline --username testuser --host testhose --port testport --dbname maint_test -c \'CREATE USER "testuser" WITH PASSWORD \'"\'"\'test_role_pass\'"\'"\' IN GROUP test_groups\'', - host='testhose', password='test_pass', runas='foo', run_cmd='cmd.run' + host='testhose', password='test_pass', runas='foo' ) @patch('salt.modules.postgres._run_psql', Mock(return_value={'retcode': None}))