@@ -206,6 +206,7 @@ func (c *mockClient) CreateInstance(_ context.Context, instanceID string, instan
206206 ExternalLink : instance .ExternalLink ,
207207 DataSources : instance .DataSources ,
208208 Environment : instance .Environment ,
209+ Options : & v1pb.InstanceOptions {},
209210 }
210211
211212 envID , err := GetEnvironmentID (ins .Environment )
@@ -242,6 +243,12 @@ func (c *mockClient) UpdateInstance(ctx context.Context, patch *v1pb.Instance, u
242243 if slices .Contains (updateMasks , "data_sources" ) {
243244 ins .DataSources = patch .DataSources
244245 }
246+ if slices .Contains (updateMasks , "options.sync_interval" ) {
247+ ins .Options .SyncInterval = patch .Options .SyncInterval
248+ }
249+ if slices .Contains (updateMasks , "options.maximum_connections" ) {
250+ ins .Options .MaximumConnections = patch .Options .MaximumConnections
251+ }
245252
246253 c .instanceMap [ins .Name ] = ins
247254 return ins , nil
@@ -788,7 +795,7 @@ func (c *mockClient) UpdateGroup(ctx context.Context, group *v1pb.Group, updateM
788795}
789796
790797// DeleteGroup deletes the group by name.
791- func (c * mockClient ) DeleteGroup (ctx context.Context , name string ) error {
798+ func (c * mockClient ) DeleteGroup (_ context.Context , name string ) error {
792799 delete (c .groupMap , name )
793800 return nil
794801}
0 commit comments