@centreon/js-config 25.10.14 → 25.10.16
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.
- package/cypress/e2e/commands.ts +2 -2
- package/cypress/e2e/tasks.ts +9 -0
- package/package.json +1 -1
package/cypress/e2e/commands.ts
CHANGED
|
@@ -554,8 +554,8 @@ Cypress.Commands.add(
|
|
|
554
554
|
cy.log(`Getting logs from container ${name} ...`);
|
|
555
555
|
|
|
556
556
|
return cy.getLogDirectory().then((logDirectory) => {
|
|
557
|
-
let sourcePhpLogs = '/var/log/
|
|
558
|
-
let targetPhpLogs = `${logDirectory}/
|
|
557
|
+
let sourcePhpLogs = '/var/log/centreon/prod.web.log';
|
|
558
|
+
let targetPhpLogs = `${logDirectory}/prod.web.log`;
|
|
559
559
|
let sourceApacheLogs = '/var/log/apache2';
|
|
560
560
|
let targetApacheLogs = `${logDirectory}/apache2`;
|
|
561
561
|
if (Cypress.env('WEB_IMAGE_OS').includes('alma')) {
|
package/cypress/e2e/tasks.ts
CHANGED
|
@@ -260,6 +260,15 @@ export default (on: Cypress.PluginEvents): void => {
|
|
|
260
260
|
console.error(error.message);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
// Best-effort teardown: keep the original startup error if cleanup fails.
|
|
264
|
+
try {
|
|
265
|
+
await dockerEnvironment?.down();
|
|
266
|
+
} catch (teardownError) {
|
|
267
|
+
console.error(teardownError);
|
|
268
|
+
} finally {
|
|
269
|
+
dockerEnvironment = null;
|
|
270
|
+
}
|
|
271
|
+
|
|
263
272
|
throw error;
|
|
264
273
|
}
|
|
265
274
|
},
|
package/package.json
CHANGED