@@ -159,6 +159,7 @@ func TestRequestsCodes(t *testing.T) {
159159 {req : crud .MakeCountRequest (validSpace ), rtype : CrudRequestType },
160160 {req : crud .MakeStorageInfoRequest (), rtype : CrudRequestType },
161161 {req : crud .MakeStatsRequest (), rtype : CrudRequestType },
162+ {req : crud .MakeSchemaRequest (), rtype : CrudRequestType },
162163 }
163164
164165 for _ , test := range tests {
@@ -196,6 +197,7 @@ func TestRequestsAsync(t *testing.T) {
196197 {req : crud .MakeCountRequest (validSpace ), async : false },
197198 {req : crud .MakeStorageInfoRequest (), async : false },
198199 {req : crud .MakeStatsRequest (), async : false },
200+ {req : crud .MakeSchemaRequest (), async : false },
199201 }
200202
201203 for _ , test := range tests {
@@ -233,6 +235,7 @@ func TestRequestsCtx_default(t *testing.T) {
233235 {req : crud .MakeCountRequest (validSpace ), expected : nil },
234236 {req : crud .MakeStorageInfoRequest (), expected : nil },
235237 {req : crud .MakeStatsRequest (), expected : nil },
238+ {req : crud .MakeSchemaRequest (), expected : nil },
236239 }
237240
238241 for _ , test := range tests {
@@ -271,6 +274,7 @@ func TestRequestsCtx_setter(t *testing.T) {
271274 {req : crud .MakeCountRequest (validSpace ).Context (ctx ), expected : ctx },
272275 {req : crud .MakeStorageInfoRequest ().Context (ctx ), expected : ctx },
273276 {req : crud .MakeStatsRequest ().Context (ctx ), expected : ctx },
277+ {req : crud .MakeSchemaRequest ().Context (ctx ), expected : ctx },
274278 }
275279
276280 for _ , test := range tests {
@@ -427,6 +431,12 @@ func TestRequestsDefaultValues(t *testing.T) {
427431 []interface {}{}),
428432 target : crud .MakeStatsRequest (),
429433 },
434+ {
435+ name : "SchemaRequest" ,
436+ ref : tarantool .NewCall17Request ("crud.schema" ).Args (
437+ []interface {}{nil , map [string ]interface {}{}}),
438+ target : crud .MakeSchemaRequest (),
439+ },
430440 }
431441
432442 for _ , tc := range testCases {
@@ -589,6 +599,20 @@ func TestRequestsSetters(t *testing.T) {
589599 []interface {}{spaceName }),
590600 target : crud .MakeStatsRequest ().Space (spaceName ),
591601 },
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+ },
592616 }
593617
594618 for _ , tc := range testCases {
0 commit comments