File tree Expand file tree Collapse file tree 3 files changed +12
-31
lines changed
Expand file tree Collapse file tree 3 files changed +12
-31
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,12 @@ func (s *storage) ToUpdateStorageConfigBody() v1API.UpdateStorageConfigBody {
5353 MaxNamespaces int `json:"maxNamespaces"`
5454 MaxTables int `json:"maxTables"`
5555 } `json:"icebergCatalog,omitempty"`
56- ImageTransformation struct {
56+ ImageTransformation * struct {
5757 Enabled bool `json:"enabled"`
58- } `json:"imageTransformation"`
59- S3Protocol struct {
58+ } `json:"imageTransformation,omitempty "`
59+ S3Protocol * struct {
6060 Enabled bool `json:"enabled"`
61- } `json:"s3Protocol"`
61+ } `json:"s3Protocol,omitempty "`
6262 VectorBuckets * struct {
6363 Enabled bool `json:"enabled"`
6464 MaxBuckets int `json:"maxBuckets"`
Original file line number Diff line number Diff line change @@ -223,25 +223,6 @@ func TestUpdateStorageConfig(t *testing.T) {
223223 defer gock .Off ()
224224 mockStorage := v1API.StorageConfigResponse {
225225 FileSizeLimit : 100 ,
226- Features : struct {
227- IcebergCatalog * struct {
228- Enabled bool `json:"enabled"`
229- MaxCatalogs int `json:"maxCatalogs"`
230- MaxNamespaces int `json:"maxNamespaces"`
231- MaxTables int `json:"maxTables"`
232- } `json:"icebergCatalog,omitempty"`
233- ImageTransformation struct {
234- Enabled bool `json:"enabled"`
235- } `json:"imageTransformation"`
236- S3Protocol struct {
237- Enabled bool `json:"enabled"`
238- } `json:"s3Protocol"`
239- VectorBuckets * struct {
240- Enabled bool `json:"enabled"`
241- MaxBuckets int `json:"maxBuckets"`
242- MaxIndexes int `json:"maxIndexes"`
243- } `json:"vectorBuckets,omitempty"`
244- }{},
245226 }
246227 mockStorage .Features .ImageTransformation .Enabled = true
247228 mockStorage .Features .S3Protocol .Enabled = true
You can’t perform that action at this time.
0 commit comments