Skip to content

postgresql_conf: add failing spec tests for value param #1545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions spec/unit/type/postgresql_conf_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@
end
# string https://www.postgresql.org/docs/current/datatype-character.html
describe 'validate complex string values with newvalues function' do
it 'validates log_line_prefix with value [%p] %q:%u:%d:%' do
expect { described_class.new(name: 'log_line_prefix', value: '[%p] %q:%u:%d:%x ') }.not_to raise_error
end
it 'validates log_line_prefix with value %t %q%u@%d %p %i' do
expect { described_class.new(name: 'log_line_prefix', value: '%t %q%u@%d %p %i ') }.not_to raise_error
end
it 'validates log_filename with value psql_01-%Y-%m-%d.log' do
expect { described_class.new(name: 'log_filename', value: 'psql_01-%Y-%m-%d.log') }.not_to raise_error
end
Expand Down