You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/unit/classes/database/ssl_configuration_spec.rb
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -110,5 +110,37 @@
110
110
end
111
111
end
112
112
end
113
+
114
+
context'when the specified Postgresql version is 12 or later'do
115
+
let(:params)do
116
+
{
117
+
database_name: 'puppetdb',
118
+
database_username: 'puppetdb',
119
+
postgres_version: '12'
120
+
}
121
+
end
122
+
123
+
it'has hba rule for puppetdb user ipv4'do
124
+
is_expected.tocontain_postgresql__server__pg_hba_rule("Allow certificate mapped connections to #{params[:database_name]} as #{params[:database_username]} (ipv4)")
is_expected.tocontain_postgresql__server__pg_hba_rule("Allow certificate mapped connections to #{params[:database_name]} as #{params[:database_username]} (ipv6)")
0 commit comments