Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rhdh-e2e-test-utils",
"version": "1.1.1",
"version": "1.1.0",
Comment thread
subhashkhileri marked this conversation as resolved.
Outdated
"description": "Test utilities for RHDH E2E tests",
"license": "Apache-2.0",
"type": "module",
Expand Down
12 changes: 5 additions & 7 deletions src/deployment/rhdh/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,29 +263,27 @@ 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 ?? `${configDir}/app-config-rhdh.yaml`,
secrets: input.secrets ?? `${configDir}/rhdh-secrets.yaml`,
appConfig: input.appConfig ?? `tests/config/app-config-rhdh.yaml`,
secrets: input.secrets ?? `tests/config/rhdh-secrets.yaml`,
dynamicPlugins:
input.dynamicPlugins ?? `${configDir}/dynamic-plugins.yaml`,
input.dynamicPlugins ?? `tests/config/dynamic-plugins.yaml`,
};

if (method === "helm") {
return {
...base,
method,
valueFile: input.valueFile ?? `${configDir}/value_file.yaml`,
valueFile: input.valueFile ?? `tests/config/value_file.yaml`,
};
} else if (method === "operator") {
return {
...base,
method,
subscription: input.subscription ?? `${configDir}/subscription.yaml`,
subscription: input.subscription ?? `tests/config/subscription.yaml`,
};
} else {
throw new Error(`Invalid RHDH installation method: ${method}`);
Expand Down