When executing the below command:
describe sql.query("show pgaudit.log;") do
its("output") { should match 'ERROR: unrecognized configuration parameter "pgaudit.log"' }
end
Getting error as below, is there any error with the syntax, kindly advise.
expected: "ERROR: unrecognized configuration parameter \"pgaudit.log\""
got: "\nERROR: unrecognized configuration parameter \"pgaudit.log\"\n"
you just have to run the query before the
describe
block, strip it and then useexpect
on it. something like: