File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 11
11
max-length
12
12
max-length-bytes
13
13
message-ttl
14
+ queue-version
14
15
shards-per-node
15
16
] . freeze
16
17
Original file line number Diff line number Diff line change 221
221
end . to raise_error ( Puppet ::Error , %r{Invalid initial-cluster-size value 'impressive} )
222
222
end
223
223
224
+ it 'accepts and converts the queue-version value' do
225
+ definition = { 'queue-version' => '2' }
226
+ policy [ :definition ] = definition
227
+ expect ( policy [ :definition ] [ 'queue-version' ] ) . to eq ( 2 )
228
+ end
229
+
230
+ it 'does not accept non-numeric queue-version value' do
231
+ definition = { 'queue-version' => 'oogabooga' }
232
+ expect do
233
+ policy [ :definition ] = definition
234
+ end . to raise_error ( Puppet ::Error , %r{Invalid queue-version value.*oogabooga} )
235
+ end
236
+
224
237
context 'accepts list value in ha-params when ha-mode = nodes' do
225
238
before do
226
239
policy [ :definition ] = definition
You can’t perform that action at this time.
0 commit comments