@@ -76,6 +76,9 @@ Spectator.describe ConfigurationParameterGet do
7676 "parameters": [
7777 {
7878 "component": "postgres",
79+ "enum": [],
80+ "min_value": "100",
81+ "max_value": "2000",
7982 "name": "postgres:max_connections",
8083 "parameter_name": "max_connections",
8184 "requires_restart": false,
@@ -104,9 +107,21 @@ Spectator.describe ConfigurationParameterListSupported do
104107 Factory .configuration_parameter(value: nil ),
105108 Factory .configuration_parameter(
106109 component: " pgbouncer" ,
107- name: " pgbouncer:default_pool_size" ,
108- parameter_name: " default_pool_size" ,
109- value: nil
110+ name: " pgbouncer:auth_type" ,
111+ parameter_name: " auth_type" ,
112+ value: nil ,
113+ min_value: nil ,
114+ max_value: nil ,
115+ enum: [" cert" , " md5" , " trust" ]
116+ ),
117+ Factory .configuration_parameter(
118+ component: " pgbouncer" ,
119+ name: " pgbouncer:fake" ,
120+ parameter_name: " fake" ,
121+ value: nil ,
122+ min_value: nil ,
123+ max_value: nil ,
124+ enum: [] of String
110125 ),
111126 ]
112127 }
@@ -115,9 +130,10 @@ Spectator.describe ConfigurationParameterListSupported do
115130 action.call
116131
117132 expected = <<-EXPECTED
118- Component Name Requires Restart
119- postgres max_connections no
120- pgbouncer default_pool_size no
133+ Component Name Requires Restart Constraints
134+ postgres max_connections no min: 100, max: 2000
135+ pgbouncer auth_type no enum: cert, md5, trust
136+ pgbouncer fake no
121137 EXPECTED
122138
123139 expect(& .output).to look_like expected
@@ -128,8 +144,8 @@ Spectator.describe ConfigurationParameterListSupported do
128144 action.call
129145
130146 expected = <<-EXPECTED
131- Component Name Requires Restart
132- postgres max_connections no
147+ Component Name Requires Restart Constraints
148+ postgres max_connections no min: 100, max: 2000
133149 EXPECTED
134150
135151 expect(& .output).to look_like expected
@@ -179,6 +195,9 @@ Spectator.describe ConfigurationParameterSet do
179195 "parameters": [
180196 {
181197 "component": "postgres",
198+ "enum": [],
199+ "min_value": "100",
200+ "max_value": "2000",
182201 "name": "postgres:max_connections",
183202 "parameter_name": "max_connections",
184203 "requires_restart": false,
@@ -242,6 +261,9 @@ Spectator.describe ConfigurationParameterReset do
242261 "parameters": [
243262 {
244263 "component": "postgres",
264+ "enum": [],
265+ "min_value": "100",
266+ "max_value": "2000",
245267 "name": "postgres:max_connections",
246268 "parameter_name": "max_connections",
247269 "requires_restart": false,
0 commit comments