@@ -189,6 +189,8 @@ func TestParseDDLStrategy(t *testing.T) {
189
189
options string
190
190
isDeclarative bool
191
191
isSingleton bool
192
+ isSingletonContext bool
193
+ isSingletonTable bool
192
194
isPostponeLaunch bool
193
195
isPostponeCompletion bool
194
196
isInOrderCompletion bool
@@ -258,6 +260,20 @@ func TestParseDDLStrategy(t *testing.T) {
258
260
runtimeOptions : "" ,
259
261
isSingleton : true ,
260
262
},
263
+ {
264
+ strategyVariable : "vitess --singleton-context" ,
265
+ strategy : DDLStrategyVitess ,
266
+ options : "--singleton-context" ,
267
+ runtimeOptions : "" ,
268
+ isSingletonContext : true ,
269
+ },
270
+ {
271
+ strategyVariable : "vitess --singleton-table" ,
272
+ strategy : DDLStrategyVitess ,
273
+ options : "--singleton-table" ,
274
+ runtimeOptions : "" ,
275
+ isSingletonTable : true ,
276
+ },
261
277
{
262
278
strategyVariable : "online -postpone-launch" ,
263
279
strategy : DDLStrategyOnline ,
@@ -387,6 +403,8 @@ func TestParseDDLStrategy(t *testing.T) {
387
403
assert .Equal (t , ts .options , setting .Options )
388
404
assert .Equal (t , ts .isDeclarative , setting .IsDeclarative ())
389
405
assert .Equal (t , ts .isSingleton , setting .IsSingleton ())
406
+ assert .Equal (t , ts .isSingletonContext , setting .IsSingletonContext ())
407
+ assert .Equal (t , ts .isSingletonTable , setting .IsSingletonTable ())
390
408
assert .Equal (t , ts .isPostponeCompletion , setting .IsPostponeCompletion ())
391
409
assert .Equal (t , ts .isPostponeLaunch , setting .IsPostponeLaunch ())
392
410
assert .Equal (t , ts .isAllowConcurrent , setting .IsAllowConcurrent ())
0 commit comments