43
43
} ;
44
44
in
45
45
pkg ;
46
- <<<<<<< HEAD
47
46
psql_15 = postgresqlWithExtension self . packages . ${ pkgs . system } . postgresql_15 ;
48
47
psql_17 = postgresqlWithExtension self . packages . ${ pkgs . system } . postgresql_17 ;
49
- =======
50
- >>>>>>> e93f70f1 ( feat : support multiple versions of the rum extension )
51
48
in
52
49
self . inputs . nixpkgs . lib . nixos . runTest {
53
50
name = pname ;
70
67
71
68
services . postgresql = {
72
69
enable = true ;
73
- <<<<<<< HEAD
74
70
package = psql_15 ;
75
- =======
76
- package = postgresqlWithExtension self . packages . ${ pkgs . system } . postgresql_15 ;
77
- >>>>>>> e93f70f1 ( feat : support multiple versions of the rum extension )
78
71
enableTCPIP = true ;
79
72
initialScript = pkgs . writeText "init-postgres-with-password" ''
80
73
CREATE USER test WITH PASSWORD 'secret';
81
74
'' ;
82
75
authentication = ''
83
76
host test postgres samenet scram-sha-256
84
77
'' ;
85
- <<<<<<< HEAD
86
78
settings = ( installedExtension "15" ) . defaultSettings or { } ;
87
- =======
88
- >>>>>>> e93f70f1 ( feat : support multiple versions of the rum extension )
89
79
} ;
90
80
91
81
networking . firewall . allowedTCPPorts = [ config . services . postgresql . settings . port ] ;
92
82
93
83
specialisation . postgresql17 . configuration = {
94
84
services . postgresql = {
95
- <<<<<<< HEAD
96
85
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 )
100
86
} ;
101
87
102
88
systemd . services . postgresql-migrate = {
110
96
} ;
111
97
script =
112
98
let
113
- <<<<<<< HEAD
114
99
oldPostgresql = psql_15 ;
115
100
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 )
120
101
oldDataDir = "${ builtins . dirOf config . services . postgresql . dataDir } /${ oldPostgresql . psqlSchema } " ;
121
102
newDataDir = "${ builtins . dirOf config . services . postgresql . dataDir } /${ newPostgresql . psqlSchema } " ;
122
103
in
151
132
extension_name = "${ pname } "
152
133
support_upgrade = True
153
134
pg17_configuration = "${ pg17-configuration } "
154
- <<<<<<< HEAD
155
135
ext_has_background_worker = ${
156
136
if ( installedExtension "15" ) ? hasBackgroundWorker then "True" else "False"
157
137
}
158
- =======
159
- >>>>>>> e93f70f1 (feat: support multiple versions of the rum extension)
160
138
161
139
${ builtins . readFile ./lib.py }
162
140
@@ -174,13 +152,10 @@ let
174
152
with subtest("Check the install of the last version of the extension"):
175
153
last_version = test.check_install_last_version("15")
176
154
177
- <<<<<<< HEAD
178
155
if ext_has_background_worker:
179
156
with subtest("Test switch_${ pname } _version"):
180
157
test.check_switch_extension_with_background_worker(Path("${ psql_15 } /lib/${ pname } .so"), "15")
181
158
182
- =======
183
- >>>>>>> e93f70f1 (feat: support multiple versions of the rum extension)
184
159
with subtest("switch to postgresql 17"):
185
160
server.succeed(
186
161
f"{pg17_configuration}/bin/switch-to-configuration test >&2"
@@ -201,7 +176,6 @@ builtins.listToAttrs (
201
176
} ) nixFiles
202
177
)
203
178
// builtins . listToAttrs (
204
- <<<<<<< HEAD
205
179
map
206
180
( extName : {
207
181
name = "ext-${ extName } " ;
@@ -215,10 +189,4 @@ builtins.listToAttrs (
215
189
"vector"
216
190
"wrappers"
217
191
]
218
- == = ====
219
- map ( extName : {
220
- name = "ext-${ extName } " ;
221
- value = extTest extName ;
222
- } ) [ "rum" ]
223
- > >>>>>> e93f70f1 ( feat : support multiple versions of the rum extension )
224
192
)
0 commit comments