@@ -159,6 +159,7 @@ func TestRequestsCodes(t *testing.T) {
159
159
{req : crud .MakeCountRequest (validSpace ), rtype : CrudRequestType },
160
160
{req : crud .MakeStorageInfoRequest (), rtype : CrudRequestType },
161
161
{req : crud .MakeStatsRequest (), rtype : CrudRequestType },
162
+ {req : crud .MakeSchemaRequest (), rtype : CrudRequestType },
162
163
}
163
164
164
165
for _ , test := range tests {
@@ -196,6 +197,7 @@ func TestRequestsAsync(t *testing.T) {
196
197
{req : crud .MakeCountRequest (validSpace ), async : false },
197
198
{req : crud .MakeStorageInfoRequest (), async : false },
198
199
{req : crud .MakeStatsRequest (), async : false },
200
+ {req : crud .MakeSchemaRequest (), async : false },
199
201
}
200
202
201
203
for _ , test := range tests {
@@ -233,6 +235,7 @@ func TestRequestsCtx_default(t *testing.T) {
233
235
{req : crud .MakeCountRequest (validSpace ), expected : nil },
234
236
{req : crud .MakeStorageInfoRequest (), expected : nil },
235
237
{req : crud .MakeStatsRequest (), expected : nil },
238
+ {req : crud .MakeSchemaRequest (), expected : nil },
236
239
}
237
240
238
241
for _ , test := range tests {
@@ -271,6 +274,7 @@ func TestRequestsCtx_setter(t *testing.T) {
271
274
{req : crud .MakeCountRequest (validSpace ).Context (ctx ), expected : ctx },
272
275
{req : crud .MakeStorageInfoRequest ().Context (ctx ), expected : ctx },
273
276
{req : crud .MakeStatsRequest ().Context (ctx ), expected : ctx },
277
+ {req : crud .MakeSchemaRequest ().Context (ctx ), expected : ctx },
274
278
}
275
279
276
280
for _ , test := range tests {
@@ -427,6 +431,12 @@ func TestRequestsDefaultValues(t *testing.T) {
427
431
[]interface {}{}),
428
432
target : crud .MakeStatsRequest (),
429
433
},
434
+ {
435
+ name : "SchemaRequest" ,
436
+ ref : tarantool .NewCall17Request ("crud.schema" ).Args (
437
+ []interface {}{nil , map [string ]interface {}{}}),
438
+ target : crud .MakeSchemaRequest (),
439
+ },
430
440
}
431
441
432
442
for _ , tc := range testCases {
@@ -589,6 +599,20 @@ func TestRequestsSetters(t *testing.T) {
589
599
[]interface {}{spaceName }),
590
600
target : crud .MakeStatsRequest ().Space (spaceName ),
591
601
},
602
+ {
603
+ name : "SchemaRequest" ,
604
+ ref : tarantool .NewCall17Request ("crud.schema" ).Args (
605
+ []interface {}{nil , schemaOpts },
606
+ ),
607
+ target : crud .MakeSchemaRequest ().Opts (schemaOpts ),
608
+ },
609
+ {
610
+ name : "SchemaRequestWithSpace" ,
611
+ ref : tarantool .NewCall17Request ("crud.schema" ).Args (
612
+ []interface {}{spaceName , schemaOpts },
613
+ ),
614
+ target : crud .MakeSchemaRequest ().Space (spaceName ).Opts (schemaOpts ),
615
+ },
592
616
}
593
617
594
618
for _ , tc := range testCases {
0 commit comments