4343 } ;
4444 in
4545 pkg ;
46- <<<<<<< HEAD
4746 psql_15 = postgresqlWithExtension self . packages . ${ pkgs . system } . postgresql_15 ;
4847 psql_17 = postgresqlWithExtension self . packages . ${ pkgs . system } . postgresql_17 ;
49- =======
50- >>>>>>> e93f70f1 ( feat : support multiple versions of the rum extension )
5148 in
5249 self . inputs . nixpkgs . lib . nixos . runTest {
5350 name = pname ;
7067
7168 services . postgresql = {
7269 enable = true ;
73- <<<<<<< HEAD
7470 package = psql_15 ;
75- =======
76- package = postgresqlWithExtension self . packages . ${ pkgs . system } . postgresql_15 ;
77- >>>>>>> e93f70f1 ( feat : support multiple versions of the rum extension )
7871 enableTCPIP = true ;
7972 initialScript = pkgs . writeText "init-postgres-with-password" ''
8073 CREATE USER test WITH PASSWORD 'secret';
8174 '' ;
8275 authentication = ''
8376 host test postgres samenet scram-sha-256
8477 '' ;
85- <<<<<<< HEAD
8678 settings = ( installedExtension "15" ) . defaultSettings or { } ;
87- =======
88- >>>>>>> e93f70f1 ( feat : support multiple versions of the rum extension )
8979 } ;
9080
9181 networking . firewall . allowedTCPPorts = [ config . services . postgresql . settings . port ] ;
9282
9383 specialisation . postgresql17 . configuration = {
9484 services . postgresql = {
95- <<<<<<< HEAD
9685 package = lib . mkForce psql_17 ;
97- =======
98- package = lib . mkForce ( postgresqlWithExtension self . packages . ${ pkgs . system } . postgresql_17 ) ;
99- >>>>>>> e93f70f1 ( feat : support multiple versions of the rum extension )
10086 } ;
10187
10288 systemd . services . postgresql-migrate = {
11096 } ;
11197 script =
11298 let
113- <<<<<<< HEAD
11499 oldPostgresql = psql_15 ;
115100 newPostgresql = psql_17 ;
116- =======
117- oldPostgresql = postgresqlWithExtension self . packages . ${ pkgs . system } . postgresql_15 ;
118- newPostgresql = postgresqlWithExtension self . packages . ${ pkgs . system } . postgresql_17 ;
119- >>>>>>> e93f70f1 ( feat : support multiple versions of the rum extension )
120101 oldDataDir = "${ builtins . dirOf config . services . postgresql . dataDir } /${ oldPostgresql . psqlSchema } " ;
121102 newDataDir = "${ builtins . dirOf config . services . postgresql . dataDir } /${ newPostgresql . psqlSchema } " ;
122103 in
151132 extension_name = "${ pname } "
152133 support_upgrade = True
153134 pg17_configuration = "${ pg17-configuration } "
154- <<<<<<< HEAD
155135 ext_has_background_worker = ${
156136 if ( installedExtension "15" ) ? hasBackgroundWorker then "True" else "False"
157137 }
158- =======
159- >>>>>>> e93f70f1 (feat: support multiple versions of the rum extension)
160138
161139 ${ builtins . readFile ./lib.py }
162140
@@ -174,13 +152,10 @@ let
174152 with subtest("Check the install of the last version of the extension"):
175153 last_version = test.check_install_last_version("15")
176154
177- <<<<<<< HEAD
178155 if ext_has_background_worker:
179156 with subtest("Test switch_${ pname } _version"):
180157 test.check_switch_extension_with_background_worker(Path("${ psql_15 } /lib/${ pname } .so"), "15")
181158
182- =======
183- >>>>>>> e93f70f1 (feat: support multiple versions of the rum extension)
184159 with subtest("switch to postgresql 17"):
185160 server.succeed(
186161 f"{pg17_configuration}/bin/switch-to-configuration test >&2"
@@ -201,7 +176,6 @@ builtins.listToAttrs (
201176 } ) nixFiles
202177)
203178// builtins . listToAttrs (
204- <<<<<<< HEAD
205179 map
206180 ( extName : {
207181 name = "ext-${ extName } " ;
@@ -215,10 +189,4 @@ builtins.listToAttrs (
215189 "vector"
216190 "wrappers"
217191 ]
218- == = ====
219- map ( extName : {
220- name = "ext-${ extName } " ;
221- value = extTest extName ;
222- } ) [ "rum" ]
223- > >>>>>> e93f70f1 ( feat : support multiple versions of the rum extension )
224192)
0 commit comments