27 lines
509 B
Ruby
27 lines
509 B
Ruby
|
require 'spec_helper'
|
||
|
|
||
|
describe 'postgresql::server::database_grant', :type => :define do
|
||
|
let :facts do
|
||
|
{
|
||
|
:osfamily => 'Debian',
|
||
|
:operatingsystem => 'Debian',
|
||
|
:operatingsystemrelease => '6.0',
|
||
|
}
|
||
|
end
|
||
|
|
||
|
let :title do
|
||
|
'test'
|
||
|
end
|
||
|
|
||
|
let :params do
|
||
|
{
|
||
|
:privilege => 'ALL',
|
||
|
:db => 'test',
|
||
|
:role => 'test',
|
||
|
}
|
||
|
end
|
||
|
|
||
|
it { should contain_postgresql__server__database_grant('test') }
|
||
|
it { should contain_postgresql__server__grant('database:test') }
|
||
|
end
|