Commit a2f4595a authored by Martin Pitt's avatar Martin Pitt

t/030_errors.t: Adapt to changes from r964, dropping cluster now works as...

t/030_errors.t: Adapt to changes from r964, dropping cluster now works as postgres (Closes: #525294)
parent a20fa674
......@@ -24,7 +24,8 @@ postgresql-common (103) UNRELEASED; urgency=low
configuration directories.
* pg_createcluster: Make /etc/postgresql/<version> and
/var/lib/postgresql/<version> owned by 'postgres', so that they can be
administrated with 'postgres' privileges. (LP: #236704)
administrated with 'postgres' privileges. Update t/030_errors.t
accordingly. (LP: #236704, Closes: #525294)
* t/020_create_sql_remove.t: Check that a missing log file is recreated by
pg_ctlcluster (if it has enough permissions).
* pg_ctlcluster: Make re-creation of log file actually work. (LP: #391119,
......
......@@ -6,7 +6,7 @@ require File::Temp;
use lib 't';
use TestLib;
use Test::More tests => 164;
use Test::More tests => 163;
use lib '/usr/share/postgresql-common';
use PgCommon;
......@@ -224,12 +224,9 @@ is_deeply (\@c, ['main'],
unlink '/etc/postgresql/postgresql.conf';
# fails by default due to access restrictions
like_program_out 'postgres', "pg_dropcluster $version main", 1,
qr/root privileges/, "pg_dropcluster fails as user postgres by default";
# remove cluster and directory
ok ((system "pg_dropcluster $version main") == 0,
'pg_dropcluster');
# remove cluster and directory; this should work as user "postgres"
is_program_out 'postgres', "pg_dropcluster $version main", 0, '',
, "pg_dropcluster works as user postgres";
# graceful handling of absent data dir (might not be mounted)
ok ((system "pg_createcluster $version main >/dev/null") == 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment