diff --git a/package.json b/package.json index db1d178..ab27f3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rhdh-e2e-test-utils", - "version": "1.1.0", + "version": "1.1.1", "description": "Test utilities for RHDH E2E tests", "license": "Apache-2.0", "type": "module", diff --git a/src/deployment/rhdh/deployment.ts b/src/deployment/rhdh/deployment.ts index 207a496..5238796 100644 --- a/src/deployment/rhdh/deployment.ts +++ b/src/deployment/rhdh/deployment.ts @@ -263,27 +263,29 @@ export class RHDHDeployment { if (!method) throw new Error("Installation method (helm/operator) is required"); + const configDir = `${import.meta.dirname}/tests/config`; + const base: DeploymentConfigBase = { version, namespace: input.namespace ?? this.deploymentConfig.namespace, auth: input.auth ?? "keycloak", - appConfig: input.appConfig ?? `tests/config/app-config-rhdh.yaml`, - secrets: input.secrets ?? `tests/config/rhdh-secrets.yaml`, + appConfig: input.appConfig ?? `${configDir}/app-config-rhdh.yaml`, + secrets: input.secrets ?? `${configDir}/rhdh-secrets.yaml`, dynamicPlugins: - input.dynamicPlugins ?? `tests/config/dynamic-plugins.yaml`, + input.dynamicPlugins ?? `${configDir}/dynamic-plugins.yaml`, }; if (method === "helm") { return { ...base, method, - valueFile: input.valueFile ?? `tests/config/value_file.yaml`, + valueFile: input.valueFile ?? `${configDir}/value_file.yaml`, }; } else if (method === "operator") { return { ...base, method, - subscription: input.subscription ?? `tests/config/subscription.yaml`, + subscription: input.subscription ?? `${configDir}/subscription.yaml`, }; } else { throw new Error(`Invalid RHDH installation method: ${method}`);