3 describe 'postgresql::server::tablespace', :type => :define do
7 :operatingsystem => 'Debian',
8 :operatingsystemrelease => '6.0',
10 :concat_basedir => tmpfilename('tablespace'),
12 :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
22 :location => '/srv/data/foo',
27 "class {'postgresql::server':}"
30 it { is_expected.to contain_postgresql__server__tablespace('test') }
32 context "with different owner" do
35 :location => '/srv/data/foo',
36 :owner => 'test_owner',
40 it { is_expected.to contain_postgresql_psql('ALTER TABLESPACE "test" OWNER TO "test_owner"') }