2eb03efc29
This allows non-standard users (pe-postgres) to change passwords. Also added a function to do escaping of the password, added system tests and rspec tests for the function.
10 lines
289 B
Ruby
10 lines
289 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'postgresql_escape', :type => :puppet_function do
|
|
it { should run.with_params('foo').
|
|
and_return('$$foo$$') }
|
|
end
|
|
describe 'postgresql_escape', :type => :puppet_function do
|
|
it { should run.with_params('fo$$o').
|
|
and_return('$ed$fo$$o$ed$') }
|
|
end
|