-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change PDF report year number to 2024 (#6492)
* Change pdf report year number to 2024 * Add changelog * Fix unit test
- Loading branch information
1 parent
d1772f9
commit b54d12c
Showing
4 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -311,7 +311,7 @@ export const ASSETS_PUBLIC_URL = '/plugins/wazuh/public/assets/'; | |
export const REPORTS_LOGO_IMAGE_ASSETS_RELATIVE_PATH = | ||
'images/logo_reports.png'; | ||
export const REPORTS_PRIMARY_COLOR = '#256BD1'; | ||
export const REPORTS_PAGE_FOOTER_TEXT = 'Copyright © 2023 Wazuh, Inc.'; | ||
export const REPORTS_PAGE_FOOTER_TEXT = 'Copyright © 2024 Wazuh, Inc.'; | ||
export const REPORTS_PAGE_HEADER_TEXT = '[email protected]\nhttps://wazuh.com'; | ||
|
||
// Plugin platform | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,10 +43,10 @@ describe('[settings] Methods', () => { | |
${false} | ${'customization.logo.app'} | ${'custom-image-app.png'} | ${''} | ||
${false} | ${'customization.logo.app'} | ${''} | ${''} | ||
${true} | ${'customization.reports.footer'} | ${'Custom footer'} | ${'Custom footer'} | ||
${true} | ${'customization.reports.footer'} | ${''} | ${'Copyright © 2023 Wazuh, Inc.'} | ||
${false} | ${'customization.reports.footer'} | ${'Custom footer'} | ${'Copyright © 2023 Wazuh, Inc.'} | ||
${false} | ${'customization.reports.footer'} | ${''} | ${'Copyright © 2023 Wazuh, Inc.'} | ||
${false} | ${'customization.reports.footer'} | ${''} | ${'Copyright © 2023 Wazuh, Inc.'} | ||
${true} | ${'customization.reports.footer'} | ${''} | ${'Copyright © 2024 Wazuh, Inc.'} | ||
${false} | ${'customization.reports.footer'} | ${'Custom footer'} | ${'Copyright © 2024 Wazuh, Inc.'} | ||
${false} | ${'customization.reports.footer'} | ${''} | ${'Copyright © 2024 Wazuh, Inc.'} | ||
${false} | ${'customization.reports.footer'} | ${''} | ${'Copyright © 2024 Wazuh, Inc.'} | ||
${true} | ${'customization.reports.header'} | ${'Custom header'} | ${'Custom header'} | ||
${true} | ${'customization.reports.header'} | ${''} | ${'[email protected]\nhttps://wazuh.com'} | ||
${false} | ${'customization.reports.header'} | ${'Custom header'} | ${'[email protected]\nhttps://wazuh.com'} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,11 +204,11 @@ describe('[endpoint] PUT /utils/configuration', () => { | |
// If any of the parameters is changed this variable should be updated with the new md5 | ||
it.each` | ||
footer | header | responseStatusCode | expectedMD5 | tab | ||
${null} | ${null} | ${200} | ${'301281824427c6ea8546fd14ee1aa5d8'} | ${'pm'} | ||
${null} | ${null} | ${200} | ${'5b5211a0514e36cc43d18d7d54cc4c35'} | ${'pm'} | ||
${'Custom\nFooter'} | ${'[email protected]\nFake Avenue 123'} | ${200} | ${'c2adfd7ab05ae3ed1548abd3c8be8f7e'} | ${'general'} | ||
${''} | ${''} | ${200} | ${'06726f42a4129dd47262ea7228939006'} | ${'fim'} | ||
${''} | ${''} | ${200} | ${'1b121407ad7748bbcc2f9973bafb2a85'} | ${'fim'} | ||
${'Custom Footer'} | ${null} | ${200} | ${'1ea187181c307a4be5e90a38f614c42d'} | ${'aws'} | ||
${null} | ${'Custom Header'} | ${200} | ${'f2fc0804eb52ebca21291eb5a40dec35'} | ${'gcp'} | ||
${null} | ${'Custom Header'} | ${200} | ${'01fa7a09aba3aa99d4d56c915d733646'} | ${'gcp'} | ||
`( | ||
`Set custom report header and footer - Verify PDF output`, | ||
async ({ footer, header, responseStatusCode, expectedMD5, tab }) => { | ||
|