@red-hat-developer-hub/e2e-test-utils 1.1.11 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,9 @@ export declare class RHDHDeployment {
|
|
|
5
5
|
rhdhUrl: string;
|
|
6
6
|
deploymentConfig: DeploymentConfig;
|
|
7
7
|
constructor(namespace: string);
|
|
8
|
-
deploy(
|
|
8
|
+
deploy(options?: {
|
|
9
|
+
timeout?: number | null;
|
|
10
|
+
}): Promise<void>;
|
|
9
11
|
private _applyAppConfig;
|
|
10
12
|
private _applySecrets;
|
|
11
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../../../src/deployment/rhdh/deployment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAiB1E,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAGjB,MAAM,YAAY,CAAC;AAEpB,qBAAa,cAAc;IAClB,SAAS,yBAAgC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,gBAAgB,CAAC;gBAE9B,SAAS,EAAE,MAAM;IAUvB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../../../src/deployment/rhdh/deployment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAiB1E,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAGjB,MAAM,YAAY,CAAC;AAEpB,qBAAa,cAAc;IAClB,SAAS,yBAAgC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,gBAAgB,CAAC;gBAE9B,SAAS,EAAE,MAAM;IAUvB,MAAM,CAAC,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;YAyBpD,eAAe;YAgBf,aAAa;IAqB3B;;;OAGG;YACW,0BAA0B;YAuC1B,oBAAoB;YAWpB,eAAe;YAmCf,mBAAmB;IAiD3B,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAWrC;;;;OAIG;IACG,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC;IAOpC,cAAc,CAAC,OAAO,GAAE,MAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBpD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YAIjB,oBAAoB;IAsClC;;;OAGG;YACW,0BAA0B;IAwCxC,OAAO,CAAC,sBAAsB;IAoCxB,SAAS,CAAC,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAcrE,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,SAAS;CAMlB"}
|
|
@@ -19,9 +19,13 @@ export class RHDHDeployment {
|
|
|
19
19
|
this._log("RHDH Base URL: " + this.rhdhUrl);
|
|
20
20
|
console.table(this.deploymentConfig);
|
|
21
21
|
}
|
|
22
|
-
async deploy() {
|
|
22
|
+
async deploy(options) {
|
|
23
23
|
this._log("Starting RHDH deployment...");
|
|
24
|
-
|
|
24
|
+
// Default 600s, custom number to override, null to skip and let consumer control the timeout
|
|
25
|
+
const timeout = options?.timeout === undefined ? 600_000 : options.timeout;
|
|
26
|
+
if (timeout !== null) {
|
|
27
|
+
test.setTimeout(timeout);
|
|
28
|
+
}
|
|
25
29
|
await this.k8sClient.createNamespaceIfNotExists(this.deploymentConfig.namespace);
|
|
26
30
|
await this._applyAppConfig();
|
|
27
31
|
await this._applySecrets();
|