@@ -97,6 +97,7 @@ public void before() throws Exception {
97
97
98
98
@ After
99
99
public void after () {
100
+ gfsh .executeAndAssertThat ("destroy region --name=parentRegion" ).statusIsSuccess ();
100
101
gfsh .executeAndAssertThat (DESTROY + " --if-exists" ).statusIsSuccess ();
101
102
gfsh .executeAndAssertThat (DESTROY_PARALLEL + " --if-exists" ).statusIsSuccess ();
102
103
exln .remove ();
@@ -118,6 +119,10 @@ public void testCreateSerialGatewaySenderWithDefault() throws Exception {
118
119
gfsh .executeAndAssertThat ("list gateways" ).statusIsSuccess ()
119
120
.containsOutput ("sender1" );
120
121
122
+ gfsh .executeAndAssertThat ("create region"
123
+ + " --name=parentRegion"
124
+ + " --type=PARTITION"
125
+ + " --gateway-sender-id=sender1" ).statusIsSuccess ();
121
126
// verify that server1's event queue has the default value
122
127
server1 .invoke (() -> {
123
128
InternalCache cache = ClusterStartupRule .getCache ();
@@ -142,6 +147,11 @@ public void testCreateSerialGatewaySenderAndAlterBatchSize() throws Exception {
142
147
gfsh .executeAndAssertThat ("list gateways" ).statusIsSuccess ()
143
148
.containsOutput ("sender1" );
144
149
150
+ gfsh .executeAndAssertThat ("create region"
151
+ + " --name=parentRegion"
152
+ + " --type=PARTITION"
153
+ + " --gateway-sender-id=sender1" ).statusIsSuccess ();
154
+
145
155
gfsh .executeAndAssertThat (
146
156
"alter gateway-sender --id=sender1 --batch-size=200 --alert-threshold=100" )
147
157
.statusIsSuccess ();
@@ -169,6 +179,11 @@ public void testCreateSerialGatewaySenderAndInvalidAlterBatchSize() throws Excep
169
179
gfsh .executeAndAssertThat ("list gateways" ).statusIsSuccess ()
170
180
.containsOutput ("sender1" );
171
181
182
+ gfsh .executeAndAssertThat ("create region"
183
+ + " --name=parentRegion"
184
+ + " --type=PARTITION"
185
+ + " --gateway-sender-id=sender1" ).statusIsSuccess ();
186
+
172
187
gfsh .executeAndAssertThat (
173
188
"alter gateway-sender --id=sender1 --batch-size=-10 --alert-threshold=100" )
174
189
.statusIsError ();
@@ -196,6 +211,11 @@ public void testCreateSerialGatewaySenderAndAlterBatchSizeCheckConfig() throws E
196
211
gfsh .executeAndAssertThat ("list gateways" ).statusIsSuccess ()
197
212
.containsOutput ("sender1" );
198
213
214
+ gfsh .executeAndAssertThat ("create region"
215
+ + " --name=parentRegion"
216
+ + " --type=PARTITION"
217
+ + " --gateway-sender-id=sender1" ).statusIsSuccess ();
218
+
199
219
gfsh .executeAndAssertThat (
200
220
"alter gateway-sender --id=sender1 --batch-size=200 --alert-threshold=100" )
201
221
.statusIsSuccess ();
@@ -243,6 +263,11 @@ public void testCreateSerialGatewaySenderAndChangeGroupTransaction() throws Exce
243
263
gfsh .executeAndAssertThat ("list gateways" ).statusIsSuccess ()
244
264
.containsOutput ("sender1" );
245
265
266
+ gfsh .executeAndAssertThat ("create region"
267
+ + " --name=parentRegion"
268
+ + " --type=PARTITION"
269
+ + " --gateway-sender-id=sender1" ).statusIsSuccess ();
270
+
246
271
gfsh .executeAndAssertThat ("alter gateway-sender --id=sender1 --group-transaction-events=true" )
247
272
.statusIsError ()
248
273
.containsOutput ("alter-gateway-sender cannot be performed for --group-transaction-events" );
@@ -261,6 +286,11 @@ public void testCreateSerialGatewaySenderAndAlterBatchSizeServerDown() throws Ex
261
286
gfsh .executeAndAssertThat ("list gateways" ).statusIsSuccess ()
262
287
.containsOutput ("sender1" );
263
288
289
+ gfsh .executeAndAssertThat ("create region"
290
+ + " --name=parentRegion"
291
+ + " --type=PARTITION"
292
+ + " --gateway-sender-id=sender1" ).statusIsSuccess ();
293
+
264
294
server1 .stop (false );
265
295
266
296
gfsh .executeAndAssertThat (
@@ -296,6 +326,11 @@ public void testCreateSerialGatewaySenderAndAlterEventFiters() throws Exception
296
326
gfsh .executeAndAssertThat ("list gateways" ).statusIsSuccess ()
297
327
.containsOutput ("sender1" );
298
328
329
+ gfsh .executeAndAssertThat ("create region"
330
+ + " --name=parentRegion"
331
+ + " --type=PARTITION"
332
+ + " --gateway-sender-id=sender1" ).statusIsSuccess ();
333
+
299
334
gfsh .executeAndAssertThat (
300
335
"alter gateway-sender --id=sender1 --batch-size=200 --alert-threshold=100 --gateway-event-filter="
301
336
+ MyGatewayEventFilter .class .getName ())
@@ -365,6 +400,11 @@ public void testCreateSerialGatewaySenderAndAlterEventFitersAndRemove() throws E
365
400
gfsh .executeAndAssertThat ("list gateways" ).statusIsSuccess ()
366
401
.containsOutput ("sender1" );
367
402
403
+ gfsh .executeAndAssertThat ("create region"
404
+ + " --name=parentRegion"
405
+ + " --type=PARTITION"
406
+ + " --gateway-sender-id=sender1" ).statusIsSuccess ();
407
+
368
408
gfsh .executeAndAssertThat (
369
409
"alter gateway-sender --id=sender1 --batch-size=200 --alert-threshold=100 --gateway-event-filter="
370
410
+ MyGatewayEventFilter .class .getName ())
@@ -432,6 +472,11 @@ public void testCreateParallelGatewaySenderAndAlterBatchSize() throws Exception
432
472
gfsh .executeAndAssertThat ("list gateways" ).statusIsSuccess ()
433
473
.containsOutput ("sender1P" );
434
474
475
+ gfsh .executeAndAssertThat ("create region"
476
+ + " --name=parentRegion"
477
+ + " --type=PARTITION"
478
+ + " --gateway-sender-id=sender1P" ).statusIsSuccess ();
479
+
435
480
gfsh .executeAndAssertThat (
436
481
"alter gateway-sender --id=sender1P --batch-size=200 --alert-threshold=100" )
437
482
.statusIsSuccess ();
@@ -459,6 +504,11 @@ public void testCreateParallelGatewaySenderAndChangeGroupTransaction() throws Ex
459
504
gfsh .executeAndAssertThat ("list gateways" ).statusIsSuccess ()
460
505
.containsOutput ("sender1P" );
461
506
507
+ gfsh .executeAndAssertThat ("create region"
508
+ + " --name=parentRegion"
509
+ + " --type=PARTITION"
510
+ + " --gateway-sender-id=sender1P" ).statusIsSuccess ();
511
+
462
512
gfsh .executeAndAssertThat ("alter gateway-sender --id=sender1P --group-transaction-events=true" )
463
513
.statusIsSuccess ();
464
514
0 commit comments