Skip to content

Commit 29dd4d3

Browse files
chore: fix rhdh test/config path issue (#11)
1 parent cf7654c commit 29dd4d3

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/deployment/rhdh/deployment.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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}`);

0 commit comments

Comments
 (0)