@red-hat-developer-hub/e2e-test-utils 2.1.6 → 2.1.7
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.
|
@@ -242,7 +242,7 @@ export class RHDHDeployment {
|
|
|
242
242
|
}
|
|
243
243
|
async rolloutRestart() {
|
|
244
244
|
this._log(`Restarting RHDH deployment in namespace ${this.deploymentConfig.namespace}...`);
|
|
245
|
-
await $ `oc rollout restart deployment -l
|
|
245
|
+
await $ `oc rollout restart deployment -l ${this._labelSelector} -n ${this.deploymentConfig.namespace}`;
|
|
246
246
|
this._log(`RHDH deployment restarted successfully in namespace ${this.deploymentConfig.namespace}`);
|
|
247
247
|
await this.waitUntilReady();
|
|
248
248
|
}
|
|
@@ -253,9 +253,9 @@ export class RHDHDeployment {
|
|
|
253
253
|
*/
|
|
254
254
|
async scaleDownAndRestart() {
|
|
255
255
|
const namespace = this.deploymentConfig.namespace;
|
|
256
|
-
await $ `oc scale deployment -l
|
|
257
|
-
await $ `oc wait --for=delete pod -l
|
|
258
|
-
await $ `oc scale deployment -l
|
|
256
|
+
await $ `oc scale deployment -l ${this._labelSelector} --replicas=0 -n ${namespace}`;
|
|
257
|
+
await $ `oc wait --for=delete pod -l ${this._labelSelector} -n ${namespace} --timeout=120s || true`;
|
|
258
|
+
await $ `oc scale deployment -l ${this._labelSelector} --replicas=1 -n ${namespace}`;
|
|
259
259
|
}
|
|
260
260
|
async waitUntilReady(timeout = 500) {
|
|
261
261
|
const namespace = this.deploymentConfig.namespace;
|