File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " rhdh-e2e-test-utils" ,
3- "version" : " 1.1.0 " ,
3+ "version" : " 1.1.1 " ,
44 "description" : " Test utilities for RHDH E2E tests" ,
55 "license" : " Apache-2.0" ,
66 "type" : " module" ,
Original file line number Diff line number Diff line change @@ -263,27 +263,29 @@ export class RHDHDeployment {
263263 if ( ! method )
264264 throw new Error ( "Installation method (helm/operator) is required" ) ;
265265
266+ const configDir = `${ import . meta. dirname } /tests/config` ;
267+
266268 const base : DeploymentConfigBase = {
267269 version,
268270 namespace : input . namespace ?? this . deploymentConfig . namespace ,
269271 auth : input . auth ?? "keycloak" ,
270- appConfig : input . appConfig ?? `tests/config /app-config-rhdh.yaml` ,
271- secrets : input . secrets ?? `tests/config /rhdh-secrets.yaml` ,
272+ appConfig : input . appConfig ?? `${ configDir } /app-config-rhdh.yaml` ,
273+ secrets : input . secrets ?? `${ configDir } /rhdh-secrets.yaml` ,
272274 dynamicPlugins :
273- input . dynamicPlugins ?? `tests/config /dynamic-plugins.yaml` ,
275+ input . dynamicPlugins ?? `${ configDir } /dynamic-plugins.yaml` ,
274276 } ;
275277
276278 if ( method === "helm" ) {
277279 return {
278280 ...base ,
279281 method,
280- valueFile : input . valueFile ?? `tests/config /value_file.yaml` ,
282+ valueFile : input . valueFile ?? `${ configDir } /value_file.yaml` ,
281283 } ;
282284 } else if ( method === "operator" ) {
283285 return {
284286 ...base ,
285287 method,
286- subscription : input . subscription ?? `tests/config /subscription.yaml` ,
288+ subscription : input . subscription ?? `${ configDir } /subscription.yaml` ,
287289 } ;
288290 } else {
289291 throw new Error ( `Invalid RHDH installation method: ${ method } ` ) ;
You can’t perform that action at this time.
0 commit comments