diff options
author | antoine.vinot <antoine.vinot@sonarsource.com> | 2023-12-18 14:03:54 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-12-19 20:02:55 +0000 |
commit | 43822d2343f52699053c4a0a81556abff36274a1 (patch) | |
tree | ed12e6d366f7c87b4c2bae984c25202aef2d3fb6 /server/sonar-web/src/main/js/apps/system | |
parent | 3313dc56b0f6139e6aaaea6f068e6fad5a004110 (diff) | |
download | sonarqube-43822d2343f52699053c4a0a81556abff36274a1.tar.gz sonarqube-43822d2343f52699053c4a0a81556abff36274a1.zip |
SONAR-21227 Add link to download Deprecation Logs
Diffstat (limited to 'server/sonar-web/src/main/js/apps/system')
-rw-r--r-- | server/sonar-web/src/main/js/apps/system/components/PageActions.tsx | 20 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx | 15 |
2 files changed, 25 insertions, 10 deletions
diff --git a/server/sonar-web/src/main/js/apps/system/components/PageActions.tsx b/server/sonar-web/src/main/js/apps/system/components/PageActions.tsx index 07d9d6b0ccd..cc83ee65d08 100644 --- a/server/sonar-web/src/main/js/apps/system/components/PageActions.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/PageActions.tsx @@ -89,7 +89,7 @@ export default class PageActions extends React.PureComponent<Props, State> { <li> <a download="sonarqube_app.log" - href={logsUrl + '?process=app'} + href={logsUrl + '?name=app'} id="logs-link" rel="noopener noreferrer" target="_blank" @@ -100,7 +100,7 @@ export default class PageActions extends React.PureComponent<Props, State> { <li> <a download="sonarqube_ce.log" - href={logsUrl + '?process=ce'} + href={logsUrl + '?name=ce'} id="ce-logs-link" rel="noopener noreferrer" target="_blank" @@ -111,7 +111,7 @@ export default class PageActions extends React.PureComponent<Props, State> { <li> <a download="sonarqube_es.log" - href={logsUrl + '?process=es'} + href={logsUrl + '?name=es'} id="es-logs-link" rel="noopener noreferrer" target="_blank" @@ -122,7 +122,7 @@ export default class PageActions extends React.PureComponent<Props, State> { <li> <a download="sonarqube_web.log" - href={logsUrl + '?process=web'} + href={logsUrl + '?name=web'} id="web-logs-link" rel="noopener noreferrer" target="_blank" @@ -133,7 +133,7 @@ export default class PageActions extends React.PureComponent<Props, State> { <li> <a download="sonarqube_access.log" - href={logsUrl + '?process=access'} + href={logsUrl + '?name=access'} id="access-logs-link" rel="noopener noreferrer" target="_blank" @@ -141,6 +141,16 @@ export default class PageActions extends React.PureComponent<Props, State> { Access Logs </a> </li> + <li> + <a + download="sonarqube_deprecation.log" + href={logsUrl + '?name=deprecation'} + rel="noopener noreferrer" + target="_blank" + > + Deprecation Logs + </a> + </li> </ul> } > diff --git a/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx b/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx index 5954e26fe54..fa490d5a79b 100644 --- a/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx +++ b/server/sonar-web/src/main/js/apps/system/components/__tests__/SystemApp-it.tsx @@ -69,11 +69,16 @@ describe('System Info Standalone', () => { expect(await ui.pageHeading.find()).toBeInTheDocument(); await user.click(ui.downloadLogsButton.get()); - ['Main Process', 'Compute Engine', 'Search Engine', 'Web Server', 'Access Logs'].forEach( - (link) => { - expect(screen.getByRole('link', { name: link })).toBeInTheDocument(); - }, - ); + [ + 'Main Process', + 'Compute Engine', + 'Search Engine', + 'Web Server', + 'Access Logs', + 'Deprecation Logs', + ].forEach((link) => { + expect(screen.getByRole('link', { name: link })).toBeInTheDocument(); + }); expect(ui.downloadSystemInfoButton.get()).toBeInTheDocument(); }); }); |