@centreon/js-config 23.10.59 → 23.10.61
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 +24 -1
- package/cypress/e2e/plugins.ts +1 -1
- package/package.json +1 -1
package/cypress/e2e/commands.ts
CHANGED
|
@@ -332,6 +332,11 @@ Cypress.Commands.add(
|
|
|
332
332
|
name,
|
|
333
333
|
source: '/var/log/centreon'
|
|
334
334
|
})
|
|
335
|
+
.copyFromContainer({
|
|
336
|
+
destination: `${logDirectory}/centreon-gorgone`,
|
|
337
|
+
name,
|
|
338
|
+
source: '/var/log/centreon-gorgone'
|
|
339
|
+
})
|
|
335
340
|
.then(() => {
|
|
336
341
|
if (Cypress.env('WEB_IMAGE_OS').includes('alma')) {
|
|
337
342
|
return cy.copyFromContainer({
|
|
@@ -350,6 +355,24 @@ Cypress.Commands.add(
|
|
|
350
355
|
{ failOnNonZeroExit: false }
|
|
351
356
|
);
|
|
352
357
|
})
|
|
358
|
+
.then(() => {
|
|
359
|
+
if (Cypress.env('WEB_IMAGE_OS').includes('alma')) {
|
|
360
|
+
return cy.copyFromContainer({
|
|
361
|
+
destination: `${logDirectory}/httpd`,
|
|
362
|
+
name,
|
|
363
|
+
source: '/var/log/httpd'
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
return cy.copyFromContainer(
|
|
368
|
+
{
|
|
369
|
+
destination: `${logDirectory}/apache2`,
|
|
370
|
+
name,
|
|
371
|
+
source: '/var/log/apache2'
|
|
372
|
+
},
|
|
373
|
+
{ failOnNonZeroExit: false }
|
|
374
|
+
);
|
|
375
|
+
})
|
|
353
376
|
.exec(`chmod -R 755 "${logDirectory}"`)
|
|
354
377
|
.stopContainer({ name });
|
|
355
378
|
}
|
|
@@ -366,7 +389,7 @@ Cypress.Commands.add(
|
|
|
366
389
|
|
|
367
390
|
cy.exec(`docker logs ${name}`).then(({ stdout }) => {
|
|
368
391
|
cy.writeFile(
|
|
369
|
-
`
|
|
392
|
+
`results/logs/${Cypress.spec.name.replace(
|
|
370
393
|
artifactIllegalCharactersMatcher,
|
|
371
394
|
'_'
|
|
372
395
|
)}/${Cypress.currentTest.title.replace(
|
package/cypress/e2e/plugins.ts
CHANGED
package/package.json
CHANGED