hunk.code_window:                     assertArrayEquals(
                               new DatasourceStructure.Template[]{
                                       new DatasourceStructure.Template("SELECT", "SELECT * FROM public.\"users\" LIMIT 10;"),
                                       new DatasourceStructure.Template("INSERT", "INSERT INTO public.\"users\" (\"username\", \"password\", \"email\", \"spouse_dob\", \"dob\", \"time1\", \"time_tz\", \"created_on\", \"created_on_tz\", \"interval1\")\n" +
                                               "  VALUES ('', '', '', '2019-07-01', '2019-07-01', '18:32:45', '04:05:06 PST', TIMESTAMP '2019-07-01 10:00:00', TIMESTAMP WITH TIME ZONE '2019-07-01 06:30:00 CET', 1);"),
                                       new DatasourceStructure.Template("UPDATE", "UPDATE public.\"users\" SET\n" +
                                               "    \"username\" = ''\n" +
                                               "    \"password\" = ''\n" +
                                               "    \"email\" = ''\n" +
                                               "    \"spouse_dob\" = '2019-07-01'\n" +
  
hunk.labels: keep keep keep replace replace keep keep keep keep keep
hunk.after_edit:                                     new DatasourceStructure.Template("INSERT", "INSERT INTO public.\"users\" (\"username\", \"password\", \"email\", \"spouse_dob\", \"dob\", \"time1\", \"time_tz\", \"created_on\", \"created_on_tz\", \"interval1\", \"numbers\", \"texts\")\n" +
                                               "  VALUES ('', '', '', '2019-07-01', '2019-07-01', '18:32:45', '04:05:06 PST', TIMESTAMP '2019-07-01 10:00:00', TIMESTAMP WITH TIME ZONE '2019-07-01 06:30:00 CET', 1, '{1, 2, 3}', '{\"first\", \"second\"}');"),
  
hunk.file_path: app/server/appsmith-plugins/postgresPlugin/src/test/java/com/external/plugins/PostgresPluginTest.java
hunk.type: replace
file: package com.appsmith.server.services;
  
  import com.appsmith.external.models.AuthenticationDTO;
  import com.appsmith.external.models.DatasourceTestResult;
  import com.appsmith.server.acl.AclPermission;
  import com.appsmith.server.domains.Datasource;
  import reactor.core.publisher.Flux;
  import reactor.core.publisher.Mono;
  
  import java.util.List;
  import java.util.Set;
  
  public interface DatasourceService extends CrudService<Datasource, String> {
  
      Mono<DatasourceTestResult> testDatasource(Datasource datasource);
  
      Mono<Datasource> findByName(String name, AclPermission permission);
  
      Mono<Datasource> findById(String id, AclPermission aclPermission);
  
      Mono<Datasource> findById(String id);
  
      Set<String> extractKeysFromDatasource(Datasource datasource);
  
      Mono<Datasource> validateDatasource(Datasource datasource);
  
      Mono<Datasource> save(Datasource datasource);
  
      Flux<Datasource> findAllByOrganizationId(String organizationId, AclPermission readDatasources);
  
      Flux<Datasource> saveAll(List<Datasource> datasourceList);
  
      AuthenticationDTO encryptAuthenticationFields(AuthenticationDTO authentication);
  }
  